[keepalived/f15: 4/4] Use libnl for Fedora and RHEL6+ to add IPv6 support

Matthias Saou thias at fedoraproject.org
Tue Jul 12 18:16:38 UTC 2011


commit 921ff3c8285cef44767788ab9f4d621df81513b4
Author: Matthias Saou <thias at marmotte.net>
Date:   Tue Jul 12 20:15:14 2011 +0200

    Use libnl for Fedora and RHEL6+ to add IPv6 support

 keepalived.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/keepalived.spec b/keepalived.spec
index 8b822b3..51773f0 100644
--- a/keepalived.spec
+++ b/keepalived.spec
@@ -1,7 +1,7 @@
-Summary: HA monitor built upon LVS, VRRP and service pollers
+Summary: High Availability monitor built upon LVS, VRRP and service pollers
 Name: keepalived
 Version: 1.2.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: http://www.keepalived.org/
@@ -14,6 +14,12 @@ Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/service, /sbin/chkconfig
 Requires(postun): /sbin/service
 BuildRequires: openssl-devel
+%if 0%{?fedora:1} || 0%{?rhel} >= 6
+BuildRequires: libnl-devel
+%else
+# The RHEL <= 5 libnl is too old for the compilation to work
+BuildConflicts: libnl-devel < 1.1
+%endif
 # We need both of these for proper LVS support
 BuildRequires: kernel, kernel-devel
 # We need popt, popt-devel is split out of rpm in Fedora 8+ and RHEL 6+
@@ -103,6 +109,9 @@ fi
 
 
 %changelog
+* Tue Jul 23 2011 Matthias Saou <http://freshrpms.net/> 1.2.2-2
+- Build against libnl for Fedora. RHEL's libnl is too old.
+
 * Sat May 21 2011 Matthias Saou <http://freshrpms.net/> 1.2.2-1
 - Update to 1.2.2.
 


More information about the scm-commits mailing list