2015-02-24 13:00:40 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
%global srcname jwt
|
|
|
|
%global sum JSON Web Token implementation in Python
|
2015-02-24 13:00:40 +00:00
|
|
|
|
|
|
|
Name: python-jwt
|
2017-06-24 21:11:36 +00:00
|
|
|
Version: 1.5.2
|
2017-05-27 20:23:25 +00:00
|
|
|
Release: 1%{?dist}
|
2017-04-17 15:28:00 +00:00
|
|
|
Summary: %{sum}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
|
|
|
URL: http://pypi.python.org/pypi/pyjwt
|
2017-05-27 20:23:25 +00:00
|
|
|
Source0: https://github.com/jpadilla/pyjwt/archive/%{version}.tar.gz
|
2015-02-24 13:00:40 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-cryptography
|
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
BuildRequires: python2-pytest
|
2015-06-17 21:24:18 +00:00
|
|
|
BuildRequires: python-pytest-cov
|
2016-08-22 18:02:15 +00:00
|
|
|
BuildRequires: python-pytest-runner
|
2015-06-17 21:24:18 +00:00
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-cryptography
|
2015-06-17 21:24:18 +00:00
|
|
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-pytest-cov
|
2016-08-22 18:02:15 +00:00
|
|
|
BuildRequires: python3-pytest-runner
|
2015-02-24 13:00:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Python implementation of JSON Web Token draft 01. This library provides a
|
|
|
|
means of representing signed content using JSON data structures, including
|
|
|
|
claims to be transferred between two parties encoded as digitally signed and
|
|
|
|
encrypted JSON objects.
|
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: %{sum}
|
|
|
|
Requires: python-cryptography
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
A Python implementation of JSON Web Token draft 01. This library provides a
|
|
|
|
means of representing signed content using JSON data structures, including
|
|
|
|
claims to be transferred between two parties encoded as digitally signed and
|
|
|
|
encrypted JSON objects.
|
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 15:28:00 +00:00
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %{sum}
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
Requires: python3-cryptography
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
%description -n python3-%{srcname}
|
2015-02-24 13:00:40 +00:00
|
|
|
A Python3 implementation of JSON Web Token draft 01. This library provides a
|
|
|
|
means of representing signed content using JSON data structures, including
|
|
|
|
claims to be transferred between two parties encoded as digitally signed and
|
|
|
|
encrypted JSON objects.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
2017-05-27 20:23:25 +00:00
|
|
|
%autosetup -n pyjwt-%{version}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-17 15:28:00 +00:00
|
|
|
%py2_build
|
2015-02-24 13:00:40 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 15:28:00 +00:00
|
|
|
%py3_build
|
2015-02-24 13:00:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2017-04-17 15:28:00 +00:00
|
|
|
%py2_install
|
2015-02-24 13:00:40 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 15:28:00 +00:00
|
|
|
%py3_install
|
2015-02-24 13:00:40 +00:00
|
|
|
%endif
|
|
|
|
|
2015-06-17 21:24:18 +00:00
|
|
|
%check
|
2017-04-17 15:28:00 +00:00
|
|
|
%{__python2} setup.py test
|
2015-06-17 21:24:18 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-04-17 15:28:00 +00:00
|
|
|
%{__python3} setup.py test
|
2015-06-17 21:24:18 +00:00
|
|
|
%endif
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
%files -n python2-jwt
|
2017-05-27 20:23:25 +00:00
|
|
|
%doc README.rst AUTHORS
|
2015-02-24 13:00:40 +00:00
|
|
|
%license LICENSE
|
2017-04-17 15:28:00 +00:00
|
|
|
%{python2_sitelib}/%{srcname}/
|
2015-02-24 13:00:40 +00:00
|
|
|
%{python2_sitelib}/PyJWT-%{version}*
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-jwt
|
2017-05-27 20:23:25 +00:00
|
|
|
%doc README.rst AUTHORS
|
2015-02-24 13:00:40 +00:00
|
|
|
%license LICENSE
|
2017-04-17 15:28:00 +00:00
|
|
|
%{python3_sitelib}/%{srcname}/
|
2015-02-24 13:00:40 +00:00
|
|
|
%{python3_sitelib}/PyJWT-%{version}*
|
2017-05-27 20:23:25 +00:00
|
|
|
%{_bindir}/pyjwt
|
2015-02-24 13:00:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2017-06-24 21:11:36 +00:00
|
|
|
* Sat Jun 24 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.2-1
|
|
|
|
- Update to 1.5.2. Fixes bug #1464286
|
|
|
|
|
2017-05-27 20:23:25 +00:00
|
|
|
* Sat May 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
|
|
|
|
- Update to 1.5.0. Fixes bug #1443792
|
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
* Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4
|
|
|
|
- Modernize spec and make sure to provide python2-jwt
|
|
|
|
|
2017-02-11 09:23:34 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 15:50:52 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.4.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-08-22 18:02:15 +00:00
|
|
|
* Mon Aug 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.4.2-1
|
|
|
|
- Update to 1.4.2. Fixes bug #1356333
|
|
|
|
|
2016-07-19 10:12:06 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 19:59:29 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 16:13:34 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-09-16 17:10:33 +00:00
|
|
|
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 1.4.0-1
|
|
|
|
- new version
|
|
|
|
|
2015-06-17 21:24:18 +00:00
|
|
|
* Wed Jun 17 2015 Ralph Bean <rbean@redhat.com> - 1.3.0-1
|
|
|
|
- new version
|
|
|
|
- start running the test suite.
|
|
|
|
|
2015-03-27 19:18:18 +00:00
|
|
|
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
|
|
|
|
- new version
|
|
|
|
|
2015-03-19 01:30:21 +00:00
|
|
|
* Thu Mar 19 2015 Ralph Bean <rbean@redhat.com> - 1.0.0-1
|
|
|
|
- new version
|
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 0.4.3-1
|
|
|
|
- Latest upstream.
|
|
|
|
- Expand the description as per review feedback.
|
|
|
|
- Add a comment about the test suite.
|
|
|
|
- Declare noarch.
|
|
|
|
- Declare _docdir_fmt
|
|
|
|
|
|
|
|
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.4.2-1
|
|
|
|
- initial package for Fedora.
|