]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: use system libnl3 when possible
authorVincent Bernat <vincent@bernat.im>
Mon, 23 Nov 2015 07:33:05 +0000 (08:33 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 23 Nov 2015 07:33:05 +0000 (08:33 +0100)
redhat/lldpd.spec

index bbec0ee4c5068dca94f8eff2eb59684ccf94a122..053184c4464172a683ac284e23b4682b62511c12 100644 (file)
 %bcond_without system_libevent
 %endif
 
+# On RHEL < 6, use embedded libnl
+%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 600 || 0%{?centos_version} > 0 && 0%{?centos_version} < 600 || 0%{?suse_version} > 0 && 0%{?suse_version} < 1200
+%bcond_with system_libnl
+%else
+%bcond_without system_libnl
+%endif
+
 %define lldpd_user _lldpd
 %define lldpd_group _lldpd
 %define lldpd_chroot /var/run/lldpd
@@ -67,6 +74,9 @@ BuildRequires: pkgconfig
 %if %{with system_libevent}
 BuildRequires: libevent-devel
 %endif
+%if %{with system_libnl}
+BuildRequires: libnl3-devel
+%endif
 BuildRequires: readline-devel
 %if %{with snmp}
 BuildRequires: net-snmp-devel
@@ -308,7 +318,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Sun Nov 22 2015 Vincent Bernat <bernat@luffy.cx> - 0.8.0-1
 - New upstream version.
-- Use embedded libnl3.
+- Use system libnl3 when possible.
 - Use system libevent when possible.
 
 * Wed Sep 09 2015 Vincent Bernat <bernat@luffy.cx> - 0.7.17-1