]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: enable JSON support if recent enough
authorVincent Bernat <vincent@bernat.im>
Sun, 10 May 2015 11:06:28 +0000 (13:06 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 10 May 2015 11:06:28 +0000 (13:06 +0200)
redhat/lldpd.spec

index be15590589d691dae239e3f0b687295aa2b3df7f..42fb302c7868633ea7c0af825e01a17dc7f0e2b0 100644 (file)
 # 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