]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt.spec.in: remove netcf conditional
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 4 May 2016 15:26:30 +0000 (16:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 11 May 2016 15:42:37 +0000 (16:42 +0100)
Both RHEL and Fedora build with netcf enabled at all
times.

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

index 87aecefd0c637ce24b7a1e92cd29d9fc51bf5636..6abe3a2fc62ffdfaab99bb267013f32f7f3b21d9 100644 (file)
@@ -81,7 +81,6 @@
 # A few optional bits off by default, we enable later
 %define with_polkit        0%{!?_without_polkit:0}
 %define with_fuse          0%{!?_without_fuse:0}
-%define with_netcf         0%{!?_without_netcf:0}
 %define with_yajl          0%{!?_without_yajl:0}
 %define with_nwfilter      0%{!?_without_nwfilter:0}
 %define with_libpcap       0%{!?_without_libpcap:0}
 %endif
 
 %define with_polkit    0%{!?_without_polkit:1}
-%define with_netcf     0%{!?_without_netcf:1}
 %define with_yajl      0%{!?_without_yajl:1}
 %define with_dtrace 1
 
-# interface requires netcf
-%if ! 0%{?with_netcf}
-    %define with_interface     0
-%endif
-
 # Enable sanlock library for lock management with QEMU
 # Sanlock is available only on arches where kvm is available for RHEL
 %if 0%{?fedora}
@@ -453,12 +446,10 @@ BuildRequires: fuse-devel >= 2.8.6
 BuildRequires: libssh2-devel >= 1.3.0
 %endif
 
-%if %{with_netcf}
-    %if 0%{?fedora} || 0%{?rhel} >= 7
+%if 0%{?fedora} || 0%{?rhel} >= 7
 BuildRequires: netcf-devel >= 0.2.2
-    %else
+%else
 BuildRequires: netcf-devel >= 0.1.8
-    %endif
 %endif
 %if %{with_esx}
 BuildRequires: libcurl-devel
@@ -650,7 +641,7 @@ capabilities.
 Summary: Interface driver plugin for the libvirtd daemon
 Group: Development/Libraries
 Requires: libvirt-daemon = %{version}-%{release}
-    %if %{with_netcf} && (0%{?fedora} || 0%{?rhel} >= 7)
+    %if (0%{?fedora} || 0%{?rhel} >= 7)
 Requires: netcf-libs >= 0.2.2
     %endif
 
@@ -1173,10 +1164,6 @@ rm -rf .git
     %define _without_fuse --without-fuse
 %endif
 
-%if ! %{with_netcf}
-    %define _without_netcf --without-netcf
-%endif
-
 %if ! %{with_selinux}
     %define _without_selinux --without-selinux
 %endif
@@ -1284,7 +1271,7 @@ rm -f po/stamp-po
            %{?_without_numad} \
            --with-capng \
            %{?_without_fuse} \
-           %{?_without_netcf} \
+           --with-netcf \
            %{?_without_selinux} \
            %{?_with_selinux_mount} \
            --without-apparmor \