summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-25 09:43:29 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-25 09:45:42 (GMT)
commit273a54761f5b8f18cea894563c6490325a2ad1f1 (patch)
tree82c85a8619d11e8f6800f1fda4454f9ea6e4665e
parenta5880768d510c945bdc130d26b322cf35acd5388 (diff)
downloadlibkolabxml-273a54761f5b8f18cea894563c6490325a2ad1f1.tar.gz
Define python macros if not already available
-rw-r--r--kolab-libs.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/kolab-libs.spec.in b/kolab-libs.spec.in
index a57f1c5..7e5d4c9 100644
--- a/kolab-libs.spec.in
+++ b/kolab-libs.spec.in
@@ -1,4 +1,6 @@
%{!?python_include: %global python_include %{_includedir}/python%(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())")}
Name: kolab-libs
Version: @VERSION@