From: Dan HorĂ¡k Date: Fri, 16 Nov 2012 17:50:20 +0000 (+0100) Subject: add ppc64 and s390x to arches where qemu-kvm exists X-Git-Tag: v0.10.2.2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7751c34b82b23c5cbfe6fdf08a0b4d339dc05dc;p=thirdparty%2Flibvirt.git add ppc64 and s390x to arches where qemu-kvm exists QEMU in Fedora >= 18 is configured with ppc64 and s390x as architectures where KVM is enabled. https://bugzilla.redhat.com/show_bug.cgi?id=872545 (cherry picked from commit 041b1ff26ac5bf569ca26049e85b8e73eb54c441) --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 74f03a6fe8..e353f0ad95 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -53,7 +53,13 @@ %define with_qemu_tcg %{with_qemu} # Change if we ever provide qemu-kvm binaries on non-x86 hosts -%ifarch %{ix86} x86_64 +%if 0%{?fedora} >= 18 +%define qemu_kvm_arches %{ix86} x86_64 ppc64 s390x +%else +%define qemu_kvm_arches %{ix86} x86_64 +%endif + +%ifarch %{qemu_kvm_arches} %define with_qemu_kvm %{with_qemu} %else %define with_qemu_kvm 0