]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: drop support for RHEL 4
authorVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 15:48:26 +0000 (16:48 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 15:48:26 +0000 (16:48 +0100)
It's unlikely we are able to compile correctly on it.

redhat/lldpd.spec

index 4fde80be50fcd449d88b3ecd1fe4988e6842900e..4b00fb926e34e653f5438e0b9140aa0dcefa448a 100644 (file)
@@ -1,11 +1,5 @@
 # configure options
 
-# Define with/without/bcond_without macros (needed for RHEL4)
-%define with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
-%define without()      %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
-%define bcond_with()   %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
-%define bcond_without()        %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
-
 # Conditional build options, disable with "--without xxx"
 %bcond_without xml
 %bcond_without cdp
 %bcond_without dot1
 %bcond_without dot3
 %bcond_without custom
-%bcond_with json
-
-# On RHEL < 5, disable SNMP, Net-SNMP installation seems broken
-%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 500 || 0%{?centos_version} > 0 && 0%{?centos_version} < 500
-%bcond_with snmp
-%else
 %bcond_without snmp
-%endif
+%bcond_with json
 
 # On RHEL <= 6, compile with oldies
 # For SuSE, SLE11 with a recent SP comes with 3.0. SLE12 comes with 3.12.