From 35226cba31707b6119e07109e435d2f975fce1c99ae2d73f67c49349a79126a6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:25:25 +0000 Subject: [PATCH] Accepting request 493116 from home:TheBlackCat:branches:devel:languages:python Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493116 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=4 --- python-CommonMark.changes | 5 +++++ python-CommonMark.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-CommonMark.changes b/python-CommonMark.changes index 531aa7c..8f9d380 100644 --- a/python-CommonMark.changes +++ b/python-CommonMark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Fri Apr 21 14:11:41 UTC 2017 - toddrme2178@gmail.com diff --git a/python-CommonMark.spec b/python-CommonMark.spec index ca1a666..0ad625e 100644 --- a/python-CommonMark.spec +++ b/python-CommonMark.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-CommonMark Version: 0.7.3 Release: 0 @@ -33,8 +34,14 @@ BuildRequires: %{python_module setuptools} Requires: python-future BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -Provides: python-commonmark = %{version} -Obsoletes: python-commonmark < %{version} +%ifpython2 +Obsoletes: %{oldpython}-commonmark < %{version} +Provides: %{oldpython}-commonmark = %{version} +%endif +%ifpython3 +Provides: python3-commonmark = %{version} +Obsoletes: python3-commonmark < %{version} +%endif %python_subpackages