2018-11-04 21:25:17 +00:00
|
|
|
# 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}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2019-03-27 15:31:51 +00:00
|
|
|
%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.}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2019-08-29 20:33:58 +00:00
|
|
|
%if %{defined fedora} && 0%{?fedora} < 32
|
2019-03-27 15:35:01 +00:00
|
|
|
%bcond_without python2
|
2019-08-29 20:33:58 +00:00
|
|
|
%endif
|
2019-03-27 15:35:01 +00:00
|
|
|
%bcond_without python3
|
2018-11-04 21:27:27 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2018-11-04 21:25:17 +00:00
|
|
|
Name: python-%{pkgname}
|
2019-03-04 13:32:19 +00:00
|
|
|
Version: 1.7.1
|
2020-01-30 13:00:24 +00:00
|
|
|
Release: 7%{?dist}
|
2018-11-04 21:10:20 +00:00
|
|
|
Summary: JSON Web Token implementation in Python
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/jpadilla/pyjwt
|
2018-11-04 21:25:17 +00:00
|
|
|
Source0: %pypi_source
|
2018-11-04 21:10:20 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
2019-03-27 15:31:51 +00:00
|
|
|
%description %{common_description}
|
2018-04-05 05:12:10 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2018-11-04 21:27:27 +00:00
|
|
|
%if %{with python2}
|
2018-11-04 21:25:17 +00:00
|
|
|
%package -n python2-%{pkgname}
|
2018-04-05 05:12:10 +00:00
|
|
|
Summary: %{summary}
|
2018-11-04 21:10:20 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python2-cryptography >= 1.4.0
|
|
|
|
BuildRequires: python2-pytest
|
2018-04-05 05:03:31 +00:00
|
|
|
Requires: python2-cryptography >= 1.4.0
|
2018-11-04 21:25:17 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{pkgname}}
|
2017-04-17 15:28:00 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2019-03-27 15:31:51 +00:00
|
|
|
%description -n python2-%{pkgname} %{common_description}
|
2018-11-04 21:27:27 +00:00
|
|
|
%endif
|
2017-04-17 15:28:00 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2018-11-04 21:27:27 +00:00
|
|
|
%if %{with python3}
|
2018-11-04 21:25:17 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{pkgname}
|
2018-04-05 05:12:10 +00:00
|
|
|
Summary: %{summary}
|
2018-11-04 21:10:20 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.4.0
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
2018-04-05 05:11:01 +00:00
|
|
|
Requires: python%{python3_pkgversion}-cryptography >= 1.4.0
|
2018-11-04 21:25:17 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2019-03-27 15:31:51 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
|
2018-11-04 21:27:27 +00:00
|
|
|
%endif
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%prep
|
2019-03-27 15:57:05 +00:00
|
|
|
%autosetup -n %{srcname}-%{version}
|
2018-11-04 21:28:51 +00:00
|
|
|
rm -rf %{eggname}.egg-info
|
2018-07-25 14:41:40 +00:00
|
|
|
# prevent pullng in `addopts` for pytest run later
|
2018-04-05 05:06:43 +00:00
|
|
|
rm setup.cfg
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%build
|
2018-11-04 21:27:27 +00:00
|
|
|
%{?with_python2:%py2_build}
|
|
|
|
%{?with_python3:%py3_build}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%install
|
2018-11-04 21:27:27 +00:00
|
|
|
%{?with_python2:%py2_install}
|
|
|
|
%{?with_python3:%py3_install}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2015-06-17 21:24:18 +00:00
|
|
|
%check
|
2018-11-04 21:27:27 +00:00
|
|
|
%{?with_python2:PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} --verbose tests}
|
|
|
|
%{?with_python3:PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests}
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2018-11-04 21:27:27 +00:00
|
|
|
%if %{with python2}
|
2018-11-04 21:25:17 +00:00
|
|
|
%files -n python2-%{pkgname}
|
2017-05-27 20:23:25 +00:00
|
|
|
%doc README.rst AUTHORS
|
2015-02-24 13:00:40 +00:00
|
|
|
%license LICENSE
|
2018-11-04 21:25:17 +00:00
|
|
|
%{python2_sitelib}/%{libname}
|
|
|
|
%{python2_sitelib}/%{eggname}-%{version}-py%{python2_version}.egg-info
|
2018-11-04 21:27:27 +00:00
|
|
|
%endif
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2018-11-04 21:27:27 +00:00
|
|
|
%if %{with python3}
|
2018-11-04 21:25:17 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{pkgname}
|
2017-05-27 20:23:25 +00:00
|
|
|
%doc README.rst AUTHORS
|
2015-02-24 13:00:40 +00:00
|
|
|
%license LICENSE
|
2018-11-04 21:25:17 +00:00
|
|
|
%{python3_sitelib}/%{libname}
|
|
|
|
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
|
2017-05-27 20:23:25 +00:00
|
|
|
%{_bindir}/pyjwt
|
2018-11-04 21:27:27 +00:00
|
|
|
%endif
|
2015-02-24 13:00:40 +00:00
|
|
|
|
2018-11-04 21:10:20 +00:00
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
%changelog
|
2020-01-30 13:00:24 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:16:44 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-6
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-29 20:33:58 +00:00
|
|
|
* Thu Aug 29 2019 Carl George <carl@george.computer> - 1.7.1-5
|
|
|
|
- Disable python2 subpackage on F32+ rhbz#1744643
|
|
|
|
|
2019-08-16 02:09:29 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 14:13:40 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-27 15:35:01 +00:00
|
|
|
* Wed Mar 27 2019 Carl George <carl@george.computer> - 1.7.1-2
|
|
|
|
- Re-enable python2 subpackage since python-oauthlib still needs it
|
|
|
|
|
2019-03-04 13:32:19 +00:00
|
|
|
* Mon Mar 04 2019 Yatin Karel <ykarel@redhat.com> - 1.7.1-1
|
|
|
|
- Update to 1.7.1
|
|
|
|
|
2019-02-02 07:28:03 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-04 21:27:27 +00:00
|
|
|
* Sun Nov 04 2018 Carl George <carl@george.computer> - 1.6.4-2
|
|
|
|
- Disable python2 subpackage on F30+
|
2018-11-04 21:28:33 +00:00
|
|
|
- Don't share doc and license dir between subpackages, can cause upgrade issues
|
2018-11-05 03:58:11 +00:00
|
|
|
- Add patch1 to skip failing tests
|
2018-11-04 21:27:27 +00:00
|
|
|
|
2018-07-25 14:41:40 +00:00
|
|
|
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 1.6.4-1
|
|
|
|
- Update to 1.6.4
|
|
|
|
|
2018-07-14 00:44:12 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-15 19:52:37 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.1-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-04-05 05:03:31 +00:00
|
|
|
* Thu Apr 05 2018 Carl George <carl@george.computer> - 1.6.1-1
|
|
|
|
- Latest upstream
|
2018-04-05 05:06:43 +00:00
|
|
|
- Add patch0 to remove pytest-{cov,runner} deps
|
2018-04-05 05:08:02 +00:00
|
|
|
- Share doc and license dir between subpackages
|
2018-04-05 05:11:01 +00:00
|
|
|
- Enable EPEL PY3 build
|
2018-04-05 05:03:31 +00:00
|
|
|
|
2018-02-12 02:28:53 +00:00
|
|
|
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.3-3
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 08:34:01 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-16 21:41:52 +00:00
|
|
|
* Sat Sep 16 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.3-1
|
|
|
|
- Update to 1.5.3. Fixes bug #1488693
|
|
|
|
- 1.5.1 fixed CVE-2017-11424 Fixes bug #1482529
|
|
|
|
|
2017-08-14 20:48:24 +00:00
|
|
|
* Mon Aug 14 2017 Troy Dawson <tdawson@redhat.com> - 1.5.2-3
|
|
|
|
- Fixup spec file conditionals
|
|
|
|
|
2017-07-27 10:42:50 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-24 21:11:36 +00:00
|
|
|
* Sat Jun 24 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.2-1
|
|
|
|
- Update to 1.5.2. Fixes bug #1464286
|
|
|
|
|
2017-05-27 20:23:25 +00:00
|
|
|
* Sat May 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.5.0-1
|
|
|
|
- Update to 1.5.0. Fixes bug #1443792
|
|
|
|
|
2017-04-17 15:28:00 +00:00
|
|
|
* Mon Apr 17 2017 Kevin Fenzi <kevin@scrye.com> - 1.4.2-4
|
|
|
|
- Modernize spec and make sure to provide python2-jwt
|
|
|
|
|
2017-02-11 09:23:34 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 15:50:52 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.4.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-08-22 18:02:15 +00:00
|
|
|
* Mon Aug 15 2016 Kevin Fenzi <kevin@scrye.com> - 1.4.2-1
|
|
|
|
- Update to 1.4.2. Fixes bug #1356333
|
|
|
|
|
2016-07-19 10:12:06 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 19:59:29 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 16:13:34 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-09-16 17:10:33 +00:00
|
|
|
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 1.4.0-1
|
|
|
|
- new version
|
|
|
|
|
2015-06-17 21:24:18 +00:00
|
|
|
* Wed Jun 17 2015 Ralph Bean <rbean@redhat.com> - 1.3.0-1
|
|
|
|
- new version
|
|
|
|
- start running the test suite.
|
|
|
|
|
2015-03-27 19:18:18 +00:00
|
|
|
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
|
|
|
|
- new version
|
|
|
|
|
2015-03-19 01:30:21 +00:00
|
|
|
* Thu Mar 19 2015 Ralph Bean <rbean@redhat.com> - 1.0.0-1
|
|
|
|
- new version
|
|
|
|
|
2015-02-24 13:00:40 +00:00
|
|
|
* Fri Feb 20 2015 Ralph Bean <rbean@redhat.com> - 0.4.3-1
|
|
|
|
- Latest upstream.
|
|
|
|
- Expand the description as per review feedback.
|
|
|
|
- Add a comment about the test suite.
|
|
|
|
- Declare noarch.
|
|
|
|
- Declare _docdir_fmt
|
|
|
|
|
|
|
|
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.4.2-1
|
|
|
|
- initial package for Fedora.
|