| |
@@ -2,9 +2,15 @@
|
| |
# - they can be used in Build/Requires
|
| |
# - they can be used in non-Python packages where requiring pythonX-devel would
|
| |
# be an overkill
|
| |
+
|
| |
+ # use the underscored macros to redefine the behavior of %%python3_version etc.
|
| |
%__python2 /usr/bin/python2
|
| |
%__python3 /usr/bin/python3
|
| |
|
| |
+ # use the non-underscored macros to refer to Python in spec, etc.
|
| |
+ %python2 %__python2
|
| |
+ %python3 %__python3
|
| |
+
|
| |
# For backwards compatibility only
|
| |
# See the comments in https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/22
|
| |
%__python /usr/bin/python
|
| |
See https://pagure.io/packaging-committee/issue/907