Accepting request 900812 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/900812
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-appdirs?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2021-07-10 20:53:37 +00:00 committed by Git OBS Bridge
commit 2cde200346
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 17 17:16:58 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Add Provides: for python*dist(appdirs): work around boo#1186870
-------------------------------------------------------------------
Tue Aug 18 23:32:44 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-appdirs
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,8 @@
#
# in order to avoid rewriting for subpackage generator
%define mypython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-appdirs
Version: 1.4.4
@ -28,6 +30,11 @@ BuildRequires: %{python_module base}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# work around boo#1186870
Provides: %{mypython}%{python_version}dist(appdirs) = %{version}
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides: %{mypython}3dist(appdirs) = %{version}
%endif
%python_subpackages
%description