diff --git a/python-ordered-set.changes b/python-ordered-set.changes index 9ee3bbc..10c7e2e 100644 --- a/python-ordered-set.changes +++ b/python-ordered-set.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 17 17:22:40 UTC 2021 - Ben Greiner + +- Add Provides: for python*dist(ordered-set): work around + boo#1186870 + ------------------------------------------------------------------- Fri Oct 23 14:43:30 UTC 2020 - Matej Cepl diff --git a/python-ordered-set.spec b/python-ordered-set.spec index 26df815..28ddf13 100644 --- a/python-ordered-set.spec +++ b/python-ordered-set.spec @@ -1,7 +1,7 @@ # -# spec file for package python-ordered-set +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2019 Neal Gompa . # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,8 @@ # +# in order to avoid rewriting for subpackage generator +%define mypython python %global modname ordered-set %global dir_name ordered_set %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -44,6 +46,11 @@ BuildArch: noarch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} %endif +# work around boo#1186870 +Provides: %{mypython}%{python_version}dist(%modname) = %{version} +%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" +Provides: %{mypython}3dist(%modname) = %{version} +%endif %python_subpackages %description