From ba5ce86ac67ef8d650d81a4af51d5f584933eee905c4599abfdf5fa0e5375a66 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:27:23 +0000 Subject: [PATCH] Accepting request 493126 from home:TheBlackCat:branches:devel:languages:python Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493126 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mimeparse?expand=0&rev=8 --- python-python-mimeparse.changes | 5 +++++ python-python-mimeparse.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-python-mimeparse.changes b/python-python-mimeparse.changes index 1a9a694..3a7cad7 100644 --- a/python-python-mimeparse.changes +++ b/python-python-mimeparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Sat Apr 1 14:24:37 UTC 2017 - aloisio@gmx.com diff --git a/python-python-mimeparse.spec b/python-python-mimeparse.spec index 0a9dbbf..e0f9edf 100644 --- a/python-python-mimeparse.spec +++ b/python-python-mimeparse.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-python-mimeparse Version: 1.6.0 Release: 0 @@ -29,8 +30,10 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Provides: python-mimeparse = 0.1.4 -Obsoletes: python-mimeparse < 0.1.4 +%ifpython2 +Obsoletes: %{oldpython}-mimeparse < 0.1.4 +Provides: %{oldpython}-mimeparse = %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages