From 7ef95b88f6fcedfa15a9415ecf6fd3face23995f29c5b1cc88e074e79293bafa Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 18 Jun 2021 19:34:58 +0000 Subject: [PATCH] Accepting request 900806 from home:bnavigator:branches:devel:languages:python - Add Provides: for python*dist(appdirs): work around boo#1186870 OBS-URL: https://build.opensuse.org/request/show/900806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-appdirs?expand=0&rev=24 --- python-appdirs.changes | 5 +++++ python-appdirs.spec | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/python-appdirs.changes b/python-appdirs.changes index 314ab3b..51f2ad1 100644 --- a/python-appdirs.changes +++ b/python-appdirs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 17 17:16:58 UTC 2021 - Ben Greiner + +- Add Provides: for python*dist(appdirs): work around boo#1186870 + ------------------------------------------------------------------- Tue Aug 18 23:32:44 UTC 2020 - Matej Cepl diff --git a/python-appdirs.spec b/python-appdirs.spec index 0af871e..4582721 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -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