Move the __python2/3 macros to the python-srpm-macros subpackage

This facilitates using the %%{__python2/3} in Build/Requires
This commit is contained in:
Tomas Orsava 2018-09-20 11:59:50 +02:00
commit beaa2eec4f
4 changed files with 14 additions and 3 deletions

View file

@ -1,4 +1,3 @@
%__python2 /usr/bin/python2
%python2_sitelib %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%python2_sitearch %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%python2_version %(%{__python2} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))")