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.
This commit is contained in:
Jim Fehlig 2013-12-05 14:49:48 -07:00
parent dc4973f85b
commit f422ab05b8

View File

@ -1524,6 +1524,7 @@ then
fi fi
%if %{with_libvirtd} %if %{with_libvirtd}
%if %{with_qemu}
%pre daemon %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 # We want soft static allocation of well-known ids, as disk images
@ -1540,6 +1541,7 @@ if ! getent passwd qemu >/dev/null; then
fi fi
exit 0 exit 0
%endif %endif
%endif
%post daemon %post daemon