[python-gdata/el5/master] Start to add some python26 support

Adam Goode agoode at fedoraproject.org
Mon Aug 2 00:23:47 UTC 2010


commit 1224b1fb921c3276705acc08a74821e8142381ed
Author: Adam Goode <adam at spicenitz.org>
Date:   Sun Aug 1 20:23:40 2010 -0400

    Start to add some python26 support

 python-gdata.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/python-gdata.spec b/python-gdata.spec
index b084a5d..8239701 100644
--- a/python-gdata.spec
+++ b/python-gdata.spec
@@ -1,6 +1,12 @@
 %{!?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))")}
 
+%global __python26 %{_bindir}/python2.6
+%global py26dir %{_builddir}/python26-%{name}-%{version}-%{release}
+
+%{!?python26_sitelib: %global python26_sitelib %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python26_sitearch: %global python26_sitearch %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
 Name:           python-gdata
 Version:        2.0.11
 Release:        1%{?dist}


More information about the scm-commits mailing list