d979347
# what it's called on pypi
d979347
%global srcname PyJWT
d979347
# what it's imported as
d979347
%global libname jwt
d979347
# name of egg info directory
d979347
%global eggname %{srcname}
d979347
# package name fragment
d979347
%global pkgname %{libname}
cc1e175
271e3ab
%global common_description %{expand:
271e3ab
A Python implementation of JSON Web Token draft 01. This library provides a
271e3ab
means of representing signed content using JSON data structures, including
271e3ab
claims to be transferred between two parties encoded as digitally signed and
271e3ab
encrypted JSON objects.}
cc1e175
5a866a5
d979347
Name:           python-%{pkgname}
2c72995
Version:        2.1.0
8305a53
Release:        2%{?dist}
5a866a5
Summary:        JSON Web Token implementation in Python
5a866a5
License:        MIT
5a866a5
URL:            https://github.com/jpadilla/pyjwt
d979347
Source0:        %pypi_source
5a866a5
BuildArch:      noarch
5a866a5
5a866a5
271e3ab
%description %{common_description}
14f625a
5a866a5
d979347
%package -n python%{python3_pkgversion}-%{pkgname}
14f625a
Summary:        %{summary}
5a866a5
BuildRequires:  python%{python3_pkgversion}-devel
5a866a5
BuildRequires:  python%{python3_pkgversion}-setuptools
5a866a5
BuildRequires:  python%{python3_pkgversion}-cryptography >= 1.4.0
5a866a5
BuildRequires:  python%{python3_pkgversion}-pytest
54fb094
54fb094
%{?python_extras_subpkg:Recommends: python%{python3_pkgversion}-%{pkgname}+crypto}
54fb094
%{!?python_extras_subpkg:Requires:  python%{python3_pkgversion}-cryptography >= 1.4.0}
54fb094
d979347
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
cc1e175
5a866a5
271e3ab
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
54fb094
54fb094
%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info crypto}
cc1e175
5a866a5
cc1e175
%prep
4683c27
%autosetup -n %{srcname}-%{version}
aad9398
rm -rf %{eggname}.egg-info
cc1e175
5a866a5
cc1e175
%build
d9ffd72
%py3_build
cc1e175
5a866a5
cc1e175
%install
d9ffd72
%py3_install
cc1e175
5a866a5
d3ed182
%check
d9ffd72
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
5a866a5
cc1e175
d979347
%files -n python%{python3_pkgversion}-%{pkgname}
d9ffd72
%doc README.rst AUTHORS.rst
cc1e175
%license LICENSE
d979347
%{python3_sitelib}/%{libname}
d979347
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
cc1e175
5a866a5
cc1e175
%changelog
8305a53
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
8305a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8305a53
2c72995
* Mon Jul 12 2021 Major Hayden <major@mhtx.net> - 2.1.0-1
2c72995
- Update to 2.1.0
2c72995
0cd04b2
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.0.1-2
0cd04b2
- Rebuilt for Python 3.10
0cd04b2
d9ffd72
* Mon Apr 26 2021 Jiri Popelka <jpopelka@redhat.com> - 2.0.1-1
d9ffd72
- Update to 2.0.1
d9ffd72
- CLI and Python 2 support dropped in 2.0.0
d9ffd72
f9b58f1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-11
f9b58f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f9b58f1
b383874
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-10
b383874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b383874
88f2e32
* Fri Jul 17 2020 Merlin Mathesius <mmathesi@redhat.com> - 1.7.1-9
88f2e32
- Minor conditional fix for ELN
88f2e32
54fb094
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-9
54fb094
- Add pyjwt[crypto] subpackage
54fb094
47f2562
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-8
47f2562
- Rebuilt for Python 3.9
47f2562
4f6e964
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-7
4f6e964
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4f6e964
d349462
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-6
d349462
- Rebuilt for Python 3.8.0rc1 (#1748018)
d349462
fb0a3a2
* Thu Aug 29 2019 Carl George <carl@george.computer> - 1.7.1-5
fb0a3a2
- Disable python2 subpackage on F32+ rhbz#1744643
fb0a3a2
87413b1
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-4
87413b1
- Rebuilt for Python 3.8
87413b1
78c5ead
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
78c5ead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
78c5ead
9274db4
* Wed Mar 27 2019 Carl George <carl@george.computer> - 1.7.1-2
9274db4
- Re-enable python2 subpackage since python-oauthlib still needs it
9274db4
d3d7c08
* Mon Mar 04 2019 Yatin Karel <ykarel@redhat.com> - 1.7.1-1
d3d7c08
- Update to 1.7.1
d3d7c08
64db8a9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
64db8a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
64db8a9
af3e1aa
* Sun Nov 04 2018 Carl George <carl@george.computer> - 1.6.4-2
af3e1aa
- Disable python2 subpackage on F30+
c504469
- Don't share doc and license dir between subpackages, can cause upgrade issues
1a9db4f
- Add patch1 to skip failing tests
af3e1aa
28a57ec
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6.4-1
28a57ec
- Update to 1.6.4
28a57ec
b183d07
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
b183d07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b183d07
102a88f
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.1-2
102a88f
- Rebuilt for Python 3.7
102a88f
d5ac2ec
* Thu Apr 05 2018 Carl George <carl@george.computer> - 1.6.1-1
d5ac2ec
- Latest upstream
811de6c
- Add patch0 to remove pytest-{cov,runner} deps
282f835
- Share doc and license dir between subpackages
c77283f
- Enable EPEL PY3 build
d5ac2ec
8a74f4a
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.3-3
8a74f4a
- Update Python 2 dependency declarations to new packaging standards
8a74f4a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8a74f4a
a0eb306
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
a0eb306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a0eb306
731169b
* Sat Sep 16 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.3-1
731169b
- Update to 1.5.3. Fixes bug #1488693
731169b
- 1.5.1 fixed CVE-2017-11424 Fixes bug #1482529
731169b
89a23de
* Mon Aug 14 2017 Troy Dawson <tdawson@redhat.com> - 1.5.2-3
89a23de
- Fixup spec file conditionals
89a23de
ecbef76
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
ecbef76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ecbef76
84c8d4f
* Sat Jun 24 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.2-1
84c8d4f
- Update to 1.5.2. Fixes bug #1464286
84c8d4f
dc50678
* Sat May 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
dc50678
- Update to 1.5.0. Fixes bug #1443792
dc50678
0745490
* Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4
0745490
- Modernize spec and make sure to provide python2-jwt
0745490
b89ba7a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
b89ba7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b89ba7a
3596e6c
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.4.2-2
3596e6c
- Rebuild for Python 3.6
3596e6c
a29963a
* Mon Aug 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.4.2-1
a29963a
- Update to 1.4.2. Fixes bug #1356333
a29963a
0db8724
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
0db8724
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0db8724
61ab34c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
61ab34c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
61ab34c
5f0341d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
5f0341d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5f0341d
7287f56
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 1.4.0-1
7287f56
- new version
7287f56
d3ed182
* Wed Jun 17 2015 Ralph Bean <rbean@redhat.com> - 1.3.0-1
d3ed182
- new version
d3ed182
- start running the test suite.
d3ed182
d6acc85
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
d6acc85
- new version
d6acc85
cdfbf5a
* Thu Mar 19 2015 Ralph Bean <rbean@redhat.com> - 1.0.0-1
cdfbf5a
- new version
cdfbf5a
cc1e175
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 0.4.3-1
cc1e175
- Latest upstream.
cc1e175
- Expand the description as per review feedback.
cc1e175
- Add a comment about the test suite.
cc1e175
- Declare noarch.
cc1e175
- Declare _docdir_fmt
cc1e175
cc1e175
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.4.2-1
cc1e175
- initial package for Fedora.
2c72995