Correct: %postin -> %post
[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.35, 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).
28
29 %prep
30 %setup -q -n syslinux-%{VERSION}
31
32 %build
33 make clean
34 make installer
35
36 %install
37 rm -rf %{buildroot}
38 mkdir -p %{buildroot}%{_bindir}
39 mkdir -p %{buildroot}%{_prefix}/lib/syslinux
40 mkdir -p %{buildroot}%{_prefix}/include
41 make install install-lib \
42         INSTALLROOT=%{buildroot} BINDIR=%{_bindir} \
43         LIBDIR=%{_prefix}/lib INCDIR=%{_prefix}/include
44 cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_prefix}/lib/syslinux
45
46 %clean
47 rm -rf %{buildroot}
48
49 %files
50 %defattr(-,root,root)
51 %doc NEWS README *.doc memdisk/*.doc COPYING
52 %doc sample
53 %{_bindir}/syslinux
54 %{_bindir}/ppmtolss16
55 %{_bindir}/lss16toppm
56 %{_bindir}/gethostip
57 %{_prefix}/lib/syslinux
58 %{_prefix}/lib/libsyslinux.*
59 %{_prefix}/include/syslinux.h
60
61 %post
62 /sbin/ldconfig
63
64 %postun
65 /sbin/ldconfig
66
67 %changelog
68 * Wed Apr 16 2003 H. Peter Anvin <hpa@zytor.com> 2.04-1
69 - 2.04 release
70 - Add support for libsyslinux.so*
71 - Templatize for inclusion in CVS tree
72
73 * Thu Apr 10 2003 H. Peter Anvin <hpa@zytor.com>
74 - 2.03 release
75 - Add support for libsyslinux.a
76 - Add keytab-lilo.pl to the /usr/lib/syslinux directory
77 - Modernize syntax
78 - Support building on x86-64
79
80 * Thu Feb 13 2003 H. Peter Anvin <hpa@zytor.com>
81 - 2.02 release; no longer setuid
82
83 * Thu Jan 30 2003 H. Peter Anvin <hpa@zytor.com>
84 - Prepare for 2.01 release; make /usr/bin/syslinux setuid root
85
86 * Fri Oct 25 2002 H. Peter Anvin <hpa@zytor.com>
87 - Upgrade to 2.00.
88
89 * Tue Aug 27 2002 H. Peter Anvin <hpa@zytor.com>
90 - Upgrade to 1.76.
91
92 * Fri Jun 14 2002 H. Peter Anvin <hpa@zytor.com>
93 - Upgrade to 1.75.
94
95 * Sat Jun  1 2002 H. Peter Anvin <hpa@zytor.com>
96 - Upgrade to 1.74.
97
98 * Sun May 26 2002 H. Peter Anvin <hpa@zytor.com>
99 - Upgrade to 1.73.
100
101 * Tue Apr 23 2002 H. Peter Anvin <hpa@zytor.com>
102 - Upgrade to 1.72.
103
104 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
105 - Upgrade to 1.71.
106 - Update the title.
107
108 * Wed Apr 17 2002 H. Peter Anvin <hpa@zytor.com>
109 - Upgrade to 1.70.
110
111 * Sat Feb  3 2002 H. Peter Anvin <hpa@zytor.com>
112 - Upgrade to 1.67.
113
114 * Tue Jan  1 2002 H. Peter Anvin <hpa@zytor.com>
115 - Upgrade to 1.66.
116
117 * Sat Dec 15 2001 H. Peter Anvin <hpa@zytor.com>
118 - Upgrade to 1.65; make appropriate changes.
119
120 * Sat Aug 24 2001 H. Peter Anvin <hpa@zytor.com>
121 - Upgrade to 1.64.
122
123 * Mon Aug  6 2001 H. Peter Anvin <hpa@zytor.com>
124 - Upgrade to 1.63.
125 - Use make install since the stock SYSLINUX distribution now supports
126   INSTALLROOT.
127
128 * Sat Apr 24 2001 H. Peter Anvin <hpa@zytor.com>
129 - Upgrade to 1.62.
130
131 * Sat Apr 14 2001 H. Peter Anvin <hpa@zytor.com>
132 - Fix missing %files; correct modes.
133
134 * Fri Apr 13 2001 H. Peter Anvin <hpa@zytor.com>
135 - Upgrade to 1.61
136 - Install auxilliary programs in /usr/lib/syslinux
137
138 * Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
139 - 1.52
140
141 * Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
142 - 1.51pre7
143
144 * Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
145 - 1.51pre5
146
147 * Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
148 - 1.51pre3, with e820 detection
149
150 * Tue Dec 12 2000 Than Ngo <than@redhat.com>
151 - rebuilt with fixed fileutils
152
153 * Thu Nov 9 2000 Than Ngo <than@redhat.com>
154 - update to 1.49
155 - update ftp site
156 - clean up specfile
157 - add some useful documents
158
159 * Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
160 - add %%defattr (release 4)
161
162 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
163 - automatic rebuild
164
165 * Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
166 - use %%{_tmppath}
167 - change application group (Applications/Internet doesn't seem
168   right to me)
169 - added BuildRequires
170
171 * Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
172 - initial packaging