summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-03-15 08:48:31 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-03-15 11:12:56 -0400
commit8cf4b2775b5b6960360ae9a2cf3fdd365e536a71 (patch)
treefd13b7756d08d6e3661b7ce90604dc94b3354ed0 /contrib
parent9fbf00c7802719becd633ecbc45879d5d0ddb985 (diff)
downloadsssd-8cf4b2775b5b6960360ae9a2cf3fdd365e536a71.tar.gz
sssd-8cf4b2775b5b6960360ae9a2cf3fdd365e536a71.tar.bz2
sssd-8cf4b2775b5b6960360ae9a2cf3fdd365e536a71.zip
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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in6
1 files changed, 4 insertions, 2 deletions
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@