diff --git a/python-rospkg.spec b/python-rospkg.spec index 98a7c90..fa1b529 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