From: Vincent Bernat Date: Sun, 10 May 2015 11:06:28 +0000 (+0200) Subject: redhat: enable JSON support if recent enough X-Git-Tag: 0.7.15~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3250e17b364906d98911baa9ba3dcbd6515d37b1;p=thirdparty%2Flldpd.git redhat: enable JSON support if recent enough --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index be155905..42fb302c 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -18,8 +18,10 @@ # 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 +%bconf_without json %endif %define lldpd_user _lldpd @@ -47,6 +49,9 @@ BuildRequires: openssl-devel %if %{with xml} BuildRequires: libxml2-devel %endif +%if %{with json} +BuildRequires: json-c-devel +%endif %if 0%{?suse_version} PreReq: %fillup_prereq %insserv_prereq pwdutils %else