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,3 +1,10 @@
# Define the Python interpreter paths in the SRPM macros so that
# - they can be used in Build/Requires
# - they can be used in non-Python packages where requiring pythonX-devel would
# be an overkill
%__python2 /usr/bin/python2
%__python3 /usr/bin/python3
# python3_pkgversion specifies the version of Python 3 in the distro. It can be
# a specific version (e.g. 34 in Fedora EPEL7)
%python3_pkgversion 3