diff --git a/python-psutil.spec b/python-psutil.spec index 6682730..dcf4271 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,4 +1,9 @@ +%if 0%{?fedora} > 12 || 0%{?rhel} > 6 %global with_python3 1 +%else +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} +%endif + %global short_name psutil # Filter Python modules from Provides