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}