From: Eric Blake Date: Mon, 20 Jun 2011 15:41:49 +0000 (-0600) Subject: build: require newer netcf when it is available X-Git-Tag: v0.9.3-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1486099cca48577f534302f3599541a45eefb6bc;p=thirdparty%2Flibvirt.git build: require newer netcf when it is available When building rpms for newer Fedora or RHEL, take advantage of the newer netcf packaging to guarantee interface snapshot support. * libvirt.spec.in (BuildRequires): Bump minimum version on platforms that support netcf 0.1.8. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 75b145a314..11b85918a7 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -424,8 +424,12 @@ BuildRequires: libcap-ng-devel >= 0.5.0 BuildRequires: libssh2-devel %endif %if %{with_netcf} +%if 0%{?fedora} >= 16 || 0%{?rhel} >= 6 +BuildRequires: netcf-devel >= 0.1.8 +%else BuildRequires: netcf-devel >= 0.1.4 %endif +%endif %if %{with_esx} %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 BuildRequires: libcurl-devel