2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
# Enable python3 build by default
|
|
|
|
%bcond_without python3
|
|
|
|
%else
|
|
|
|
%bcond_with python3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 31 || 0%{?rhel} > 7
|
|
|
|
# Disable python2 build by default
|
|
|
|
%bcond_with python2
|
|
|
|
%else
|
|
|
|
%bcond_without python2
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
%global srcname jwcrypto
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
Name: python-%{srcname}
|
2021-06-10 16:38:22 +00:00
|
|
|
Version: 0.9.1
|
2021-07-23 07:08:26 +00:00
|
|
|
Release: 2%{?dist}
|
2017-08-01 18:10:47 +00:00
|
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
License: LGPLv3+
|
2017-08-01 18:10:47 +00:00
|
|
|
URL: https://github.com/latchset/%{srcname}
|
|
|
|
Source0: https://github.com/latchset/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-07-24 09:30:15 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
2021-06-10 16:38:22 +00:00
|
|
|
BuildRequires: python2-cryptography >= 2.3
|
2017-07-24 09:30:15 +00:00
|
|
|
BuildRequires: python2-pytest
|
2021-06-10 17:09:33 +00:00
|
|
|
BuildRequires: python2-deprecated
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2021-06-10 16:38:22 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-cryptography >= 2.3
|
2017-08-01 18:10:47 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
2021-06-10 17:09:33 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-deprecated
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2017-08-01 18:10:47 +00:00
|
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
|
|
|
|
|
|
|
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-08-01 18:10:47 +00:00
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: Implements JWK,JWS,JWE specifications using python-cryptography
|
2021-06-10 16:38:22 +00:00
|
|
|
Requires: python2-cryptography >= 2.3
|
2021-06-10 17:09:33 +00:00
|
|
|
Requires: python2-deprecated
|
2017-08-01 18:10:47 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2017-08-01 18:10:47 +00:00
|
|
|
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
Summary: Implements JWK, JWS, JWE specifications using python-cryptography
|
2021-06-10 16:38:22 +00:00
|
|
|
Requires: python%{python3_pkgversion}-cryptography >= 2.3
|
2021-06-10 17:09:33 +00:00
|
|
|
Requires: python%{python3_pkgversion}-deprecated
|
2017-08-01 18:10:47 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
2015-07-09 07:49:14 +00:00
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
Implements JWK, JWS, JWE specifications using python-cryptography
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
|
2015-07-09 07:49:14 +00:00
|
|
|
%prep
|
2017-08-01 18:10:47 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-08-01 18:10:47 +00:00
|
|
|
%py2_build
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
%py3_build
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-08-02 08:06:32 +00:00
|
|
|
%{__python2} -bb -m pytest %{srcname}/test*.py
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2017-07-24 09:30:15 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-08-02 08:06:32 +00:00
|
|
|
%{__python3} -bb -m pytest %{srcname}/test*.py
|
2017-07-24 09:30:15 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-08-01 18:10:47 +00:00
|
|
|
%py2_install
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
%py3_install
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
2017-08-01 18:10:47 +00:00
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_docdir}/%{srcname}
|
2019-08-29 08:48:06 +00:00
|
|
|
%if 0%{?with_python2}
|
2017-08-01 18:10:47 +00:00
|
|
|
rm -rf %{buildroot}%{python2_sitelib}/%{srcname}/tests{,-cookbook}.py*
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/tests{,-cookbook}.py*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests{,-cookbook}.*.py*
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
2019-08-29 08:48:06 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
2017-08-01 18:10:47 +00:00
|
|
|
%files -n python2-%{srcname}
|
2015-07-09 07:49:14 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2017-08-01 18:10:47 +00:00
|
|
|
%{python2_sitelib}/%{srcname}
|
|
|
|
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
2019-08-29 08:48:06 +00:00
|
|
|
%endif
|
2015-07-09 07:49:14 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
2017-08-01 18:10:47 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2015-07-09 07:49:14 +00:00
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2017-08-01 18:10:47 +00:00
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
2015-07-09 07:49:14 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-07-23 07:08:26 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-10 16:38:22 +00:00
|
|
|
* Thu Jun 10 2021 Simo Sorce <simo@redhat.com> - 0.9.1-1
|
|
|
|
- Sync with upstream release 0.9.1
|
|
|
|
|
2021-06-04 18:41:10 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8-3
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-01-27 11:23:16 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-01 18:51:51 +00:00
|
|
|
* Tue Dec 01 2020 Simo Sorce <simo@redhat.com> - 0.8-1
|
|
|
|
- Sync with upstream release 0.8
|
|
|
|
|
2020-07-29 01:48:26 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:22:03 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-8
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 13:00:13 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:16:41 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-6
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-29 08:48:06 +00:00
|
|
|
* Thu Aug 29 2019 Christian Heimes <cheimes@redhat.com> - 0.6.0-5
|
|
|
|
- Remove Python 2 subpackages from F32+
|
|
|
|
- Resolves: RHBZ #1746760
|
|
|
|
|
2019-08-19 08:43:02 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 14:13:30 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 07:27:53 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-05 15:25:07 +00:00
|
|
|
* Mon Nov 05 2018 Christian Heimes <cheimes@redhat.com> - 0.6.0-1
|
|
|
|
- New upstream release 0.6.0
|
|
|
|
|
2018-07-14 00:44:05 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-02 16:23:29 +00:00
|
|
|
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-27 10:35:47 +00:00
|
|
|
* Wed Jun 27 2018 Christian Heimes <cheimes@redhat.com> - 0.5.0-1
|
|
|
|
- New upstream release 0.5.0
|
|
|
|
|
2018-06-19 09:06:48 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-5
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-09 08:33:42 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-02 08:06:32 +00:00
|
|
|
* Wed Aug 02 2017 Christian Heimes <cheimes@redhat.com> - 0.4.2-3
|
|
|
|
- Run tests with bytes warning
|
|
|
|
|
2017-08-01 18:10:47 +00:00
|
|
|
* Tue Aug 01 2017 Christian Heimes <cheimes@redhat.com> - 0.4.2-2
|
|
|
|
- Modernize spec
|
|
|
|
|
2017-08-01 16:07:04 +00:00
|
|
|
* Tue Aug 01 2017 Christian Heimes <cheimes@redhat.com> - 0.4.2-1
|
|
|
|
- Upstream release 0.4.2
|
|
|
|
- Resolves: RHBZ #1476150
|
|
|
|
|
2017-07-24 09:30:15 +00:00
|
|
|
* Mon Jul 24 2017 Christian Heimes <cheimes@redhat.com> - 0.4.1-1
|
|
|
|
- Upstream release 0.4.1
|
|
|
|
|
2017-02-11 09:23:27 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-08-31 19:51:13 +00:00
|
|
|
* Wed Aug 31 2016 Simo Sorce <simo@redhat.com> - 0.3.2-1
|
|
|
|
- Security release 0.3.2
|
|
|
|
- Resolves: CVE-2016-6298
|
|
|
|
|
2016-08-19 15:34:02 +00:00
|
|
|
* Fri Aug 19 2016 Simo Sorce <simo@redhat.com> - 0.3.1-1
|
|
|
|
- Bugfix release 0.3.1
|
|
|
|
|
2016-08-10 10:31:46 +00:00
|
|
|
* Wed Aug 10 2016 Simo Sorce <simo@redhat.com> - 0.3.0-1
|
|
|
|
- New release
|
|
|
|
|
2016-07-19 10:11:56 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 19:59:23 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 16:13:18 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-08-03 18:16:53 +00:00
|
|
|
* Mon Aug 3 2015 Simo Sorce <simo@redhat.com> - 0.2.1-1
|
|
|
|
- New release
|
|
|
|
- Fixes some key generation issues
|
|
|
|
|
2015-07-09 07:49:14 +00:00
|
|
|
* Mon Jun 22 2015 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-5
|
|
|
|
- Fix macro in changelog
|
|
|
|
- Remove the last remnants of the test suite
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-4
|
|
|
|
- Ship readme and license with python3 subpackage
|
|
|
|
- Move tests to %%check
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-3
|
|
|
|
- Fix F21 build error by adding buildrequire python-setuptools
|
|
|
|
- Move files into python3-jwcrypto subpackage
|
|
|
|
- Run test suite
|
|
|
|
- Do not install test suite
|
|
|
|
- Fix summary and description of python3-jwcrypto
|
|
|
|
|
|
|
|
* Tue Jun 16 2015 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-2
|
|
|
|
- Enable python3 build
|
|
|
|
|
|
|
|
* Tue Jun 16 2015 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-1
|
|
|
|
- Initial packaging
|