%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
%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
%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