From dedd5a3fa2d7b8498e43833c33dcf6d1d8d90e4f3d3b5ff79bc38931fe541339 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:29:44 +0000 Subject: [PATCH] Accepting request 493142 from home:TheBlackCat:branches:devel:languages:python Fix provides/obsoletes OBS-URL: https://build.opensuse.org/request/show/493142 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=31 --- python-Babel.changes | 5 +++++ python-Babel.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-Babel.changes b/python-Babel.changes index f6f9bc4..accd9c4 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:37:17 UTC 2017 - toddrme2178@gmail.com + +- Fix provides/obsoletes + ------------------------------------------------------------------- Fri Mar 31 19:38:21 UTC 2017 - aloisio@gmx.com diff --git a/python-Babel.spec b/python-Babel.spec index a144bdb..752b174 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-Babel Version: 2.4.0 Release: 0 @@ -36,8 +37,14 @@ BuildRequires: python-rpm-macros Requires: python-pytz Requires(post): update-alternatives Requires(postun): update-alternatives -Provides: python-babel = %{version} -Obsoletes: python-babel < %{version} +%ifpython2 +Obsoletes: %{oldpython}-babel < %{version} +Provides: %{oldpython}-babel = %{version} +%endif +%ifpython3 +Provides: python3-babel = %{version} +Obsoletes: python3-babel < %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages