The Python name provides generator no longer uses %python_provide internally

This commit is contained in:
Miro Hrončok 2020-05-26 19:07:52 +02:00
parent 152421500c
commit 78de36930d

View File

@ -153,9 +153,9 @@ License: Python
%undefine py_auto_byte_compile
# When a main_python build is attempted despite the %%__default_python3_pkgversion value
# We undefine %%python_provide so the python3-... package does not provide wrong python3X-...
# We undefine magic macros so the python3-... package does not provide wrong python3X-...
%if %{with main_python} && ("%{?__default_python3_pkgversion}" != "%{pybasever}")
%undefine python_provide
%undefine __pythonname_provides
%{warn:Doing a main_python build with wrong %%__default_python3_pkgversion (0%{?__default_python3_pkgversion}, but this is %pyshortver)}
%endif