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