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
This commit is contained in:
Tomáš Chvátal 2018-02-26 14:42:42 +00:00 committed by Git OBS Bridge
parent 4c93f64b2f
commit e3ddd4dfd0
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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}