From 49e94dce575457e5fbf042ea3e2299d850e8fe50 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 21 Sep 2018 14:18:14 +1000 Subject: [PATCH] Build fix for python2/3 and changelog update --- pcp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index 12c022e..af0c09c 100644 --- a/pcp.spec +++ b/pcp.spec @@ -51,6 +51,7 @@ Source4: %{github}/pcp-webapp-blinkenlights/archive/1.0.1/pcp-webapp-blinkenligh %global disable_cairo 0 %if 0%{?rhel} > 7 || 0%{?fedora} >= 30 +%global _with_python2 --with-python=no %global disable_python2 1 %else %global disable_python2 0 @@ -2202,7 +2203,7 @@ updated policy package. %if !%{disable_python2} && 0%{?default_python} != 3 export PYTHON=python%{?default_python} %endif -%configure %{?_with_initd} %{?_with_doc} %{?_with_dstat} %{?_with_ib} %{?_with_papi} %{?_with_perfevent} %{?_with_bcc} %{?_with_json} %{?_with_snmp} %{?_with_nutcracker} %{?_with_webapps} +%configure %{?_with_initd} %{?_with_doc} %{?_with_dstat} %{?_with_ib} %{?_with_papi} %{?_with_perfevent} %{?_with_bcc} %{?_with_json} %{?_with_snmp} %{?_with_nutcracker} %{?_with_webapps} %{?_with_python2} make %{?_smp_mflags} default_pcp %install