]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
spec: Only add libvirt-daemon pre install script if building with qemu
authorJim Fehlig <jfehlig@suse.com>
Thu, 5 Dec 2013 21:49:48 +0000 (14:49 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 6 Dec 2013 21:00:51 +0000 (14:00 -0700)
The %pre script in libvirt-daemon is specific to qemu, so only include
it if building with qemu support.

libvirt.spec.in

index 2d1019663c16dfff339fc9628c55eb453f8062f9..ddb5d547a6176e8d1b5bd56b59a5e30925b44d51 100644 (file)
@@ -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