Factor out extlinux as a separate package, avoid /boot/memdisk error syslinux-3.30
authorH. Peter Anvin <hpa@zytor.com>
Mon, 18 Sep 2006 22:33:04 +0000 (15:33 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 18 Sep 2006 22:33:04 +0000 (15:33 -0700)
NEWS
syslinux.spec.in

diff --git a/NEWS b/NEWS
index 13535c4..a9124f7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Changes in 3.30:
          or PCI devices present.
        * RPM spec: add syslinux-tftpboot module; move syslinux by
          default to the /usr/share/syslinux directory.
+       * RPM spec: extlinux is now a separate package.
 
 Changes in 3.20:
        * EXTLINUX: New options --install (-i) and --update (-U), to
index 7d2f384..0ea67c3 100644 (file)
@@ -6,7 +6,7 @@ Name: syslinux
 Version: %{RPMVERSION}
 Release: 1
 License: GPL
-Group: Applications/System
+Group: System/Boot
 Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{VERSION}.tar.gz
 ExclusiveArch: i386 x86_64
 Packager: H. Peter Anvin <hpa@zytor.com>
@@ -40,6 +40,15 @@ The SYSLINUX boot loader contains an API, called COM32, for writing
 sophisticated add-on modules.  This package contains the libraries
 necessary to compile such modules.
 
+%package extlinux
+Summary: The EXTLINUX bootloader, for booting the local system.
+Group: System/Boot
+Requires: syslinux
+
+%description extlinux
+The EXTLINUX bootloader, for booting the local system, as well as all
+the SYSLINUX/PXELINUX modules in /boot.
+
 %package tftpboot
 Summary: SYSLINUX modules in /tftpboot, available for network booting
 Group: Applications/Internet
@@ -83,7 +92,6 @@ rm -rf %{buildroot}
 %doc NEWS README* *.doc memdisk/*.doc COPYING
 %doc sample
 %{_bindir}/syslinux
-%{_sbindir}/extlinux
 %{_bindir}/ppmtolss16
 %{_bindir}/lss16toppm
 %{_bindir}/gethostip
@@ -95,15 +103,18 @@ rm -rf %{buildroot}
 %{_datadir}/syslinux/memdisk
 %{_datadir}/syslinux/*.pl
 %{_datadir}/syslinux/mkdiskimage
-/boot/*.c32
 
 %files devel
 %{_datadir}/syslinux/com32
 
+%files extlinux
+%{_sbindir}/extlinux
+/boot
+
 %files tftpboot
 /tftpboot
 
-%post
+%post extlinux
 # If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
 # and update it.
 if [ -f /boot/extlinux.conf ]; then extlinux --update /boot; fi
@@ -113,6 +124,7 @@ if [ -f /boot/extlinux.conf ]; then extlinux --update /boot; fi
 %changelog
 * Mon Sep 19 2006 H. Peter Anvin <hpa@zytor.com>
 - Add a syslinux-tftpboot module.
+- Factor extlinux into its own package.
 - Move to %{_datadir} (/usr/share).
 
 * Wed Sep 21 2005 H. Peter Anvin <hpa@zytor.com>