From 5e876982f87503d12973023f3eec41ae87769653164dbb280d77b71140d2e8cc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 18 Jun 2021 19:35:39 +0000 Subject: [PATCH] Accepting request 900807 from home:bnavigator:branches:devel:languages:python - Add Provides: for python*dist(ordered-set): work around boo#1186870 OBS-URL: https://build.opensuse.org/request/show/900807 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ordered-set?expand=0&rev=14 --- python-ordered-set.changes | 6 ++++++ python-ordered-set.spec | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) 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