[python-rospkg/epel7] Re-add python3 conditional

rmattes rmattes at fedoraproject.org
Wed Mar 4 17:50:05 UTC 2015


commit f4b1eb4e39581fe330d6905281fc992d3ce5a2eb
Author: Rich Mattes <richmattes at gmail.com>
Date:   Wed Mar 4 12:50:00 2015 -0500

    Re-add python3 conditional

 python-rospkg.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python-rospkg.spec b/python-rospkg.spec
index 8c23727..1bb1e94 100644
--- a/python-rospkg.spec
+++ b/python-rospkg.spec
@@ -1,7 +1,13 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%else
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
 %global commit d3c12bdfbf990b9910220642bafef16b4c830b63
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
 %global realname rospkg
-%global with_python3 1
 
 Name:           python-%{realname}
 Version:        1.0.35


More information about the scm-commits mailing list