From 1bf8f6f5bf773c4cdbe8bb8c139d71312bcca92b Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Tue, 15 Apr 2014 03:02:11 +0200 Subject: [PATCH] Undo packaging changes that break live image composes (#1086446) * Tue Apr 15 2014 Kevin Kofler - 6.02-2 - Undo packaging changes that break live image composes (#1086446) --- syslinux.spec | 67 ++++++++++++++------------------------------------- 1 file changed, 18 insertions(+), 49 deletions(-) diff --git a/syslinux.spec b/syslinux.spec index 7eefa3b..f7be51e 100644 --- a/syslinux.spec +++ b/syslinux.spec @@ -2,7 +2,7 @@ Summary: Simple kernel loader which boots from a FAT filesystem Name: syslinux Version: 6.02 %define tarball_version 6.02 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project @@ -15,7 +15,8 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: nasm >= 0.98.38-1, perl, netpbm-progs, git BuildRequires: /usr/include/gnu/stubs-32.h BuildRequires: libuuid-devel -Requires: syslinux-nonlinux = %{version}-%{release} +Obsoletes: %{name}-nonlinux < %{version}-%{release} +Provides: %{name}-nonlinux = %{version}-%{release} %ifarch %{ix86} Requires: mtools, libc.so.6 BuildRequires: mingw32-gcc @@ -53,7 +54,8 @@ Headers and libraries for syslinux development. Summary: The EXTLINUX bootloader, for booting the local system. Group: System/Boot Requires: syslinux -Requires: syslinux-extlinux-nonlinux = %{version}-%{release} +Obsoletes: %{name}-extlinux-nonlinux < %{version}-%{release} +Provides: %{name}-extlinux-nonlinux = %{version}-%{release} %description extlinux The EXTLINUX bootloader, for booting the local system, as well as all @@ -64,34 +66,14 @@ Summary: SYSLINUX modules in /tftpboot, available for network booting Group: Applications/Internet Requires: syslinux %ifarch x86_64 -Requires: syslinux-tftpboot(x86-32) = %{version}-%{release} +# self-obsoletes to get rid of i686 multilib +Obsoletes: %{name}-tftpboot = 6.02-1.fc21 %endif %description tftpboot All the SYSLINUX/PXELINUX modules directly available for network booting in the /tftpboot directory. -%ifarch %{ix86} -%package extlinux-nonlinux -Summary: The parts of the EXTLINUX bootloader which aren't run from linux. -Group: System/Boot -Requires: syslinux - -%description extlinux-nonlinux -All the EXTLINUX binaries that run from the firmware rather than -from a linux host. - -%package nonlinux -Summary: SYSLINUX modules which aren't run from linux. -Group: System/Boot -Requires: syslinux - -%description nonlinux -All the SYSLINUX binaries that run from the firmware rather than from a -linux host. It also includes a tool, MEMDISK, which loads legacy operating -systems from media. -%endif - %ifarch %{x86_64} %package efi64 Summary: SYSLINUX binaries and modules for 64-bit UEFI systems @@ -166,6 +148,12 @@ rm -rf %{buildroot} %dir %{_datadir}/syslinux/dosutil %{_datadir}/syslinux/dosutil/* %{_datadir}/syslinux/diag/* +%{_datadir}/syslinux/*.com +%{_datadir}/syslinux/*.exe +%{_datadir}/syslinux/*.c32 +%{_datadir}/syslinux/*.bin +%{_datadir}/syslinux/*.0 +%{_datadir}/syslinux/memdisk %ifarch %{ix86} %{_datadir}/syslinux/syslinux.exe %else @@ -195,32 +183,10 @@ rm -rf %{buildroot} %files extlinux %{_sbindir}/extlinux %config /etc/extlinux.conf - -%files tftpboot -%ifarch %{ix86} -/tftpboot - -%files nonlinux -%{_datadir}/syslinux/*.com -%{_datadir}/syslinux/*.exe -%{_datadir}/syslinux/*.c32 -%{_datadir}/syslinux/*.bin -%{_datadir}/syslinux/*.0 -%{_datadir}/syslinux/memdisk - -%files extlinux-nonlinux /boot/extlinux -%else -%exclude %{_datadir}/syslinux/memdisk -%exclude %{_datadir}/syslinux/*.com -%exclude %{_datadir}/syslinux/*.exe -%exclude %{_datadir}/syslinux/*.c32 -%exclude %{_datadir}/syslinux/*.bin -%exclude %{_datadir}/syslinux/*.0 -%exclude /boot/extlinux -%exclude /tftpboot -%endif +%files tftpboot +/tftpboot %ifarch %{x86_64} %files efi64 @@ -240,6 +206,9 @@ elif [ -f /boot/extlinux.conf ]; then \ fi %changelog +* Tue Apr 15 2014 Kevin Kofler - 6.02-2 +- Undo packaging changes that break live image composes (#1086446) + * Tue Apr 08 2014 Peter Jones - 6.02-1 - Update this to 6.02