]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirt.spec.in: remove nodedev conditional
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 4 May 2016 15:41:16 +0000 (16:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 11 May 2016 15:42:38 +0000 (16:42 +0100)
Both RHEL and Fedora build with the nodedev driver enabled
at all times.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
libvirt.spec.in

index 829cdd1ab9e5887e01770fe9e754daa074fc6baf..fc3cf32dc3c219ee56af6585bd590c210172d4ee 100644 (file)
     %define with_cgconfig 0%{!?_without_cgconfig:1}
 %endif
 
-%define with_nodedev 1
-
 # Force QEMU to run as non-root
 %define qemu_user  qemu
 %define qemu_group  qemu
@@ -554,24 +552,21 @@ iptables and ip6tables capabilities
 %endif
 
 
-%if %{with_nodedev}
 %package daemon-driver-nodedev
 Summary: Nodedev driver plugin for the libvirtd daemon
 Group: Development/Libraries
 Requires: libvirt-daemon = %{version}-%{release}
 # needed for device enumeration
-    %if 0%{?fedora} || 0%{?rhel} >= 7
+%if 0%{?fedora} || 0%{?rhel} >= 7
 Requires: systemd >= 185
-    %else
+%else
 Requires: udev >= 145
-    %endif
 %endif
 
 %description daemon-driver-nodedev
 The nodedev driver plugin for the libvirtd daemon, providing
 an implementation of the node device APIs using the udev
 capabilities.
-%endif
 
 
 %package daemon-driver-interface
@@ -1635,11 +1630,9 @@ exit 0
 %attr(0755, root, root) %{_libexecdir}/libvirt_leaseshelper
 %{_libdir}/%{name}/connection-driver/libvirt_driver_network.so
 
-%if %{with_nodedev}
 %files daemon-driver-nodedev
 %defattr(-, root, root)
 %{_libdir}/%{name}/connection-driver/libvirt_driver_nodedev.so
-%endif
 
 %if %{with_nwfilter}
 %files daemon-driver-nwfilter