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