#96 Python spec template: Drop %python_provide
Opened 6 months ago by churchyard. Modified 6 months ago
churchyard/rpmdevtools no_python_provide  into  main

@@ -23,7 +23,6 @@ 


  %package -n python%{python3_pkgversion}-%{srcname}

  Summary:        %{summary}

- %{?python_provide:%python_provide python3-%{srcname}}


  %if %{undefined python_enable_dependency_generator} && %{undefined python_disable_dependency_generator}

  # Put manual requires here:

Is this actually the case going all the way back to EPEL 7?

On EPEL 7, %python3_pkgversion is 36. Hence this package is called python36-foo and %python_provide python3-foo evals to...

Provides: python36-foo(x86-64) = %{version}-%{release}
Provides: python36-foo = %{version}-%{release}
Obsoletes: python36-foo < %{version}-%{release}

Which does nothing useful.

It could be useful as %python_provide python%{python3_pkgversion}-%{srcname} to provide python3-foo, but that was not the case here.