diff --git a/.python-jwt.metadata b/.python-jwt.metadata index c5cea48..896cecf 100644 --- a/.python-jwt.metadata +++ b/.python-jwt.metadata @@ -1 +1 @@ -40f67009f06dd6ff7b0a1b43cf0c4b4ef80f4bcd SOURCES/pyjwt-1.6.1.tar.gz +bf106279af71748e12b79e16dc1d286a5f76ba60 SOURCES/PyJWT-2.3.0.tar.gz diff --git a/SPECS/python-jwt.spec b/SPECS/python-jwt.spec index c391d52..8e49738 100644 --- a/SPECS/python-jwt.spec +++ b/SPECS/python-jwt.spec @@ -1,62 +1,146 @@ -%global _docdir_fmt %{name} -%global srcname jwt - -Name: python-jwt -Version: 1.6.1 -Release: 2%{?dist} -Summary: JSON Web Token implementation in Python -License: MIT -URL: https://github.com/jpadilla/pyjwt -Source0: %{url}/archive/%{version}/pyjwt-%{version}.tar.gz -Patch0: disable-coverage-and-runner.patch -BuildArch: noarch - -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0 -BuildRequires: python%{python3_pkgversion}-pytest - -%global _description \ -A Python implementation of JSON Web Token draft 01. This library provides a\ -means of representing signed content using JSON data structures, including\ -claims to be transferred between two parties encoded as digitally signed and\ -encrypted JSON objects. - -%description %{_description} - -%package -n python%{python3_pkgversion}-%{srcname} +# what it's called on pypi +%global srcname PyJWT +# what it's imported as +%global libname jwt +# name of egg info directory +%global eggname %{srcname} +# package name fragment +%global pkgname %{libname} + +%global common_description %{expand: +A Python implementation of JSON Web Token draft 01. This library provides a +means of representing signed content using JSON data structures, including +claims to be transferred between two parties encoded as digitally signed and +encrypted JSON objects.} + + +Name: python-%{pkgname} +Version: 2.3.0 +Release: 1%{?dist} +Summary: JSON Web Token implementation in Python +License: MIT +URL: https://github.com/jpadilla/pyjwt +Source0: %pypi_source +BuildArch: noarch + + +%description %{common_description} + + +%package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} -Requires: python%{python3_pkgversion}-cryptography >= 1.4.0 -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0 +BuildRequires: python%{python3_pkgversion}-pytest + +%{?python_extras_subpkg:Recommends: python%{python3_pkgversion}-%{pkgname}+crypto} +%{!?python_extras_subpkg:Requires: python%{python3_pkgversion}-cryptography >= 1.4.0} + +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} + + +%description -n python%{python3_pkgversion}-%{pkgname} %{common_description} + +%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-%{pkgname} -i %{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info crypto} -%description -n python%{python3_pkgversion}-%{srcname} %{_description} %prep -%autosetup -n pyjwt-%{version} -p 1 -# prevent pulling in `addopts` for pytest run later -rm setup.cfg +%autosetup -n %{srcname}-%{version} +rm -rf %{eggname}.egg-info + %build %py3_build + %install %py3_install + %check -py.test-%{python3_version} --verbose +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests -%files -n python%{python3_pkgversion}-jwt -%doc README.rst AUTHORS + +%files -n python%{python3_pkgversion}-%{pkgname} +%doc README.rst AUTHORS.rst %license LICENSE -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/PyJWT-%{version}-py%{python3_version}.egg-info -%{_bindir}/pyjwt +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info + %changelog -* Wed May 16 2018 Oyvind Albrigtsen - 1.6.1-2 -- Drop python2 subpackage +* Tue Oct 26 2021 Joel Capitao - 2.3.0-1 +- Update to 2.3.0 (rhbz#2011642) + +* Sun Oct 03 2021 Kevin Fenzi - 2.1.0-3 +- Relax python-cryptography requirements ( rhbz#2010061 ) + +* Fri Jul 23 2021 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 12 2021 Major Hayden - 2.1.0-1 +- Update to 2.1.0 - Resolves: rhbz#1567177 +* Thu Jun 03 2021 Python Maint - 2.0.1-2 +- Rebuilt for Python 3.10 + +* Mon Apr 26 2021 Jiri Popelka - 2.0.1-1 +- Update to 2.0.1 +- CLI and Python 2 support dropped in 2.0.0 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.7.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.7.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Merlin Mathesius - 1.7.1-9 +- Minor conditional fix for ELN + +* Fri Jul 10 2020 Miro Hrončok - 1.7.1-9 +- Add pyjwt[crypto] subpackage + +* Sat May 23 2020 Miro Hrončok - 1.7.1-8 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.7.1-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Thu Aug 29 2019 Carl George - 1.7.1-5 +- Disable python2 subpackage on F32+ rhbz#1744643 + +* Fri Aug 16 2019 Miro Hrončok - 1.7.1-4 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 27 2019 Carl George - 1.7.1-2 +- Re-enable python2 subpackage since python-oauthlib still needs it + +* Mon Mar 04 2019 Yatin Karel - 1.7.1-1 +- Update to 1.7.1 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.6.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 04 2018 Carl George - 1.6.4-2 +- Disable python2 subpackage on F30+ +- Don't share doc and license dir between subpackages, can cause upgrade issues +- Add patch1 to skip failing tests + +* Wed Jul 25 2018 Pierre-Yves Chibon - 1.6.4-1 +- Update to 1.6.4 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 1.6.1-2 +- Rebuilt for Python 3.7 * Thu Apr 05 2018 Carl George - 1.6.1-1 - Latest upstream @@ -130,3 +214,4 @@ py.test-%{python3_version} --verbose * Wed Feb 18 2015 Ralph Bean - 0.4.2-1 - initial package for Fedora. +