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