diff --git a/nbdkit.spec b/nbdkit.spec index 36f21b9..6e1de1c 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -23,6 +23,18 @@ # often broken on non-x86_64 arches. %global complete_test_arches x86_64 +%if 0%{?rhel} == 7 +# On RHEL 7, nothing in the virt stack is shipped on aarch64 and +# libguestfs was not shipped on POWER (fixed in 7.5). We could in +# theory make all of this work by having lots more conditionals, but +# for now limit this package to x86_64 on RHEL. +ExclusiveArch: x86_64 +%endif + +# The package is broken on armv7 because qemu is not installable. +# https://bugzilla.redhat.com/show_bug.cgi?id=1778517 +ExcludeArch: %{arm} + # If we should verify tarball signature with GPGv2. %global verify_tarball_signature 1 @@ -54,14 +66,6 @@ Patch1: 0001-tests-Run-just-built-nbdkit-not-installed-nbdkit.patch BuildRequires: autoconf, automake, libtool %endif -%if 0%{?rhel} == 7 -# On RHEL 7, nothing in the virt stack is shipped on aarch64 and -# libguestfs was not shipped on POWER (fixed in 7.5). We could in -# theory make all of this work by having lots more conditionals, but -# for now limit this package to x86_64 on RHEL. -ExclusiveArch: x86_64 -%endif - %ifnarch %{complete_test_arches} BuildRequires: autoconf, automake, libtool %endif