From 6d32cd73cdb71c65bbd7ea05a972ec7437be3d15 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 1 Dec 2014 15:48:13 +1100 Subject: [PATCH] Resolve build deps and specfile macro on el5/6 --- pcp.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index 87909f2..0dcd69c 100644 --- a/pcp.spec +++ b/pcp.spec @@ -16,7 +16,11 @@ Source1: pcp-webjs.src.tar.gz %{!?disable_perfevent: %global disable_perfevent 1} %else %{!?disable_papi: %global disable_papi 0%{?rhel} < 6} -%{!?disable_perfevent: %global disable_perfevent 0%{?rhel} < 7} +%if 0%{?fedora} >= 20 || 0%{?rhel} > 6 +%define disable_perfevent 0 +%else +%define disable_perfevent 1 +%endif %endif %define disable_microhttpd 0