From 2440e1c44e30a2f8ad85a7a3b4323fc032c6747f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 27 Sep 2012 12:31:42 +0100 Subject: [PATCH] Remove explicit dependency on qemu-kvm. Add explicit dependency on libvirt-daemon-kvm (on x86). With the libvirt backend, we don't invoke qemu/qemu-kvm directly (with the exception of virt-rescue). If we now assume Fedora 18+, then there's no reason to depend on a version of qemu, since all qemu versions contain virtio-scsi. However on x86, add a dependency on libvirt-daemon-kvm so that qemu-kvm is pulled in indirectly. Thanks Dan Berrange, Peter Robinson. --- libguestfs.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libguestfs.spec b/libguestfs.spec index ed3dab6..57ad131 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -58,7 +58,6 @@ BuildRequires: augeas-devel >= 0.5.0 BuildRequires: readline-devel BuildRequires: genisoimage BuildRequires: libxml2-devel -BuildRequires: qemu-kvm >= 2:1.1.0 BuildRequires: createrepo BuildRequires: glibc-static BuildRequires: libselinux-utils @@ -273,8 +272,7 @@ BuildRequires: qemu-img # Force new parted for Linux 3.0 (RHBZ#710882). BuildRequires: parted >= 3.0-2 -# Runtime requires: -Requires: qemu-kvm >= 2:1.1.0 +# For building the appliance. Requires: febootstrap-supermin-helper >= 3.20 # For core inspection API. @@ -287,6 +285,9 @@ Requires: fuse # For libvirt attach method. Requires: libvirt-daemon-qemu >= 0.10.2-3 +%ifarch %{ix86} x86_64 +Requires: libvirt-daemon-kvm >= 0.10.2-3 +%endif Requires: selinux-policy >= 3.11.1-25 # Provide our own custom requires for the supermin appliance.