From 1fecf99ebd6442f7ffd159488182c56197c1eb3ca2443fdca7efbfac43a6a35e Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 18 Sep 2017 16:56:03 +0000 Subject: [PATCH] Accepting request 527081 from home:TheBlackCat:branches:devel:languages:python - Fix provides/obsoletes OBS-URL: https://build.opensuse.org/request/show/527081 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=2 --- python-breathe.changes | 5 +++++ python-breathe.spec | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/python-breathe.changes b/python-breathe.changes index 57cc2a8..bd340a3 100644 --- a/python-breathe.changes +++ b/python-breathe.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 18 16:51:24 UTC 2017 - toddrme2178@gmail.com + +- Fix provides/obsoletes + ------------------------------------------------------------------- Fri Sep 8 15:50:22 UTC 2017 - toddrme2178@gmail.com diff --git a/python-breathe.spec b/python-breathe.spec index 2711b04..9b285bd 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -16,7 +16,8 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test +%define oldpython python +%bcond_without test Name: python-breathe Version: 4.7.2 Release: 0 @@ -37,9 +38,14 @@ BuildRequires: %{python_module six >= 1.4} Requires: python-Sphinx >= 1.4 Requires: python-docutils >= 0.5 Requires: python-six >= 1.4 -# Change <= to < in next release after 4.7.2 -Provides: python-sphinxcontrib-breathe = %{version} -Obsoletes: python-sphinxcontrib-breathe <= %{version} +%ifpython2 +Obsoletes: %{oldpython}-sphinxcontrib-breathe < %{version} +Provides: %{oldpython}-sphinxcontrib-breathe = %{version} +%endif +%ifpython3 +Provides: python3-sphinxcontrib-breathe = %{version} +Obsoletes: python3-sphinxcontrib-breathe <= %{version} +%endif BuildArch: noarch %python_subpackages