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