Make %__python /usr/bin/python once again until we are ready

See https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/22#comment-26552
and further.
This commit is contained in:
Miro Hrončok 2019-06-17 15:33:25 +02:00
parent 04769fa014
commit cf8051e7f5
2 changed files with 7 additions and 3 deletions

View File

@ -5,8 +5,9 @@
%__python2 /usr/bin/python2
%__python3 /usr/bin/python3
# This now errors unless redefined to user provided value
%__python %{error:attempt to use unversioned python, define %%__python to /usr/bin/python2 or /usr/bin/python3 explicitly}
# For backwards compatibility only
# See the comments in https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/22
%__python /usr/bin/python
# python3_pkgversion specifies the version of Python 3 in the distro. It can be

View File

@ -1,6 +1,6 @@
Name: python-rpm-macros
Version: 3
Release: 43%{?dist}
Release: 44%{?dist}
Summary: The unversioned Python RPM macros
License: MIT
@ -73,6 +73,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
%changelog
* Mon Jun 17 2019 Miro Hrončok <mhroncok@redhat.com> - 3-44
- Make %%__python /usr/bin/python once again until we are ready
* Mon Jun 10 2019 Miro Hrončok <mhroncok@redhat.com> - 3-43
- Define %%python_sitelib, %%python_sitearch, %%python_version, %%python_version_nodots,
in rpm 4.15 those are no longer defined, the meaning of python is derived from %%__python.