Build fix for python2/3 and changelog update
This commit is contained in:
parent
3ca620aaed
commit
49e94dce57
3
pcp.spec
3
pcp.spec
@ -51,6 +51,7 @@ Source4: %{github}/pcp-webapp-blinkenlights/archive/1.0.1/pcp-webapp-blinkenligh
|
|||||||
%global disable_cairo 0
|
%global disable_cairo 0
|
||||||
|
|
||||||
%if 0%{?rhel} > 7 || 0%{?fedora} >= 30
|
%if 0%{?rhel} > 7 || 0%{?fedora} >= 30
|
||||||
|
%global _with_python2 --with-python=no
|
||||||
%global disable_python2 1
|
%global disable_python2 1
|
||||||
%else
|
%else
|
||||||
%global disable_python2 0
|
%global disable_python2 0
|
||||||
@ -2202,7 +2203,7 @@ updated policy package.
|
|||||||
%if !%{disable_python2} && 0%{?default_python} != 3
|
%if !%{disable_python2} && 0%{?default_python} != 3
|
||||||
export PYTHON=python%{?default_python}
|
export PYTHON=python%{?default_python}
|
||||||
%endif
|
%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
|
make %{?_smp_mflags} default_pcp
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user