From 71fcdf0cefed5790ae14882619c8467f86e27555535366de6db2c95d2227225d Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:26:12 +0000 Subject: [PATCH] Accepting request 493128 from home:TheBlackCat:branches:devel:languages:python - Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493128 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termstyle?expand=0&rev=7 --- python-termstyle.changes | 5 +++++ python-termstyle.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-termstyle.changes b/python-termstyle.changes index 466ff40..b04ce04 100644 --- a/python-termstyle.changes +++ b/python-termstyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Wed Apr 12 16:55:35 UTC 2017 - toddrme2178@gmail.com diff --git a/python-termstyle.spec b/python-termstyle.spec index 5bed5c7..07427a4 100644 --- a/python-termstyle.spec +++ b/python-termstyle.spec @@ -18,6 +18,7 @@ %bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-termstyle Version: 0.1.11 Release: 0 @@ -30,8 +31,14 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -Provides: python-python-termstyle = %{version} -Obsoletes: python-python-termstyle < %{version} +%ifpython2 +Obsoletes: %{oldpython}-python-termstyle < %{version} +Provides: %{oldpython}-python-termstyle = %{version} +%endif +%ifpython3 +Provides: python3-python-termstyle = %{version} +Obsoletes: python3-python-termstyle < %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages