From c0a4202685af82820a04a17549bf64136022b199 Mon Sep 17 00:00:00 2001 From: yifengyou <13518106436@163.com> Date: Mar 29 2021 06:23:51 +0000 Subject: Update SPECS/spacewalk-usix.spec fix python version problem! error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly error: Macro %pythonrhnroot failed to expand error: line 17: %global pythonrhnroot %{python_sitelib}/spacewalk --- diff --git a/SPECS/spacewalk-usix.spec b/SPECS/spacewalk-usix.spec index 18d0820..80bd8e4 100644 --- a/SPECS/spacewalk-usix.spec +++ b/SPECS/spacewalk-usix.spec @@ -1,3 +1,4 @@ +%global __python /usr/bin/python3 %if 0%{?rhel} && 0%{?rhel} < 6 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif