This is a tracking bug for Change: Make the unversioned %{__python} macro error by default For more details, see: https://fedoraproject.org/wiki/Changes/PythonMacroError The %{__python} RPM macro (currently defined to /usr/bin/python for backwards compatibility reasons) will be defined to raise an error when used. Any derived macros (%{python}, %{python_version}, %{python_sitleib} etc.) will propagate the error. Packagers can redefine the macro to any actual value to suppress the error. This is consistent with RHEL 8 behavior. Using /usr/bin/python in Fedora packages remains forbidden.
https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/69 https://src.fedoraproject.org/rpms/rpmlint/pull-request/14