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