[doge/el6] boo python2 macro

Ian Weller ianweller at fedoraproject.org
Thu Dec 12 20:16:41 UTC 2013


commit a0df03455923407f0d5d50af79463f7a8a41b1bb
Author: Ian Weller <ian at ianweller.org>
Date:   Thu Dec 12 14:16:43 2013 -0600

    boo python2 macro

 doge.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/doge.spec b/doge.spec
index acf1cd2..2367224 100644
--- a/doge.spec
+++ b/doge.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2:        %global __python2 /usr/bin/python2}
+%{!?python2_sitelib:  %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
 Name:           doge
 Version:        2.2.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MOTD script based on the doge meme
 
 License:        MIT
@@ -38,6 +44,9 @@ sed -i -e '/^#!\//, 1d' doge/*.py
 
 
 %changelog
+* Thu Dec 12 2013 Ian Weller <iweller at redhat.com> - 2.2.0-2
+- boo python2 macro
+
 * Thu Dec 05 2013 Ian Weller <iweller at redhat.com> - 2.2.0-1
 - wow many developments
 


More information about the scm-commits mailing list