From d693cd14ad5b1f143bd5f4ec1931b73c383c36bc Mon Sep 17 00:00:00 2001 From: Matt Domsch Date: May 12 2009 13:18:49 +0000 Subject: handle isolinux changing paths --- diff --git a/gpxe.spec b/gpxe.spec index c17a647..67c3542 100644 --- a/gpxe.spec +++ b/gpxe.spec @@ -9,7 +9,7 @@ Name: gpxe Version: 0.9.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A network boot loader Group: System Environment/Base @@ -75,8 +75,11 @@ cp -a %{SOURCE1} . %build %ifarch %{buildarches} +# Fedora 10 and newer, location is in /usr/share. Older is in /usr/lib. +ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin +[ -e /usr/lib/syslinux/isolinux.bin ] && ISOLINUX_BIN=/usr/lib/syslinux/isolinux.bin cd src -make %{?_smp_mflags} ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin +make %{?_smp_mflags} ISOLINUX_BIN=${ISOLINUX_BIN} make %{?_smp_mflags} bin/gpxe.lkrn # The bnx2 firmware is too large to fit into an option ROM. rm drivers/net/bnx2*.[ch] @@ -136,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue May 12 2009 Matt Domsch - 0.9.7-3 +- handle isolinux changing paths + * Sat May 9 2009 Matt Domsch - 0.9.7-2 - add dist tag