diff --git a/pyelftools.spec b/pyelftools.spec index 9534b49..a2cea96 100644 --- a/pyelftools.spec +++ b/pyelftools.spec @@ -1,8 +1,8 @@ %if 0%{?fedora} || 0%{?rhel} >= 7 -%global __python_sitearch %{python2_sitearch} +%global __python_sitelib %{python2_sitelib} %else -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%global __python_sitearch %{python_sitearch} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%global __python_sitelib %{python_sitelib} %{?__python2:%global __python2 %{__python}} %endif