Blame SPECS/syslinux.spec

25255a
Summary: Simple kernel loader which boots from a FAT filesystem
25255a
Name: syslinux
25255a
Version: 4.05
25255a
%define tarball_version 4.05
25255a
Release: 5%{?dist}
25255a
License: GPLv2+
25255a
Group: Applications/System
25255a
URL: http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
25255a
Source0: http://www.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{tarball_version}.tar.bz2
25255a
ExclusiveArch: %{ix86} x86_64
25255a
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25255a
BuildRequires: nasm >= 0.98.38-1, perl, netpbm-progs
25255a
BuildRequires: /usr/include/gnu/stubs-32.h
25255a
BuildRequires: libuuid-devel
25255a
%ifarch %{ix86}
25255a
Requires: mtools, libc.so.6
25255a
%endif
25255a
%ifarch x86_64
25255a
Requires: mtools, libc.so.6()(64bit)
25255a
%endif
25255a
25255a
Patch1: syslinux-isohybrid-fix-mbr.patch
25255a
Patch2: syslinux-4.05-avoid-ext2_fs.h.patch
25255a
25255a
# NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically
25255a
# a system bootloader, and may be necessary for system recovery.
25255a
%define _sbindir /sbin
25255a
25255a
%description
25255a
SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
25255a
filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
25255a
(PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool,
25255a
MEMDISK, which loads legacy operating systems from these media.
25255a
25255a
%package perl
25255a
Summary: Syslinux tools written in perl
25255a
Group: Applications/System
25255a
25255a
%description perl
25255a
Syslinux tools written in perl
25255a
25255a
%package devel
25255a
Summary: Headers and libraries for syslinux development.
25255a
Group: Development/Libraries
25255a
25255a
%description devel
25255a
Headers and libraries for syslinux development.
25255a
25255a
%package extlinux
25255a
Summary: The EXTLINUX bootloader, for booting the local system.
25255a
Group: System/Boot
25255a
Requires: syslinux
25255a
25255a
%description extlinux
25255a
The EXTLINUX bootloader, for booting the local system, as well as all
25255a
the SYSLINUX/PXELINUX modules in /boot.
25255a
25255a
%package tftpboot
25255a
Summary: SYSLINUX modules in /tftpboot, available for network booting
25255a
Group: Applications/Internet
25255a
Requires: syslinux
25255a
25255a
%description tftpboot
25255a
All the SYSLINUX/PXELINUX modules directly available for network
25255a
booting in the /tftpboot directory.
25255a
25255a
%prep
25255a
%setup -q -n syslinux-%{tarball_version}
25255a
25255a
%patch1 -p1 -b .isohyb
25255a
%patch2 -p1 -b .ext2
25255a
25255a
%build
25255a
CFLAGS="-Werror -Wno-unused -finline-limit=2000"
25255a
export CFLAGS
25255a
# If you make clean here, we lose the provided syslinux.exe
25255a
#make clean
25255a
make installer
25255a
make -C sample tidy
25255a
25255a
%install
25255a
rm -rf %{buildroot}
25255a
25255a
mkdir -p %{buildroot}%{_bindir}
25255a
mkdir -p %{buildroot}%{_sbindir}
25255a
mkdir -p %{buildroot}%{_prefix}/lib/syslinux
25255a
mkdir -p %{buildroot}%{_includedir}
25255a
make install-all \
25255a
	INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
25255a
       	LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
25255a
	MANDIR=%{_mandir} INCDIR=%{_includedir} \
25255a
	TFTPBOOT=/tftpboot EXTLINUXDIR=/boot/extlinux
25255a
25255a
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/sample
25255a
install -m 644 sample/sample.* %{buildroot}/%{_docdir}/%{name}-%{version}/sample/
25255a
mkdir -p %{buildroot}/etc
25255a
( cd %{buildroot}/etc && ln -s ../boot/extlinux/extlinux.conf . )
25255a
25255a
# don't ship libsyslinux, at least, not for now
25255a
rm -f %{buildroot}%{_prefix}/lib/libsyslinux*
25255a
rm -f %{buildroot}%{_includedir}/syslinux.h
25255a
25255a
%clean
25255a
rm -rf %{buildroot}
25255a
25255a
%files
25255a
%defattr(-,root,root)
25255a
%doc NEWS README* COPYING 
25255a
%doc doc/* 
25255a
%doc sample
25255a
%{_mandir}/man1/gethostip*
25255a
%{_mandir}/man1/syslinux*
25255a
%{_mandir}/man1/extlinux*
25255a
%{_bindir}/gethostip
25255a
%{_bindir}/isohybrid
25255a
%{_bindir}/memdiskfind
25255a
%{_bindir}/syslinux
25255a
%dir %{_datadir}/syslinux
25255a
%{_datadir}/syslinux/*.com
25255a
%{_datadir}/syslinux/*.exe
25255a
%{_datadir}/syslinux/*.c32
25255a
%{_datadir}/syslinux/*.bin
25255a
%{_datadir}/syslinux/*.0
25255a
%{_datadir}/syslinux/memdisk
25255a
%dir %{_datadir}/syslinux/dosutil
25255a
%{_datadir}/syslinux/dosutil/*
25255a
%{_datadir}/syslinux/diag/*
25255a
25255a
%files perl
25255a
%defattr(-,root,root)
25255a
%{_mandir}/man1/lss16toppm*
25255a
%{_mandir}/man1/ppmtolss16*
25255a
%{_mandir}/man1/syslinux2ansi*
25255a
%{_bindir}/keytab-lilo
25255a
%{_bindir}/lss16toppm
25255a
%{_bindir}/md5pass
25255a
%{_bindir}/mkdiskimage
25255a
%{_bindir}/ppmtolss16
25255a
%{_bindir}/pxelinux-options
25255a
%{_bindir}/sha1pass
25255a
%{_bindir}/syslinux2ansi
25255a
%{_bindir}/isohybrid.pl
25255a
25255a
%files devel
25255a
%defattr(-,root,root)
25255a
%dir %{_datadir}/syslinux/com32
25255a
%{_datadir}/syslinux/com32
25255a
25255a
%files extlinux
25255a
%{_sbindir}/extlinux
25255a
/boot/extlinux
25255a
%config /etc/extlinux.conf
25255a
25255a
%files tftpboot
25255a
/tftpboot
25255a
25255a
%post extlinux
25255a
# If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
25255a
# and update it.
25255a
if [ -f /boot/extlinux/extlinux.conf ]; then \
25255a
	extlinux --update /boot/extlinux ; \
25255a
elif [ -f /boot/extlinux.conf ]; then \
25255a
	mkdir -p /boot/extlinux && \
25255a
	mv /boot/extlinux.conf /boot/extlinux/extlinux.conf && \
25255a
	extlinux --update /boot/extlinux ; \
25255a
fi
25255a
25255a
%changelog
25255a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.05-5
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
25255a
25255a
* Mon Aug 06 2012 Peter Jones <pjones@redhat.com> - 4.05-4
25255a
- Fix build problem from kernel-headers' removeal of ext2_fs.h
25255a
  (fix backported from as-yet-unreleased upstream version.)
25255a
25255a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.05-3
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
25255a
25255a
* Wed Apr 18 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 4.05-2
25255a
- Remove old Obsoletes/Provides for syslinux-devel as such a subpkg
25255a
  was introduced with 3.83-2 (#756733).
25255a
25255a
* Wed Feb 15 2012 Matthew Garrett <mjg@redhat.com> - 4.05-1
25255a
- New upstream release
25255a
- syslinux-isohybrid-fix-mbr.patch: generate a full MBR for UEFI images
25255a
25255a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.02-6
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
25255a
25255a
* Wed Aug 24 2011 Matthew Garrett <mjg@redhat.com> - 4.02-5
25255a
- Add support for building Mac and GPT bootable hybrid images
25255a
25255a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.02-4
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
25255a
25255a
* Fri Aug 20 2010 Matt Domsch <mdomsch@fedoraproject.org> - 4.02-2
25255a
- add perl subpackage, move perl apps there
25255a
25255a
* Fri Aug 06 2010 Peter Jones <pjones@redhat.com> - 4.02-2
25255a
- Split out extlinux and tftpboot.
25255a
- remove duplicate syslinux/com32/ left in base package after 3.83-2
25255a
25255a
* Thu Aug 05 2010 Peter Jones <pjones@redhat.com> - 4.02-1
25255a
- Update to 4.02
25255a
25255a
* Mon Jan 11 2010 Peter Jones <pjones@redhat.com> - 3.84-1
25255a
- Update to 3.84
25255a
25255a
* Thu Dec 17 2009 Peter Jones <pjones@redhat.com> - 3.83-2
25255a
- Split out -devel
25255a
25255a
* Thu Oct 29 2009 Peter Jones <pjones@redhat.com> - 3.83-1
25255a
- update to 3.83
25255a
25255a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.75-4
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
25255a
25255a
* Tue Apr 28 2009 Jeremy Katz <katzj@redhat.com> - 3.75-3
25255a
- Stop suppressing requirements of the package (#465299)
25255a
25255a
* Tue Apr 28 2009 Jeremy Katz <katzj@redhat.com> - 3.75-2
25255a
- Don't strip binaries to fix debuginfo (#249970)
25255a
25255a
* Thu Apr 16 2009 Jeremy Katz <katzj@redhat.com> - 3.75-1
25255a
- update to 3.75
25255a
25255a
* Fri Apr 10 2009 Jeremy Katz <katzj@redhat.com> - 3.74-1
25255a
- update to 3.74
25255a
25255a
* Fri Feb 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.73-2
25255a
- fix arch issues 
25255a
25255a
* Fri Feb 27 2009 Jeremy Katz <katzj@redhat.com> - 3.73-1
25255a
- Update to 3.73
25255a
25255a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.61-4
25255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
25255a
25255a
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.61-3
25255a
- fix license tag
25255a
25255a
* Mon Feb 25 2008 Peter Jones <pjones@redhat.com> - 3.61-2
25255a
- Remove 16bpp patch, hpa says that's there to cover a bug that's fixed.
25255a
- Remove x86_64 patch; building without it works now.
25255a
25255a
* Tue Feb 21 2008 Peter Jones <pjones@redhat.com> - 3.61-1
25255a
- Update to 3.61 .
25255a
25255a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.36-9
25255a
- Autorebuild for GCC 4.3
25255a
25255a
* Wed Jan 09 2008 Florian La Roche <laroche@redhat.com> - 3.36-8
25255a
- spec in utf-8
25255a
- add URL tag
25255a
- own /usr/share/syslinux (rhbz#427816)
25255a
25255a
* Wed Oct 17 2007 Peter Jones <pjones@redhat.com> - 3.36-7
25255a
- Add necessary files for makebootfat to make usb images (patch from
25255a
  Joel Granados <jgranado@redhat.com>)
25255a
25255a
* Wed Oct  3 2007 Jeremy Katz <katzj@redhat.com> - 3.36-6
25255a
- fix menu system memory corruption (#239585)
25255a
25255a
* Tue Aug 14 2007 Jeremy Katz <katzj@redhat.com> - 3.36-5
25255a
- backport "menu hidden" support from upstream git
25255a
25255a
* Fri May  4 2007 Jeremy Katz <katzj@redhat.com> - 3.36-4
25255a
- switch to preferring 16bpp for graphical menu; this fixes the display for 
25255a
  qemu, kvm, etc
25255a
25255a
* Tue May  1 2007 Jeremy Katz <katzj@redhat.com> - 3.36-3
25255a
- fix countdown on boot images (#229491)
25255a
25255a
* Tue Apr 03 2007 Florian La Roche <laroche@redhat.com> - 3.36-2
25255a
- add upstream patch from 3.3x branch
25255a
25255a
* Mon Feb 12 2007 Florian La Roche <laroche@redhat.com> - 3.36-1
25255a
- update to 3.36
25255a
25255a
* Thu Feb 08 2007 Florian La Roche <laroche@redhat.com> - 3.35-1
25255a
- update to 3.35
25255a
25255a
* Thu Jan 18 2007 Jesse Keating <jkeating@redhat.com> - 3.31-2
25255a
- Make syslinux own /usr/lib/syslinux.
25255a
25255a
* Wed Jan 17 2007 Jeremy Katz <katzj@redhat.com> - 3.31-1
25255a
- update to 3.31
25255a
25255a
* Tue Aug 22 2006 Jesse Keating <jkeating@redhat.com> - 3.11-4
25255a
- Obsolete syslinux-devel.
25255a
- Couple cleanups for packaging guidelines
25255a
25255a
* Fri Jul 14 2006 David Cantrell <dcantrell@redhat.com> - 3.11-3
25255a
- Remove com32/include/time.h and com32/include/sys/times.h
25255a
- Replace CLK_TCK macros with CLOCKS_PER_SEC
25255a
25255a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.11-2.1
25255a
- rebuild
25255a
25255a
* Mon Jun 12 2006 Peter Jones <pjones@redhat.com> - 3.11-2
25255a
- Fold -devel subpackage into "syslinux"
25255a
25255a
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.10-5
25255a
- Use the actual file as a BuildRequire
25255a
25255a
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.10-4
25255a
- Changed glibc-devel to glibc32 to get the 32bit package in
25255a
25255a
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> - 3.10-3
25255a
- Added missing glibc-devel BuildRequires
25255a
25255a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.10-2.2
25255a
- rebuilt for new gcc4.1 snapshot and glibc changes
25255a
25255a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
25255a
- rebuilt
25255a
25255a
* Mon Aug 22 2005 Peter Jones <pjones@redhat.com> - 3.10-2
25255a
- Update to 3.10
25255a
- Don't do "make clean", so we actually ship the bins hpa gives us
25255a
25255a
* Sat Jul  9 2005 Peter Jones <pjones@redhat.com> - 3.09-2
25255a
- Update to 3.09
25255a
25255a
* Thu Jun 16 2005 Peter Jones <pjones@redhat.com> - 3.08.92-1
25255a
- Update to 3.09-pre2, to fix the i915 .bss overflow bug
25255a
25255a
* Thu May 19 2005 Peter Jones <pjones@redhat.com> - 3.08-3
25255a
- Fix filespec for samples in -devel
25255a
25255a
* Thu May 19 2005 Peter Jones <pjones@redhat.com> - 3.08-2
25255a
- update to 3.08
25255a
25255a
* Wed Mar 16 2005 Peter Jones <pjones@redhat.com> - 3.07-2
25255a
- gcc4 update
25255a
25255a
* Thu Jan 13 2005 Peter Jones <pjones@redhat.com> - 3.07-1
25255a
- update to 3.07
25255a
25255a
* Tue Jan 11 2005 Peter Jones <pjones@redhat.com> - 3.06-1
25255a
- update to 3.06 , which should fix the directory parsing bug that wedges it
25255a
  with diskboot.img
25255a
- change README to README* in doc, to include README.menu and README.usbkey
25255a
25255a
* Tue Jan  4 2005 Peter Jones <pjones@redhat.com> - 3.02-2
25255a
- Beehive doesn't let you build in scratch and then build someplace else,
25255a
  arrrrgh.
25255a
25255a
* Tue Jan  4 2005 Peter Jones <pjones@redhat.com> - 3.02-1
25255a
- 3.02
25255a
- Make the spec a little closer to hpa's.
25255a
25255a
* Mon Jan  3 2005 Peter Jones <pjones@redhat.com> - 3.00-2
25255a
- make tag says the tag is there, make build says it's not.
25255a
  Bump release, try again.
25255a
25255a
* Mon Jan  3 2005 Peter Jones <pjones@redhat.com> - 3.00-1
25255a
- 3.00
25255a
25255a
* Mon Aug 16 2004 Jeremy Katz <katzj@redhat.com> - 2.11-1
25255a
- 2.11
25255a
25255a
* Fri Jul 30 2004 Jeremy Katz <katzj@redhat.com> - 2.10-1
25255a
- update to 2.10
25255a
25255a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
25255a
- rebuilt
25255a
25255a
* Sat Apr 17 2004 Jeremy Katz <katzj@redhat.com> 2.0.8-3
25255a
- add syslinux-nomtools binary to be used for creating some installer images
25255a
25255a
* Tue Feb 17 2004 Jeremy Katz <katzj@redhat.com> 
25255a
- add netpbm-progs BuildRequires (#110255)
25255a
25255a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
25255a
- rebuilt
25255a
25255a
* Sun Dec 14 2003 Jeremy Katz <katzj@redhat.com> 2.08-1
25255a
- 2.08
25255a
25255a
* Fri Aug 22 2003 Jeremy Katz <katzj@redhat.com> 2.06-1
25255a
- 2.06
25255a
25255a
* Thu Aug 14 2003 Jeremy Katz <katzj@redhat.com> 2.05-1
25255a
- update to 2.05
25255a
25255a
* Mon Apr 21 2003 Jeremy Katz <katzj@redhat.com> 2.04-2
25255a
- add patch for samples to build on x86_64
25255a
- integrate some changes from upstream specfile (#88593)
25255a
25255a
* Fri Apr 18 2003 Jeremy Katz <katzj@redhat.com> 2.04-1
25255a
- update to 2.04
25255a
25255a
* Mon Feb  3 2003 Jeremy Katz <katzj@redhat.com> 2.01-1
25255a
- update to 2.01
25255a
25255a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
25255a
- rebuilt
25255a
25255a
* Tue Jan 14 2003 Jeremy Katz <katzj@redhat.com> 2.00-3
25255a
- fix deps for x86_64
25255a
25255a
* Wed Nov 27 2002 Tim Powers <timp@redhat.com> 2.00-2
25255a
- build on both x86_64 and i386
25255a
25255a
* Fri Nov  1 2002 Jeremy Katz <katzj@redhat.com>
25255a
- update to 2.00
25255a
- add additional files as requested by hpa (#68073)
25255a
25255a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
25255a
- automated rebuild
25255a
25255a
* Tue Jun 18 2002 Jeremy Katz <katzj@redhat.com>
25255a
- lss16toppm and ppmtolss16 are both perl scripts... turn off find-requires
25255a
  so we don't suck in perl as a dependency for syslinux
25255a
25255a
* Mon Jun 17 2002 Jeremy Katz <katzj@redhat.com>
25255a
- update to 1.75
25255a
- include tools to create graphical image format needed by syslinux
25255a
- include isolinux 
25255a
- include pxelinux (#64942)
25255a
25255a
* Fri Jun 14 2002 Preston Brown <pbrown@redhat.com>
25255a
- upgrade to latest version w/graphical screen support
25255a
25255a
* Thu May 23 2002 Tim Powers <timp@redhat.com>
25255a
- automated rebuild
25255a
25255a
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
25255a
- automated rebuild
25255a
25255a
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
25255a
- Bump release + rebuild.
25255a
25255a
* Sat Feb 10 2001 Matt Wilson <msw@redhat.com>
25255a
- 1.52
25255a
25255a
* Wed Jan 24 2001 Matt Wilson <msw@redhat.com>
25255a
- 1.51pre7
25255a
25255a
* Mon Jan 22 2001 Matt Wilson <msw@redhat.com>
25255a
- 1.51pre5
25255a
25255a
* Fri Jan 19 2001 Matt Wilson <msw@redhat.com>
25255a
- 1.51pre3, with e820 detection
25255a
25255a
* Tue Dec 12 2000 Than Ngo <than@redhat.com>
25255a
- rebuilt with fixed fileutils
25255a
25255a
* Thu Nov 9 2000 Than Ngo <than@redhat.com>
25255a
- update to 1.49
25255a
- update ftp site
25255a
- clean up specfile
25255a
- add some useful documents
25255a
25255a
* Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com>
25255a
- add %%defattr (release 4)
25255a
25255a
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
25255a
- automatic rebuild
25255a
25255a
* Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
25255a
- use %%{_tmppath}
25255a
- change application group (Applications/Internet doesn't seem
25255a
  right to me)
25255a
- added BuildRequires
25255a
25255a
* Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
25255a
- initial packaging