]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Enable netcf by default
authorMark McLoughlin <markmc@redhat.com>
Tue, 28 Jul 2009 16:30:48 +0000 (17:30 +0100)
committerMark McLoughlin <markmc@redhat.com>
Tue, 28 Jul 2009 18:29:59 +0000 (19:29 +0100)
Disabled on < f12 for now until netcf is in Fedora updates

BuildRequires netcf if enabled, pass --without-netcf if its disabled

* libvirt.spec.in: enabled netcf by default

libvirt.spec.in

index 18c87a2aa4b3d44be2fad379339fe82529c2423d..547d8e8d6f19dcd4efa01305c1643155edd3c721 100644 (file)
@@ -23,6 +23,7 @@
 %define with_numactl       0%{!?_without_numactl:1}
 # default to off
 %define with_capng         0%{!?_without_capng:0}
+%define with_netcf         0%{!?_without_netcf:1}
 
 # Xen is available only on i386 x86_64 ia64
 %ifnarch i386 i586 i686 x86_64 ia64
 %define with_capng     0%{!?_without_capng:1}
 %endif
 
+%if 0%{?fedora} >= 12
+%define with_netcf     0%{!?_without_netcf:1}
+%endif
+
 %if 0%{?fedora} >= 12
 %define qemu_user  qemu
 %define qemu_group  qemu
@@ -183,6 +188,9 @@ BuildRequires: libcap-ng-devel >= 0.5.0
 %if %{with_phyp}
 BuildRequires: libssh-devel >= 0.3.1
 %endif
+%if %{with_netcf}
+BuildRequires: netcf-devel
+%endif
 
 # Fedora build root suckage
 BuildRequires: gawk
@@ -326,6 +334,10 @@ of recent versions of Linux (and other OSes).
 %define _without_capng --without-capng
 %endif
 
+%if ! %{with_netcf}
+%define _without_netcf --without-netcf
+%endif
+
 %configure %{?_without_xen} \
            %{?_without_qemu} \
            %{?_without_openvz} \
@@ -347,6 +359,7 @@ of recent versions of Linux (and other OSes).
            %{?_without_storage_disk} \
            %{?_without_numactl} \
            %{?_without_capng} \
+           %{?_without_netcf} \
            --with-qemu-user=%{qemu_user} \
            --with-qemu-group=%{qemu_group} \
            --with-init-script=redhat \