Try getting the RPM to do the right thing for the com32 devel
[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 or iso9660 filesystem or a PXE network
5 Name: syslinux
6 Version: %{RPMVERSION}
7 Release: 1
8 License: GPL
9 Group: Applications/System
10 Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{VERSION}.tar.gz
11 ExclusiveArch: i386 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 i386
17 Requires: mtools, libc.so.6
18 %endif
19 %ifarch x86_64
20 Requires: mtools, libc.so.6()(64bit)
21 %endif
22
23 %description
24 SYSLINUX is a simple kernel loader. It normally loads the kernel (and an 
25 optional initrd image) from a FAT filesystem. It can also be used as a
26 PXE bootloader during network boots (PXELINUX), or for booting from
27 ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool, MEMDISK, which
28 loads legacy operating systems from these media.
29
30 Package: devel
31
32 %description devel
33 The SYSLINUX boot loader contains an API, called COM32, for writing
34 sophisticated add-on modules.  This package contains the libraries
35 necessary to compile such modules.
36
37 %prep
38 %setup -q -n syslinux-%{VERSION}
39
40 %build
41 make clean
42 make installer
43 make -C sample tidy
44
45 %install
46 rm -rf %{buildroot}
47 mkdir -p %{buildroot}%{_bindir}
48 mkdir -p %{buildroot}%{_libdir}/syslinux
49 mkdir -p %{buildroot}%{_includedir}
50 make install-all \
51         INSTALLROOT=%{buildroot} BINDIR=%{_bindir} \
52         LIBDIR=%{_libdir} INCDIR=%{_includedir}
53 make -C sample tidy
54 cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_libdir}/syslinux
55
56 %clean
57 rm -rf %{buildroot}
58
59 %files
60 %defattr(-,root,root)
61 %doc NEWS README *.doc memdisk/*.doc COPYING
62 %doc sample
63 %{_bindir}/syslinux
64 %{_bindir}/ppmtolss16
65 %{_bindir}/lss16toppm
66 %{_bindir}/gethostip
67 %{_libdir}/syslinux/*.com
68 %{_libdir}/syslinux/*.exe
69 %{_libdir}/syslinux/*.c32
70 %{_libdir}/syslinux/*.bin
71 %{_libdir}/syslinux/*.0
72 %{_libdir}/syslinux/memdisk
73 %{_libdir}/libsyslinux.*
74 %{_includedir}/syslinux.h
75
76 %files devel
77 %{_libdir}/syslinux/com32
78
79 %post
80 /sbin/ldconfig
81
82 %postun
83 /sbin/ldconfig
84
85 %changelog
86 * Tue Dec 14 2004 H. Peter Anvin <hpa@zytor.com>
87 - Add a devel package for the com32 library added in 2.12.
88
89 * Wed Apr 16 2003 H. Peter Anvin <hpa@zytor.com> 2.04-1
90 - 2.04 release
91 - Add support for libsyslinux.so*
92 - Templatize for inclusion in CVS tree
93
94 * Thu Apr 10 2003 H. Peter Anvin <hpa@zytor.com>
95 - 2.03 release
96 - Add support for libsyslinux.a
97 - Add keytab-lilo.pl to the /usr/lib/syslinux directory
98 - Modernize syntax
99 - Support building on x86-64
100
101 * Thu Feb 13 2003 H. Peter Anvin <hpa@zytor.com>
102 - 2.02 release; no longer setuid
103
104 * Thu Jan 30 2003 H. Peter Anvin <hpa@zytor.com>
105 - Prepare for 2.01 release; make /usr/bin/syslinux setuid root
106
107 * Fri Oct 25 2002 H. Peter Anvin <hpa@zytor.com>
108 - Upgrade to 2.00.
109
110 * Tue Aug 27 2002 H. Peter Anvin <hpa@zytor.com>
111 - Upgrade to 1.76.
112
113 * Fri Jun 14 2002 H. Peter Anvin <hpa@zytor.com>
114 - Upgrade to 1.75.
115
116 * Sat Jun  1 2002 H. Peter Anvin <hpa@zytor.com>
117 - Upgrade to 1.74.
118
119 * Sun May 26 2002 H. Peter Anvin <hpa@zytor.com>
120 - Upgrade to 1.73.
121
122 * Tue Apr 23 2002 H. Peter Anvin <hpa@zytor.com>
123 - Upgrade to 1.72.
124
125 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
126 - Upgrade to 1.71.
127 - Update the title.
128
129 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
130 - Upgrade to 1.70.
131
132 * Sat Feb  3 2002 H. Peter Anvin <hpa@zytor.com>
133 - Upgrade to 1.67.
134
135 * Tue Jan  1 2002 H. Peter Anvin <hpa@zytor.com>
136 - Upgrade to 1.66.
137
138 * Sat Dec 15 2001 H. Peter Anvin <hpa@zytor.com>
139 - Upgrade to 1.65; make appropriate changes.
140
141 * Sat Aug 24 2001 H. Peter Anvin <hpa@zytor.com>
142 - Upgrade to 1.64.
143
144 * Mon Aug  6 2001 H. Peter Anvin <hpa@zytor.com>
145 - Upgrade to 1.63.
146 - Use make install since the stock SYSLINUX distribution now supports
147   INSTALLROOT.
148
149 * Sat Apr 24 2001 H. Peter Anvin <hpa@zytor.com>
150 - Upgrade to 1.62.
151
152 * Sat Apr 14 2001 H. Peter Anvin <hpa@zytor.com>
153 - Fix missing %files; correct modes.
154
155 * Fri Apr 13 2001 H. Peter Anvin <hpa@zytor.com>
156 - Upgrade to 1.61
157 - Install auxilliary programs in /usr/lib/syslinux
158
159 * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
160 - 1.52
161
162 * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
163 - 1.51pre7
164
165 * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
166 - 1.51pre5
167
168 * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
169 - 1.51pre3, with e820 detection
170
171 * Tue Dec 12 2000 Than Ngo <than@redhat.com>
172 - rebuilt with fixed fileutils
173
174 * Thu Nov 9 2000 Than Ngo <than@redhat.com>
175 - update to 1.49
176 - update ftp site
177 - clean up specfile
178 - add some useful documents
179
180 * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
181 - add %%defattr (release 4)
182
183 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
184 - automatic rebuild
185
186 * Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
187 - use %%{_tmppath}
188 - change application group (Applications/Internet doesn't seem
189   right to me)
190 - added BuildRequires
191
192 * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
193 - initial packaging