]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: add support for JSON in CentOS >= 6
authorVincent Bernat <vincent@bernat.im>
Sat, 21 Jan 2017 11:59:09 +0000 (12:59 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 21 Jan 2017 12:22:51 +0000 (13:22 +0100)
This seems supported in RHEL now, but doesn't work on OSC:
 https://rhn.redhat.com/errata/RHEA-2014-1530.html

Fix #220

redhat/lldpd.spec

index ab8b814cd79e2b13ae77e98cfac4c79161edc6c5..c44795820ca6c9a8ebaae9789ee9d95dfa4a1c19 100644 (file)
@@ -14,7 +14,6 @@
 %bcond_without dot3
 %bcond_without custom
 %bcond_without snmp
-%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.
 %bcond_with oldies
 %endif
 
+# On RHEL and SLES, compile without JSON support
+%if (0%{?rhel_version} > 0) || (0%{?centos_version} > 0 && 0%{?centos_version} < 600) || (0%{?suse_version} > 0)
+%bcond_with json
+%else
+%bcond_without json
+%endif
+
 # On RHEL < 7, disable systemd
 # On SuSE < 12, disable systemd
 %if (0%{?rhel_version} > 0 && 0%{?rhel_version} < 700) || (0%{?centos_version} > 0 && 0%{?centos_version} < 700) || (0%{?suse_version} > 0 && 0%{?suse_version} < 1210)