[netcf-devel] [PATCH] specfile: require libnl3 for Fedora >= 18 and RHEL >= 7
Laine Stump
laine at laine.org
Fri Aug 24 21:02:13 UTC 2012
This needs to be done simultaneously with libvirt switching to libnl3,
so the conditionals for which version of libnl to use *must* be
identical, and the libvirt specfile must require >= netcf-0.2.2 (which
will be the next release after this change is made to netcf's
specfile).
---
netcf.spec.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/netcf.spec.in b/netcf.spec.in
index d863920..4fc0fda 100644
--- a/netcf.spec.in
+++ b/netcf.spec.in
@@ -11,7 +11,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel augeas-devel >= 0.5.2
BuildRequires: libxml2-devel libxslt-devel
+
+%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
+BuildRequires: libnl3-devel
+%else
BuildRequires: libnl-devel
+%endif
+
Requires: %{name}-libs = %{version}-%{release}
Provides: bundled(gnulib)
--
1.7.11.4
More information about the netcf-devel
mailing list