From 356b4eb7b1cf8c5129f1842f981f6b1a0027189a Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Jun 07 2018 10:21:56 +0000 Subject: Update to upstream version 0.9.1 --- diff --git a/.gitignore b/.gitignore index 09654f6..36fb7cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /0.5.tar.gz /tinyrpc-0.5-1f38ac7.tar.gz +/0.9.1.tar.gz diff --git a/python-tinyrpc.spec b/python-tinyrpc.spec index 91e2f72..8fdc80e 100644 --- a/python-tinyrpc.spec +++ b/python-tinyrpc.spec @@ -1,6 +1,3 @@ -%global commit 1f38ac79ef9a224f4d84e465bcf91f71aff670db -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - %if 0%{?fedora} >= 24 %global with_python3 1 %endif @@ -10,13 +7,13 @@ %global module tinyrpc Name: python-%{library} -Version: 0.5 -Release: 7.20170523git1f38ac%{?dist} +Version: 0.9.1 +Release: 1%{?dist} Summary: A modular RPC library License: MIT URL: https://github.com/mbr/%{library} -Source0: https://github.com/mbr/%{library}/archive/%{commit}/%{library}-%{version}-%{shortcommit}.tar.gz +Source0: https://github.com/mbr/%{library}/archive/%{version}.tar.gz BuildArch: noarch @@ -36,16 +33,26 @@ BuildRequires: python2-pytest BuildRequires: python2-requests BuildRequires: python2-six BuildRequires: python2-sphinx +%if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: python2-werkzeug BuildRequires: python2-zmq +%else +BuildRequires: python-werkzeug +BuildRequires: python-zmq +%endif Requires: python2-funcsigs Requires: python2-gevent Requires: python2-greenlet Requires: python2-requests Requires: python2-six +%if 0%{?fedora} || 0%{?rhel} > 7 Requires: python2-werkzeug Requires: python2-zmq +%else +Requires: python-werkzeug +Requires: python-zmq +%endif %description -n python2-%{library} tinyrpc is a library for making and handling RPC calls in python. @@ -133,11 +140,7 @@ Tests for python2-tinyrpc library tinyrpc is a library for making and handling RPC calls in python. %prep -%autosetup -n %{library}-%{commit} -S git - -sed -i -e '/^#!\//, 1d' tinyrpc/*.py tinyrpc/*/*.py tests/*.py - -# Let's handle dependencies ourseleves +%autosetup -n %{library}-%{version} -S git %build %py2_build @@ -164,9 +167,9 @@ cp -r tests %{buildroot}%{python3_sitelib}/%{library}/tests %check export PYTHONPATH=. -py.test -rs +py.test -rs --ignore=tests/test_wsgi_transport.py %if 0%{?with_python3} -py.test-3 -rs --ignore=tests/test_transport.py --ignore=tests/test_wsgi_transport.py +py.test-3 -rs --ignore=tests/test_wsgi_transport.py %endif %files -n python2-%{library} @@ -196,6 +199,9 @@ py.test-3 -rs --ignore=tests/test_transport.py --ignore=tests/test_wsgi_transpor %endif # with_python3 %changelog +* Wed Jun 06 2018 Alfredo Moralejo - 0.9.1-1 +- Update to upstream version 0.9.1. + * Fri Feb 09 2018 Iryna Shcherbina - 0.5-7.20170523git1f38ac - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) diff --git a/sources b/sources index f429583..e46533f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tinyrpc-0.5-1f38ac7.tar.gz) = 23724109a45294f16206c3b0fd770ecf7a8f210991caa204044a4b660a157559b36c94a3f940a08b4eb269464e22a87037415f1c3d70a48aa38101b7709f0f20 +SHA512 (0.9.1.tar.gz) = fe9bd74bb8f9258f23d012497657ff22c59d38928f750796e7cfe17ade948536b7cf6c26636e1d665fbbb3dd233350207cc685d1f86d6a761f8e029dd90f2d40