From: Vincent Bernat Date: Thu, 21 May 2015 06:33:15 +0000 (+0200) Subject: redhat: don't build with JSON by default X-Git-Tag: 0.7.15~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=441d53f9ae8e2b568b82a0ad4fb8b136f7aeedd2;p=thirdparty%2Flldpd.git redhat: don't build with JSON by default json-c-devel is available in CentOS 7, but not RHEL 7. It's available in Fedora. Just disable it everywhere, not an essential feature. --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 5a376124..79429371 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -15,14 +15,13 @@ %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 -%bcond_with json %else %bcond_without snmp -%bcond_without json %endif %define lldpd_user _lldpd