115a6f20505abd8ffc8feabf743bbda831d0788d
[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 %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 %{buildroot}/tftpboot/pxelinux.cfg
77 make CC='%{my_cc}' install-all \
78         INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
79         LIBDIR=%{_datadir} INCDIR=%{_includedir}
80 make CC='%{my_cc}' -C sample tidy
81 cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_datadir}/syslinux
82 cp %{buildroot}%{_datadir}/syslinux/*.c32       %{buildroot}/boot
83 cp %{buildroot}%{_datadir}/syslinux/memdisk     %{buildroot}/boot
84 cp %{buildroot}%{_datadir}/syslinux/*.c32       %{buildroot}/tftpboot
85 cp %{buildroot}%{_datadir}/syslinux/pxelinux.0 %{buildroot}/tftpboot
86 cp %{buildroot}%{_datadir}/syslinux/memdisk     %{buildroot}/tftpboot
87
88 %clean
89 rm -rf %{buildroot}
90
91 %files
92 %defattr(-,root,root)
93 %doc NEWS README* *.doc memdisk/*.doc COPYING
94 %doc sample
95 %{_bindir}/syslinux
96 %{_bindir}/ppmtolss16
97 %{_bindir}/lss16toppm
98 %{_bindir}/gethostip
99 %{_datadir}/syslinux/*.com
100 %{_datadir}/syslinux/*.exe
101 %{_datadir}/syslinux/*.c32
102 %{_datadir}/syslinux/*.bin
103 %{_datadir}/syslinux/*.0
104 %{_datadir}/syslinux/memdisk
105 %{_datadir}/syslinux/*.pl
106 %{_datadir}/syslinux/mkdiskimage
107
108 %files devel
109 %{_datadir}/syslinux/com32
110
111 %files extlinux
112 %{_sbindir}/extlinux
113 /boot
114
115 %files tftpboot
116 /tftpboot
117
118 %post extlinux
119 # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
120 # and update it.
121 if [ -f /boot/extlinux.conf ]; then extlinux --update /boot; fi
122
123 %postun
124
125 %changelog
126 * Thu Jan 25 2007 H. Peter Anvin <hpa@zytor.com>
127 - Hacks to make the 32-bit version build correctly on 64-bit machines.
128
129 * Mon Sep 19 2006 H. Peter Anvin <hpa@zytor.com>
130 - Add a syslinux-tftpboot module.
131 - Factor extlinux into its own package.
132 - Move to %{_datadir} (/usr/share).
133
134 * Wed Sep 21 2005 H. Peter Anvin <hpa@zytor.com>
135 - If /boot/extlinux.conf exist, run extlinux --update.
136
137 * Fri Sep  9 2005 H. Peter Anvin <hpa@zytor.com>
138 - Copy, don't link, *.c32 into /boot; rpm doesn't like breaking links.
139
140 * Tue Aug 23 2005 H. Peter Anvin <hpa@zytor.com>
141 - Put *.c32 into /boot.
142
143 * Thu Dec 30 2004 H. Peter Anvin <hpa@zytor.com>
144 - libsyslinux dropped in syslinux 3.00.
145 - Additional documentation.
146 - Add extlinux.
147
148 * Tue Dec 14 2004 H. Peter Anvin <hpa@zytor.com>
149 - Add a devel package for the com32 library added in 2.12.
150
151 * Wed Apr 16 2003 H. Peter Anvin <hpa@zytor.com> 2.04-1
152 - 2.04 release
153 - Add support for libsyslinux.so*
154 - Templatize for inclusion in CVS tree
155
156 * Thu Apr 10 2003 H. Peter Anvin <hpa@zytor.com>
157 - 2.03 release
158 - Add support for libsyslinux.a
159 - Add keytab-lilo.pl to the /usr/lib/syslinux directory
160 - Modernize syntax
161 - Support building on x86-64
162
163 * Thu Feb 13 2003 H. Peter Anvin <hpa@zytor.com>
164 - 2.02 release; no longer setuid
165
166 * Thu Jan 30 2003 H. Peter Anvin <hpa@zytor.com>
167 - Prepare for 2.01 release; make /usr/bin/syslinux setuid root
168
169 * Fri Oct 25 2002 H. Peter Anvin <hpa@zytor.com>
170 - Upgrade to 2.00.
171
172 * Tue Aug 27 2002 H. Peter Anvin <hpa@zytor.com>
173 - Upgrade to 1.76.
174
175 * Fri Jun 14 2002 H. Peter Anvin <hpa@zytor.com>
176 - Upgrade to 1.75.
177
178 * Sat Jun  1 2002 H. Peter Anvin <hpa@zytor.com>
179 - Upgrade to 1.74.
180
181 * Sun May 26 2002 H. Peter Anvin <hpa@zytor.com>
182 - Upgrade to 1.73.
183
184 * Tue Apr 23 2002 H. Peter Anvin <hpa@zytor.com>
185 - Upgrade to 1.72.
186
187 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
188 - Upgrade to 1.71.
189 - Update the title.
190
191 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
192 - Upgrade to 1.70.
193
194 * Sat Feb  3 2002 H. Peter Anvin <hpa@zytor.com>
195 - Upgrade to 1.67.
196
197 * Tue Jan  1 2002 H. Peter Anvin <hpa@zytor.com>
198 - Upgrade to 1.66.
199
200 * Sat Dec 15 2001 H. Peter Anvin <hpa@zytor.com>
201 - Upgrade to 1.65; make appropriate changes.
202
203 * Sat Aug 24 2001 H. Peter Anvin <hpa@zytor.com>
204 - Upgrade to 1.64.
205
206 * Mon Aug  6 2001 H. Peter Anvin <hpa@zytor.com>
207 - Upgrade to 1.63.
208 - Use make install since the stock SYSLINUX distribution now supports
209   INSTALLROOT.
210
211 * Sat Apr 24 2001 H. Peter Anvin <hpa@zytor.com>
212 - Upgrade to 1.62.
213
214 * Sat Apr 14 2001 H. Peter Anvin <hpa@zytor.com>
215 - Fix missing %files; correct modes.
216
217 * Fri Apr 13 2001 H. Peter Anvin <hpa@zytor.com>
218 - Upgrade to 1.61
219 - Install auxilliary programs in /usr/lib/syslinux
220
221 * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
222 - 1.52
223
224 * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
225 - 1.51pre7
226
227 * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
228 - 1.51pre5
229
230 * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
231 - 1.51pre3, with e820 detection
232
233 * Tue Dec 12 2000 Than Ngo <than@redhat.com>
234 - rebuilt with fixed fileutils
235
236 * Thu Nov 9 2000 Than Ngo <than@redhat.com>
237 - update to 1.49
238 - update ftp site
239 - clean up specfile
240 - add some useful documents
241
242 * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
243 - add %%defattr (release 4)
244
245 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
246 - automatic rebuild
247
248 * Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
249 - use %%{_tmppath}
250 - change application group (Applications/Internet doesn't seem
251   right to me)
252 - added BuildRequires
253
254 * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
255 - initial packaging