From 441d53f9ae8e2b568b82a0ad4fb8b136f7aeedd2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 21 May 2015 08:33:15 +0200 Subject: [PATCH] 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. --- redhat/lldpd.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5