diff --git a/.gitignore b/.gitignore index 1f06a31..b8428b1 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ /msgpack-0.6.0.tar.gz /msgpack-0.6.1.tar.gz /msgpack-0.6.2.tar.gz +/msgpack-1.0.0.tar.gz diff --git a/python-msgpack.spec b/python-msgpack.spec index 42f665b..a175bb1 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -1,20 +1,15 @@ %global srcname msgpack -%global sum A Python MessagePack (de)serializer Name: python-%{srcname} -Version: 0.6.2 -Release: 2%{?dist} -Summary: %{sum} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Python MessagePack (de)serializer License: ASL 2.0 URL: https://msgpack.org/ -Source0: %pypi_source +Source0: https://github.com/msgpack/msgpack-python/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildRequires: gcc-c++ -BuildRequires: python%{python3_pkgversion}-Cython -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-pytest %description MessagePack is a binary-based efficient data interchange format that is @@ -22,7 +17,12 @@ focused on high performance. It is like JSON, but very fast and small. This is a Python (de)serializer for MessagePack. %package -n python%{python3_pkgversion}-%{srcname} -Summary: %{sum} +Summary: %{summary} + +BuildRequires: python%{python3_pkgversion}-Cython +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pytest %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} # For backwards compatibility @@ -35,7 +35,9 @@ 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}-%{version} +%autosetup -n %{srcname}-python-%{version} +# There is a circular dependency with python-msgpack-ext +rm -rf test/test_timestamp.py %build %py3_build @@ -44,8 +46,7 @@ This is a Python %{python3_version} (de)serializer for MessagePack. %py3_install %check -export PYTHONPATH=$(pwd) -py.test-%{python3_version} -v test +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst @@ -54,6 +55,9 @@ py.test-%{python3_version} -v test %{python3_sitearch}/%{srcname}*.egg-info %changelog +* Sat Apr 18 2020 Fabian Affolter - 1.0.0-1 +- Update to latest upstream release 1.0.0 (rhbz#1816567) + * Thu Jan 30 2020 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 4f6448c..1d0e701 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (msgpack-0.6.2.tar.gz) = 95b92e3d35e0500dd4256d18bf76e586e57cc66319b4459ac5daef599277a5049177a89ad86e291dbdc4c7a918901a89d9218353ddc4a7d0b399e8a98afef363 +SHA512 (msgpack-1.0.0.tar.gz) = ef392d9084ff9a86cc69514982f10d9c39494a9d2c56cd1904b75a6e493d2673ab4e47261464af07dd7beaaba153fe008a9917332e1a4c96beef4ba9ebe595ab