From 2ceb9bb736593a8381b5b3601c747264452b50a3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 11 Jun 2010 17:49:59 +0200 Subject: [PATCH] Be compatible with RHEL4. RHEL4 does not define bcond_without and with macros. Define them. --- redhat/lldpd.spec | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5