diff --git a/python-flit-core.spec b/python-flit-core.spec index b4e76c9..ef1bd54 100644 --- a/python-flit-core.spec +++ b/python-flit-core.spec @@ -16,6 +16,8 @@ # +%define modname flit-core +%define mypython python # this must be hardcoded until obs can read it from a prjconf definition %if 0%{suse_version} >= 1550 %define primary_python python310 @@ -64,6 +66,13 @@ BuildRequires: %{python_module testpath} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +# SECTION boo#1186870: we are a transitive build dependency of python-packaging which is used by pythondistdeps.py normally creating this entry +#!BuildIgnore: python3-packaging +Provides: %{mypython}%{python_version}dist(%{modname}) = %{version} +%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" +Provides: %{mypython}3dist(%{modname}) = %{version} +%endif +# /SECTION %python_subpackages %description