83674a
%global _docdir_fmt %{name}
83674a
%global srcname jwt
83674a
83674a
Name:               python-jwt
83674a
Version:            1.6.1
83674a
Release:            2%{?dist}
83674a
Summary:            JSON Web Token implementation in Python
83674a
License:            MIT
83674a
URL:                https://github.com/jpadilla/pyjwt
83674a
Source0:            %{url}/archive/%{version}/pyjwt-%{version}.tar.gz
83674a
Patch0:             disable-coverage-and-runner.patch
83674a
BuildArch:          noarch
83674a
83674a
BuildRequires:      python%{python3_pkgversion}-devel
83674a
BuildRequires:      python%{python3_pkgversion}-setuptools
83674a
BuildRequires:      python%{python3_pkgversion}-cryptography >= 1.4.0
83674a
BuildRequires:      python%{python3_pkgversion}-pytest
83674a
83674a
%global _description \
83674a
A Python implementation of JSON Web Token draft 01. This library provides a\
83674a
means of representing signed content using JSON data structures, including\
83674a
claims to be transferred between two parties encoded as digitally signed and\
83674a
encrypted JSON objects.
83674a
83674a
%description %{_description}
83674a
83674a
%package -n python%{python3_pkgversion}-%{srcname}
83674a
Summary:        %{summary}
83674a
Requires:       python%{python3_pkgversion}-cryptography >= 1.4.0
83674a
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
83674a
83674a
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
83674a
83674a
%prep
83674a
%autosetup -n pyjwt-%{version} -p 1
83674a
# prevent pulling in `addopts` for pytest run later
83674a
rm setup.cfg
83674a
83674a
%build
83674a
%py3_build
83674a
83674a
%install
83674a
%py3_install
83674a
83674a
%check
83674a
py.test-%{python3_version} --verbose
83674a
83674a
%files -n python%{python3_pkgversion}-jwt
83674a
%doc README.rst AUTHORS
83674a
%license LICENSE
83674a
%{python3_sitelib}/%{srcname}/
83674a
%{python3_sitelib}/PyJWT-%{version}-py%{python3_version}.egg-info
83674a
%{_bindir}/pyjwt
83674a
83674a
%changelog
83674a
* Wed May 16 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.6.1-2
83674a
- Drop python2 subpackage
83674a
83674a
  Resolves: rhbz#1567177
83674a
83674a
* Thu Apr 05 2018 Carl George <carl@george.computer> - 1.6.1-1
83674a
- Latest upstream
83674a
- Add patch0 to remove pytest-{cov,runner} deps
83674a
- Share doc and license dir between subpackages
83674a
- Enable EPEL PY3 build
83674a
83674a
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.3-3
83674a
- Update Python 2 dependency declarations to new packaging standards
83674a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
83674a
83674a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
83674a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
83674a
83674a
* Sat Sep 16 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.3-1
83674a
- Update to 1.5.3. Fixes bug #1488693
83674a
- 1.5.1 fixed CVE-2017-11424 Fixes bug #1482529
83674a
83674a
* Mon Aug 14 2017 Troy Dawson <tdawson@redhat.com> - 1.5.2-3
83674a
- Fixup spec file conditionals
83674a
83674a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
83674a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
83674a
83674a
* Sat Jun 24 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.2-1
83674a
- Update to 1.5.2. Fixes bug #1464286
83674a
83674a
* Sat May 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
83674a
- Update to 1.5.0. Fixes bug #1443792
83674a
83674a
* Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4
83674a
- Modernize spec and make sure to provide python2-jwt
83674a
83674a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
83674a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
83674a
83674a
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.4.2-2
83674a
- Rebuild for Python 3.6
83674a
83674a
* Mon Aug 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.4.2-1
83674a
- Update to 1.4.2. Fixes bug #1356333
83674a
83674a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
83674a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
83674a
83674a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
83674a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
83674a
83674a
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
83674a
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
83674a
83674a
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 1.4.0-1
83674a
- new version
83674a
83674a
* Wed Jun 17 2015 Ralph Bean <rbean@redhat.com> - 1.3.0-1
83674a
- new version
83674a
- start running the test suite.
83674a
83674a
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
83674a
- new version
83674a
83674a
* Thu Mar 19 2015 Ralph Bean <rbean@redhat.com> - 1.0.0-1
83674a
- new version
83674a
83674a
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 0.4.3-1
83674a
- Latest upstream.
83674a
- Expand the description as per review feedback.
83674a
- Add a comment about the test suite.
83674a
- Declare noarch.
83674a
- Declare _docdir_fmt
83674a
83674a
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.4.2-1
83674a
- initial package for Fedora.