[pcp] Resolve build deps and specfile macro on el5/6
nathans
nathans at fedoraproject.org
Mon Dec 1 04:48:27 UTC 2014
commit 6d32cd73cdb71c65bbd7ea05a972ec7437be3d15
Author: Nathan Scott <nathans at redhat.com>
Date: Mon Dec 1 15:48:13 2014 +1100
Resolve build deps and specfile macro on el5/6
pcp.spec | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
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
More information about the scm-commits
mailing list