[libkolabxml: 4/32] Add macros not available on some distributions

Jeroen van Meeuwen kanarip at fedoraproject.org
Tue Jun 26 15:09:05 UTC 2012


commit 3e56846d8d20e2930197de60f881a5563fad46fe
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Thu Apr 19 13:56:54 2012 +0100

    Add macros not available on some distributions

 libkolabxml.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libkolabxml.spec b/libkolabxml.spec
index 78dda5f..3f63e25 100644
--- a/libkolabxml.spec
+++ b/libkolabxml.spec
@@ -1,3 +1,6 @@
+%{!?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)")}
+
 Name:           libkolabxml
 Version:        0.3
 Release:        0.1%{?dist}


More information about the scm-commits mailing list