From 3250e17b364906d98911baa9ba3dcbd6515d37b1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 10 May 2015 13:06:28 +0200 Subject: [PATCH] redhat: enable JSON support if recent enough --- redhat/lldpd.spec | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5