From 49f5eb0c1c4e8dcef7690735c96bbf5017919e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 3 Sep 2018 11:17:32 +0200 Subject: [PATCH] Use msgpack from PyPI, not msgpack-python (deprecated) msgpack-python was renamed to msgpack at 0.5. msgpack-python still works but is deprecated. See: * https://pypi.org/project/msgpack-python/ * https://pypi.org/project/msgpack/ Added backwards compatibility provides. --- .gitignore | 1 + python-msgpack.spec | 17 ++++++++++++++--- sources | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9567528..826efb3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /msgpack-python-0.5.4.tar.gz /msgpack-python-0.5.5.tar.gz /msgpack-python-0.5.6.tar.gz +/msgpack-0.5.6.tar.gz diff --git a/python-msgpack.spec b/python-msgpack.spec index bc485d4..7e14474 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -3,12 +3,12 @@ Name: python-%{srcname} Version: 0.5.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{sum} License: ASL 2.0 URL: https://msgpack.org/ -Source0: https://files.pythonhosted.org/packages/source/m/%{srcname}-python/%{srcname}-python-%{version}.tar.gz +Source0: %pypi_source BuildRequires: gcc-c++ BuildRequires: Cython @@ -30,6 +30,10 @@ This is a Python (de)serializer for MessagePack. Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} +# For backwards compatibility +Provides: python2dist(%{srcname}-python) = %{version} +Provides: python%{python2_version}dist(%{srcname}-python) = %{version} + %description -n python2-%{srcname} MessagePack is a binary-based efficient data interchange format that is focused on high performance. It is like JSON, but very fast and small. @@ -39,13 +43,17 @@ This is a Python (de)serializer for MessagePack. Summary: %{sum} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +# For backwards compatibility +Provides: python3dist(%{srcname}-python) = %{version} +Provides: python%{python3_version}dist(%{srcname}-python) = %{version} + %description -n python%{python3_pkgversion}-%{srcname} MessagePack is a binary-based efficient data interchange format that is focused on high performance. It is like JSON, but very fast and small. This is a Python %{python3_version} (de)serializer for MessagePack. %prep -%autosetup -n %{srcname}-python-%{version} +%autosetup -n %{srcname}-%{version} %build %py2_build @@ -73,6 +81,9 @@ py.test-%{python3_version} -v test %{python3_sitearch}/%{srcname}*.egg-info %changelog +* Mon Sep 03 2018 Miro HronĨok - 0.5.6-5 +- Use msgpack from PyPI, not msgpack-python (deprecated) + * Fri Aug 10 2018 Felix Schwarz - 0.5.6-4 - require gcc-c++, avoid FTBFS in rawhide (#1605779) diff --git a/sources b/sources index 8c8c1a3..e11f59d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (msgpack-python-0.5.6.tar.gz) = 301025ea37ff5485987c51c6e781d1dd184158ec501259d43a58ce9e599f2057489919f664348958be8171a90270c21aec69430e0b1a8a0e6f36ee2e5303c242 +SHA512 (msgpack-0.5.6.tar.gz) = bdbd193bd3bd02e78d9c6e8d9d8fa687d13583dff2813bc77c5e6cbbe0d180765da3c9a80d176f9993589e35f548ad04973e3d523d0b6d41ef7916ecd86195aa