diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 16e2b4078..643dcdd1e 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1,5 +1,7 @@ -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib(1))")} -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib())")} +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ |