Switch %python_provide behavior between Python 2 <--> 3

https://fedoraproject.org/wiki/Changes/Python_means_Python3

Welcome to the future.
This commit is contained in:
Miro Hrončok 2019-07-12 16:36:27 +02:00
commit 64119cef2c
2 changed files with 13 additions and 10 deletions

View file

@ -1,6 +1,6 @@
Name: python-rpm-macros
Version: 3
Release: 45%{?dist}
Release: 46%{?dist}
Summary: The unversioned Python RPM macros
License: MIT
@ -73,6 +73,10 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
%changelog
* Fri Jul 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3-46
- %%python_provide: Switch python2 and python3 behavior
- https://fedoraproject.org/wiki/Changes/Python_means_Python3
* Tue Jul 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3-45
- %%python_provide: Don't try to obsolete %%_isa provides