17
0

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
This commit is contained in:
2021-06-18 19:35:39 +00:00
committed by Git OBS Bridge
parent db36a0e03e
commit 5e876982f8
2 changed files with 15 additions and 2 deletions

View File

@@ -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 <ngompa13@gmail.com>.
#
# 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