From 8cf4b2775b5b6960360ae9a2cf3fdd365e536a71 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 15 Mar 2010 08:48:31 -0400 Subject: Use correct python macros in sssd.spec This patch brings our spec file into compliance with Fedora python requirements. See http://fedoraproject.org/wiki/Packaging/Python#Macros for more details --- contrib/sssd.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib/sssd.spec.in') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 16e2b407..643dcdd1 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@ -- cgit