]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Be compatible with RHEL4.
authorVincent Bernat <bernat@luffy.cx>
Fri, 11 Jun 2010 15:49:59 +0000 (17:49 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 11 Jun 2010 15:49:59 +0000 (17:49 +0200)
RHEL4 does not define bcond_without and with macros. Define them.

redhat/lldpd.spec

index a01e8667c43a4c0d84b2af501fd7ba1acb2a704a..330c9a8dc846ae7c0760e50b20181ebe20489124 100644 (file)
@@ -1,5 +1,9 @@
 # configure options
 
+# Define with/without/bcond_without macros (needed for RHEL4)
+%define with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
+%define bcond_without()        %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
+
 # Conditional build options, disable with "--without xxx"
 %bcond_without snmp
 %bcond_without xml
@@ -153,6 +157,11 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) /etc/rc.d/init.d/*
 
 %changelog
+* Fri Jun 11 2010 Vincent Bernat <bernat@luffy.cx> - 0.5.1-1
+- New upstream version
+- Define bcond_without and with macros if not defined to be compatible
+  with RHEL
+
 * Fri Mar 12 2010 Vincent Bernat <bernat@luffy.cx> - 0.5.0-1
 - New upstream version
 - Add XML support