From a580d5ae6d46b872e83136adb3834eed0560bb7e Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Fri, 24 Aug 2012 15:55:38 -0300 Subject: [PATCH] x86only: remove unpackaged non-x86 bios files Signed-off-by: Eduardo Habkost --- qemu.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qemu.spec b/qemu.spec index 306488f..57bcacd 100644 --- a/qemu.spec +++ b/qemu.spec @@ -541,6 +541,13 @@ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-sparc64 # Provided by package SLOF rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/slof.bin +# remove unpackaged files on x86only: +%if %{with x86only} +rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bamboo.dtb +rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ppc_rom.bin +rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/spapr-rtas.bin +%endif + # The following aren't provided by any Fedora package # Used by target s390/s390x