From: Vincent Bernat Date: Fri, 11 Jun 2010 15:49:59 +0000 (+0200) Subject: Be compatible with RHEL4. X-Git-Tag: 0.5.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ceb9bb736593a8381b5b3601c747264452b50a3;p=thirdparty%2Flldpd.git Be compatible with RHEL4. RHEL4 does not define bcond_without and with macros. Define them. --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index a01e8667..330c9a8d 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -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 - 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 - 0.5.0-1 - New upstream version - Add XML support