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