Add Provides to match the Ubuntu convention

There are many Ubuntu users out there. Let's be nice and Provide the
same package name, so that a command typed from memory will also work
here.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-05-13 14:25:41 +02:00
parent 79e6e2b0ac
commit cf6fda7857

View File

@ -489,6 +489,11 @@ Requires: python3 == %{version}-%{release}
Provides: python = %{version}-%{release} Provides: python = %{version}-%{release}
# This also save us an explicit conflict for older python3 builds # This also save us an explicit conflict for older python3 builds
# Also provide the name of the Ubuntu package with the same function,
# to be nice to people who temporarily forgot which distro they're on.
# C.f. https://packages.ubuntu.com/hirsute/all/python-is-python3/filelist
Provides: python-is-python3 = %{version}-%{release}
%description -n python-unversioned-command %description -n python-unversioned-command
This package contains /usr/bin/python - the "python" command that runs Python 3. This package contains /usr/bin/python - the "python" command that runs Python 3.