From: Jim Fehlig Date: Thu, 5 Dec 2013 21:43:28 +0000 (-0700) Subject: spec: Fix unconditional references of nwfilter X-Git-Tag: CVE-2013-6436~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc4973f85b0e664e8708ee6989a2709ea2e8c74a;p=thirdparty%2Flibvirt.git spec: Fix unconditional references of nwfilter Ensure nwfilter files lists and dependencies are conditional upon with_nwfilter being defined. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index eff7103d5e..2d1019663c 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -410,13 +410,15 @@ Requires: libvirt-daemon-driver-xen = %{version}-%{release} %if %{with_vbox} Requires: libvirt-daemon-driver-vbox = %{version}-%{release} %endif + %if %{with_nwfilter} +Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release} + %endif Requires: libvirt-daemon-driver-interface = %{version}-%{release} Requires: libvirt-daemon-driver-secret = %{version}-%{release} Requires: libvirt-daemon-driver-storage = %{version}-%{release} Requires: libvirt-daemon-driver-network = %{version}-%{release} Requires: libvirt-daemon-driver-nodedev = %{version}-%{release} -Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release} %endif %endif Requires: libvirt-client = %{version}-%{release} @@ -1752,7 +1754,9 @@ exit 0 %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart %endif + %if %{with_nwfilter} %dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/ + %endif %if %{with_systemd} %{_unitdir}/libvirtd.service