]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: don't build with JSON by default
authorVincent Bernat <vincent@bernat.im>
Thu, 21 May 2015 06:33:15 +0000 (08:33 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 21 May 2015 06:33:15 +0000 (08:33 +0200)
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.

redhat/lldpd.spec

index 5a376124a3e68dc2196e775cd55e4d8a28eb41f4..79429371f50011af7f9aed719d4107b9a484039f 100644 (file)
 %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