From: Jim Fehlig Date: Thu, 5 Dec 2013 21:49:48 +0000 (-0700) Subject: spec: Only add libvirt-daemon pre install script if building with qemu X-Git-Tag: CVE-2013-6436~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f422ab05b8d212b41b5277c3de0d54bcbab156a5;p=thirdparty%2Flibvirt.git spec: Only add libvirt-daemon pre install script if building with qemu The %pre script in libvirt-daemon is specific to qemu, so only include it if building with qemu support. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 2d1019663c..ddb5d547a6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1524,8 +1524,9 @@ then fi %if %{with_libvirtd} + %if %{with_qemu} %pre daemon - %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 + %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 # We want soft static allocation of well-known ids, as disk images # are commonly shared across NFS mounts by id rather than name; see # https://fedoraproject.org/wiki/Packaging:UsersAndGroups @@ -1539,6 +1540,7 @@ if ! getent passwd qemu >/dev/null; then fi fi exit 0 + %endif %endif %post daemon