From e3ddd4dfd09a2a5450e0674fb6ca7817781110e80140dee5581c718c9f25bfef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 26 Feb 2018 14:42:42 +0000 Subject: [PATCH] Accepting request 580263 from home:alarrosa:branches:devel:languages:python - Provide also python-msgpack-python in the python2 package to be able to obsolete the python2-msgpack-python package correctly. OBS-URL: https://build.opensuse.org/request/show/580263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msgpack?expand=0&rev=10 --- python-msgpack.changes | 6 ++++++ python-msgpack.spec | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/python-msgpack.changes b/python-msgpack.changes index c19db88..d55f55e 100644 --- a/python-msgpack.changes +++ b/python-msgpack.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 26 12:33:08 UTC 2018 - alarrosa@suse.com + +- Provide also python-msgpack-python in the python2 package to + be able to obsolete the python2-msgpack-python package correctly. + ------------------------------------------------------------------- Mon Feb 12 10:27:18 UTC 2018 - dmueller@suse.com diff --git a/python-msgpack.spec b/python-msgpack.spec index 3fc8d93..6ad3aae 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -18,6 +18,7 @@ %bcond_without test +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-msgpack Version: 0.5.4 @@ -34,8 +35,12 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros # was renamed at 0.5.0 -Provides: python-msgpack-python = 0.5.0 +Provides: python-msgpack-python = %{version} Obsoletes: python-msgpack-python < 0.5.0 +%ifpython2 +Provides: %{oldpython}-msgpack-python = %{version} +Obsoletes: %{oldpython}-msgpack-python < 0.5.0 +%endif %if %{with test} # Test requirements: BuildRequires: %{python_module pytest}