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.
epel8
Miro Hrončok 6 years ago
parent 295463b81d
commit 49f5eb0c1c

1
.gitignore vendored

@ -15,3 +15,4 @@
/msgpack-python-0.5.4.tar.gz /msgpack-python-0.5.4.tar.gz
/msgpack-python-0.5.5.tar.gz /msgpack-python-0.5.5.tar.gz
/msgpack-python-0.5.6.tar.gz /msgpack-python-0.5.6.tar.gz
/msgpack-0.5.6.tar.gz

@ -3,12 +3,12 @@
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.5.6 Version: 0.5.6
Release: 4%{?dist} Release: 5%{?dist}
Summary: %{sum} Summary: %{sum}
License: ASL 2.0 License: ASL 2.0
URL: https://msgpack.org/ 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: gcc-c++
BuildRequires: Cython BuildRequires: Cython
@ -30,6 +30,10 @@ This is a Python (de)serializer for MessagePack.
Summary: %{sum} Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}} %{?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} %description -n python2-%{srcname}
MessagePack is a binary-based efficient data interchange format that is MessagePack is a binary-based efficient data interchange format that is
focused on high performance. It is like JSON, but very fast and small. 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} Summary: %{sum}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %{?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} %description -n python%{python3_pkgversion}-%{srcname}
MessagePack is a binary-based efficient data interchange format that is MessagePack is a binary-based efficient data interchange format that is
focused on high performance. It is like JSON, but very fast and small. focused on high performance. It is like JSON, but very fast and small.
This is a Python %{python3_version} (de)serializer for MessagePack. This is a Python %{python3_version} (de)serializer for MessagePack.
%prep %prep
%autosetup -n %{srcname}-python-%{version} %autosetup -n %{srcname}-%{version}
%build %build
%py2_build %py2_build
@ -73,6 +81,9 @@ py.test-%{python3_version} -v test
%{python3_sitearch}/%{srcname}*.egg-info %{python3_sitearch}/%{srcname}*.egg-info
%changelog %changelog
* Mon Sep 03 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.6-5
- Use msgpack from PyPI, not msgpack-python (deprecated)
* Fri Aug 10 2018 Felix Schwarz <fschwarz@fedoraproject.org> - 0.5.6-4 * Fri Aug 10 2018 Felix Schwarz <fschwarz@fedoraproject.org> - 0.5.6-4
- require gcc-c++, avoid FTBFS in rawhide (#1605779) - require gcc-c++, avoid FTBFS in rawhide (#1605779)

@ -1 +1 @@
SHA512 (msgpack-python-0.5.6.tar.gz) = 301025ea37ff5485987c51c6e781d1dd184158ec501259d43a58ce9e599f2057489919f664348958be8171a90270c21aec69430e0b1a8a0e6f36ee2e5303c242 SHA512 (msgpack-0.5.6.tar.gz) = bdbd193bd3bd02e78d9c6e8d9d8fa687d13583dff2813bc77c5e6cbbe0d180765da3c9a80d176f9993589e35f548ad04973e3d523d0b6d41ef7916ecd86195aa

Loading…
Cancel
Save