specfile: Manual pages are usually not tagged %doc
[profile/ivi/syslinux.git] / syslinux.spec.in
1 # -*- rpm -*-
2 %define RPMVERSION @@RPMVERSION@@
3 %define VERSION    @@VERSION@@
4 Summary: Kernel loader which uses a FAT, ext2/3 or iso9660 filesystem or a PXE network
5 Name: syslinux
6 Version: %{RPMVERSION}
7 Release: 1
8 License: GPL
9 Group: System/Boot
10 Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{VERSION}.tar.gz
11 ExclusiveArch: i386 i486 i586 i686 athlon pentium4 x86_64
12 Packager: H. Peter Anvin <hpa@zytor.com>
13 Buildroot: %{_tmppath}/%{name}-%{VERSION}-root
14 BuildPrereq: nasm >= 0.98.39, perl, netpbm-progs
15 Autoreq: 0
16 %ifarch x86_64
17 Requires: mtools, libc.so.6()(64bit)
18 %define my_cc gcc
19 %else
20 Requires: mtools, libc.so.6
21 %define my_cc gcc -m32
22 %endif
23
24 # NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically
25 # a system bootloader, and may be necessary for system recovery.
26 %define _sbindir /sbin
27
28 %package devel
29 Summary: Development environment for SYSLINUX add-on modules
30 Group: Development/Libraries
31 Requires: syslinux
32
33 %description
34 SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
35 filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
36 (PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool,
37 MEMDISK, which loads legacy operating systems from these media.
38
39 %description devel
40 The SYSLINUX boot loader contains an API, called COM32, for writing
41 sophisticated add-on modules.  This package contains the libraries
42 necessary to compile such modules.
43
44 %package extlinux
45 Summary: The EXTLINUX bootloader, for booting the local system.
46 Group: System/Boot
47 Requires: syslinux
48
49 %description extlinux
50 The EXTLINUX bootloader, for booting the local system, as well as all
51 the SYSLINUX/PXELINUX modules in /boot.
52
53 %package tftpboot
54 Summary: SYSLINUX modules in /tftpboot, available for network booting
55 Group: Applications/Internet
56 Requires: syslinux
57
58 %description tftpboot
59 All the SYSLINUX/PXELINUX modules directly available for network
60 booting in the /tftpboot directory.
61
62 %prep
63 %setup -q -n syslinux-%{VERSION}
64
65 %build
66 make CC='%{my_cc}' clean
67 make CC='%{my_cc}' installer
68 make CC='%{my_cc}' -C sample tidy
69
70 %install
71 rm -rf %{buildroot}
72 mkdir -p %{buildroot}%{_bindir}
73 mkdir -p %{buildroot}%{_sbindir}
74 mkdir -p %{buildroot}%{_datadir}/syslinux
75 mkdir -p %{buildroot}%{_includedir}
76 mkdir -p %{buildroot}/boot/extlinux %{buildroot}/etc
77 mkdir -p %{buildroot}/tftpboot/pxelinux.cfg
78 make CC='%{my_cc}' install-all \
79         INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
80         LIBDIR=%{_datadir} INCDIR=%{_includedir}
81 make CC='%{my_cc}' -C sample tidy
82 cp mkdiskimage syslinux2ansi.pl keytab-lilo.pl %{buildroot}%{_datadir}/syslinux
83
84 cp %{buildroot}%{_datadir}/syslinux/*.c32       %{buildroot}/boot/extlinux
85 cp %{buildroot}%{_datadir}/syslinux/memdisk     %{buildroot}/boot/extlinux
86 ( cd %{buildroot}/etc && ln -s ../boot/extlinux/extlinux.conf . )
87
88 cp %{buildroot}%{_datadir}/syslinux/*.c32       %{buildroot}/tftpboot
89 cp %{buildroot}%{_datadir}/syslinux/pxelinux.0 %{buildroot}/tftpboot
90 cp %{buildroot}%{_datadir}/syslinux/memdisk     %{buildroot}/tftpboot
91
92 %clean
93 rm -rf %{buildroot}
94
95 %files
96 %defattr(-,root,root)
97 %doc COPYING NEWS doc/*
98 %doc sample
99 %{_mandir}/man/man*/*
100 %{_bindir}/syslinux
101 %{_bindir}/ppmtolss16
102 %{_bindir}/lss16toppm
103 %{_bindir}/gethostip
104 %{_bindir}/sha1pass
105 %{_bindir}/md5pass
106 %{_datadir}/syslinux/*.com
107 %{_datadir}/syslinux/*.exe
108 %{_datadir}/syslinux/*.c32
109 %{_datadir}/syslinux/*.bin
110 %{_datadir}/syslinux/*.0
111 %{_datadir}/syslinux/memdisk
112 %{_datadir}/syslinux/*.pl
113 %{_datadir}/syslinux/mkdiskimage
114
115 %files devel
116 %{_datadir}/syslinux/com32
117
118 %files extlinux
119 %{_sbindir}/extlinux
120 /boot/extlinux
121 %config /etc/extlinux.conf
122
123 %files tftpboot
124 /tftpboot
125
126 %post extlinux
127 # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
128 # and update it.
129 if [ -f /boot/extlinux/extlinux.conf ]; then \
130         extlinux --update /boot/extlinux ; \
131 elif [ -f /boot/extlinux.conf ]; then \
132         mkdir -p /boot/extlinux && \
133         mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
134         extlinux --update /boot/extlinux ; \
135 fi
136
137 %postun
138
139 %changelog
140 * Mon Nov 19 2007 Bernard Li <bernard@vanhpc.org>
141 - Added netpbm-progs (provides pngtopnm) to BuildPrereq (this should be
142   changed to BuildRequires since it is deprecated...)
143
144 * Thu Mar 15 2007 H. Peter Anvin <hpa@zytor.com>
145 - Move extlinux /boot stuff into /boot/extlinux.
146
147 * Thu Jan 25 2007 H. Peter Anvin <hpa@zytor.com>
148 - Hacks to make the 32-bit version build correctly on 64-bit machines.
149
150 * Mon Sep 19 2006 H. Peter Anvin <hpa@zytor.com>
151 - Add a syslinux-tftpboot module.
152 - Factor extlinux into its own package.
153 - Move to %{_datadir} (/usr/share).
154
155 * Wed Sep 21 2005 H. Peter Anvin <hpa@zytor.com>
156 - If /boot/extlinux.conf exist, run extlinux --update.
157
158 * Fri Sep  9 2005 H. Peter Anvin <hpa@zytor.com>
159 - Copy, don't link, *.c32 into /boot; rpm doesn't like breaking links.
160
161 * Tue Aug 23 2005 H. Peter Anvin <hpa@zytor.com>
162 - Put *.c32 into /boot.
163
164 * Thu Dec 30 2004 H. Peter Anvin <hpa@zytor.com>
165 - libsyslinux dropped in syslinux 3.00.
166 - Additional documentation.
167 - Add extlinux.
168
169 * Tue Dec 14 2004 H. Peter Anvin <hpa@zytor.com>
170 - Add a devel package for the com32 library added in 2.12.
171
172 * Wed Apr 16 2003 H. Peter Anvin <hpa@zytor.com> 2.04-1
173 - 2.04 release
174 - Add support for libsyslinux.so*
175 - Templatize for inclusion in CVS tree
176
177 * Thu Apr 10 2003 H. Peter Anvin <hpa@zytor.com>
178 - 2.03 release
179 - Add support for libsyslinux.a
180 - Add keytab-lilo.pl to the /usr/lib/syslinux directory
181 - Modernize syntax
182 - Support building on x86-64
183
184 * Thu Feb 13 2003 H. Peter Anvin <hpa@zytor.com>
185 - 2.02 release; no longer setuid
186
187 * Thu Jan 30 2003 H. Peter Anvin <hpa@zytor.com>
188 - Prepare for 2.01 release; make /usr/bin/syslinux setuid root
189
190 * Fri Oct 25 2002 H. Peter Anvin <hpa@zytor.com>
191 - Upgrade to 2.00.
192
193 * Tue Aug 27 2002 H. Peter Anvin <hpa@zytor.com>
194 - Upgrade to 1.76.
195
196 * Fri Jun 14 2002 H. Peter Anvin <hpa@zytor.com>
197 - Upgrade to 1.75.
198
199 * Sat Jun  1 2002 H. Peter Anvin <hpa@zytor.com>
200 - Upgrade to 1.74.
201
202 * Sun May 26 2002 H. Peter Anvin <hpa@zytor.com>
203 - Upgrade to 1.73.
204
205 * Tue Apr 23 2002 H. Peter Anvin <hpa@zytor.com>
206 - Upgrade to 1.72.
207
208 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
209 - Upgrade to 1.71.
210 - Update the title.
211
212 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
213 - Upgrade to 1.70.
214
215 * Sat Feb  3 2002 H. Peter Anvin <hpa@zytor.com>
216 - Upgrade to 1.67.
217
218 * Tue Jan  1 2002 H. Peter Anvin <hpa@zytor.com>
219 - Upgrade to 1.66.
220
221 * Sat Dec 15 2001 H. Peter Anvin <hpa@zytor.com>
222 - Upgrade to 1.65; make appropriate changes.
223
224 * Sat Aug 24 2001 H. Peter Anvin <hpa@zytor.com>
225 - Upgrade to 1.64.
226
227 * Mon Aug  6 2001 H. Peter Anvin <hpa@zytor.com>
228 - Upgrade to 1.63.
229 - Use make install since the stock SYSLINUX distribution now supports
230   INSTALLROOT.
231
232 * Sat Apr 24 2001 H. Peter Anvin <hpa@zytor.com>
233 - Upgrade to 1.62.
234
235 * Sat Apr 14 2001 H. Peter Anvin <hpa@zytor.com>
236 - Fix missing %files; correct modes.
237
238 * Fri Apr 13 2001 H. Peter Anvin <hpa@zytor.com>
239 - Upgrade to 1.61
240 - Install auxilliary programs in /usr/lib/syslinux
241
242 * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
243 - 1.52
244
245 * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
246 - 1.51pre7
247
248 * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
249 - 1.51pre5
250
251 * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
252 - 1.51pre3, with e820 detection
253
254 * Tue Dec 12 2000 Than Ngo <than@redhat.com>
255 - rebuilt with fixed fileutils
256
257 * Thu Nov 9 2000 Than Ngo <than@redhat.com>
258 - update to 1.49
259 - update ftp site
260 - clean up specfile
261 - add some useful documents
262
263 * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
264 - add %%defattr (release 4)
265
266 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
267 - automatic rebuild
268
269 * Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
270 - use %%{_tmppath}
271 - change application group (Applications/Internet doesn't seem
272   right to me)
273 - added BuildRequires
274
275 * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
276 - initial packaging