[qemu] Only dependy on qemu-sanity-check where it's currently available

Cole Robinson crobinso at fedoraproject.org
Thu Aug 29 16:27:50 UTC 2013


commit 81ec822962abcd90ca246e19576bf63d4cb721ed
Author: Cole Robinson <crobinso at redhat.com>
Date:   Thu Aug 29 12:26:19 2013 -0400

    Only dependy on qemu-sanity-check where it's currently available

 qemu.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index 77348e6..1f226f1 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -267,8 +267,10 @@ BuildRequires: gettext
 # RDMA migration
 BuildRequires: librdmacm-devel
 # For sanity test
+%if 0%{?fedora} >= 20
 BuildRequires: qemu-sanity-check-nodeps
 BuildRequires: kernel
+%endif
 
 %if 0%{?user:1}
 Requires: %{name}-%{user} = %{epoch}:%{version}-%{release}
@@ -990,9 +992,11 @@ make check
 
 # Sanity-check current kernel can boot on this qemu.
 # The results are advisory only.
+%if 0%{?fedora} >= 20
 %ifarch x86_64
 qemu-sanity-check --qemu=x86_64-softmmu/qemu-system-x86_64 || :
 %endif
+%endif
 
 %ifarch %{kvm_archs}
 %post %{kvm_package}


More information about the scm-commits mailing list