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