From 07aff2b5379e57c79b7ad567b69e78804c476d68538b618c9940f5d1edb65360 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:26:08 +0000 Subject: [PATCH] Accepting request 493127 from home:TheBlackCat:branches:devel:languages:python Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493127 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-recommonmark?expand=0&rev=5 --- python-recommonmark.changes | 5 +++++ python-recommonmark.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-recommonmark.changes b/python-recommonmark.changes index 3705e0a..0813cf7 100644 --- a/python-recommonmark.changes +++ b/python-recommonmark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Thu Apr 6 17:42:45 UTC 2017 - toddrme2178@gmail.com diff --git a/python-recommonmark.spec b/python-recommonmark.spec index d02c062..f6f4434 100644 --- a/python-recommonmark.spec +++ b/python-recommonmark.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-recommonmark Version: 0.4.0 Release: 0 @@ -34,8 +35,14 @@ BuildRequires: %{python_module docutils} BuildRequires: %{python_module CommonMark} Requires: python-docutils Requires: python-CommonMark -Provides: python-reCommonMark = %{version} -Obsoletes: python-reCommonMark < %{version} +%ifpython2 +Obsoletes: %{oldpython}-reCommonMark < %{version} +Provides: %{oldpython}-reCommonMark = %{version} +%endif +%ifpython3 +Provides: python3-reCommonMark = %{version} +Obsoletes: python3-reCommonMark < %{version} +%endif Requires(post): update-alternatives Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build