diff --git a/PyJWT-1.1.0.diff b/PyJWT-1.1.0.diff new file mode 100644 index 0000000..7c21e3b --- /dev/null +++ b/PyJWT-1.1.0.diff @@ -0,0 +1,11 @@ +diff --git a/setup.py b/setup.py +index 2586c2a..dee928c 100755 +--- a/setup.py ++++ b/setup.py +@@ -78,6 +78,5 @@ setup( + 'Topic :: Utilities', + ], + test_suite='tests', +- tests_require=['pytest', 'pytest-cov'], + cmdclass={'test': PyTest}, + ) diff --git a/python-PyJWT.changes b/python-PyJWT.changes index 720d102..6776d23 100644 --- a/python-PyJWT.changes +++ b/python-PyJWT.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Aug 10 09:20:26 UTC 2015 - seife+obs@b1-systems.com + +- apply PyJWT-1.1.0.diff only on RHEL/CentOS + +------------------------------------------------------------------- +Thu Jul 9 16:43:37 UTC 2015 - seife+obs@b1-systems.com + +- fix build on RHEL7, add PyJWT-1.1.0.diff + ------------------------------------------------------------------- Wed Apr 22 14:01:31 UTC 2015 - mcihar@suse.cz diff --git a/python-PyJWT.spec b/python-PyJWT.spec index d720373..fc6798a 100644 --- a/python-PyJWT.spec +++ b/python-PyJWT.spec @@ -24,6 +24,8 @@ Summary: JSON Web Token implementation in Python License: MIT Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz +# PATCH-FIX-CENTOS PyJWT-1.1.0.diff -- without this, the centos build %%check will try to download stuff from pypi --seife +Patch1: PyJWT-1.1.0.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-cryptography BuildRequires: python-devel @@ -44,6 +46,9 @@ A Python implementation of JSON Web Token draft 01. %prep %setup -q -n PyJWT-%{version} +%if 0%{?rhel} +%patch1 -p1 +%endif %build python setup.py build