提交 db9249a1 编写于 作者: D Daniel P. Berrange

libvirt.spec.in: remove netcf conditional

Both RHEL and Fedora build with netcf enabled at all
times.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 64799c3f
...@@ -81,7 +81,6 @@ ...@@ -81,7 +81,6 @@
# A few optional bits off by default, we enable later # A few optional bits off by default, we enable later
%define with_polkit 0%{!?_without_polkit:0} %define with_polkit 0%{!?_without_polkit:0}
%define with_fuse 0%{!?_without_fuse:0} %define with_fuse 0%{!?_without_fuse:0}
%define with_netcf 0%{!?_without_netcf:0}
%define with_yajl 0%{!?_without_yajl:0} %define with_yajl 0%{!?_without_yajl:0}
%define with_nwfilter 0%{!?_without_nwfilter:0} %define with_nwfilter 0%{!?_without_nwfilter:0}
%define with_libpcap 0%{!?_without_libpcap:0} %define with_libpcap 0%{!?_without_libpcap:0}
...@@ -175,15 +174,9 @@ ...@@ -175,15 +174,9 @@
%endif %endif
%define with_polkit 0%{!?_without_polkit:1} %define with_polkit 0%{!?_without_polkit:1}
%define with_netcf 0%{!?_without_netcf:1}
%define with_yajl 0%{!?_without_yajl:1} %define with_yajl 0%{!?_without_yajl:1}
%define with_dtrace 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 # Enable sanlock library for lock management with QEMU
# Sanlock is available only on arches where kvm is available for RHEL # Sanlock is available only on arches where kvm is available for RHEL
%if 0%{?fedora} %if 0%{?fedora}
...@@ -453,12 +446,10 @@ BuildRequires: fuse-devel >= 2.8.6 ...@@ -453,12 +446,10 @@ BuildRequires: fuse-devel >= 2.8.6
BuildRequires: libssh2-devel >= 1.3.0 BuildRequires: libssh2-devel >= 1.3.0
%endif %endif
%if %{with_netcf} %if 0%{?fedora} || 0%{?rhel} >= 7
%if 0%{?fedora} || 0%{?rhel} >= 7
BuildRequires: netcf-devel >= 0.2.2 BuildRequires: netcf-devel >= 0.2.2
%else %else
BuildRequires: netcf-devel >= 0.1.8 BuildRequires: netcf-devel >= 0.1.8
%endif
%endif %endif
%if %{with_esx} %if %{with_esx}
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
...@@ -650,7 +641,7 @@ capabilities. ...@@ -650,7 +641,7 @@ capabilities.
Summary: Interface driver plugin for the libvirtd daemon Summary: Interface driver plugin for the libvirtd daemon
Group: Development/Libraries Group: Development/Libraries
Requires: libvirt-daemon = %{version}-%{release} 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 Requires: netcf-libs >= 0.2.2
%endif %endif
...@@ -1173,10 +1164,6 @@ rm -rf .git ...@@ -1173,10 +1164,6 @@ rm -rf .git
%define _without_fuse --without-fuse %define _without_fuse --without-fuse
%endif %endif
%if ! %{with_netcf}
%define _without_netcf --without-netcf
%endif
%if ! %{with_selinux} %if ! %{with_selinux}
%define _without_selinux --without-selinux %define _without_selinux --without-selinux
%endif %endif
...@@ -1284,7 +1271,7 @@ rm -f po/stamp-po ...@@ -1284,7 +1271,7 @@ rm -f po/stamp-po
%{?_without_numad} \ %{?_without_numad} \
--with-capng \ --with-capng \
%{?_without_fuse} \ %{?_without_fuse} \
%{?_without_netcf} \ --with-netcf \
%{?_without_selinux} \ %{?_without_selinux} \
%{?_with_selinux_mount} \ %{?_with_selinux_mount} \
--without-apparmor \ --without-apparmor \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册