2015-07-09 07:49:14 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define module_name jwcrypto
|
|
|
|
|
|
|
|
Name: python-jwcrypto
|
2016-08-31 19:51:13 +00:00
|
|
|
Version: 0.3.2
|
2016-08-10 10:31:46 +00:00
|
|
|
Release: 1%{?dist}
|
2015-07-09 07:49:14 +00:00
|
|
|
Summary: Implements JWK,JWS,JWE specifications using python-cryptography
|
|
|
|
|
|
|
|
License: LGPLv3+
|
|
|
|
URL: https://github.com/simo5/%{module_name}
|
|
|
|
Source0: https://github.com/simo5/%{module_name}/releases/download/v%{version}/jwcrypto-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/simo5/%{module_name}/releases/download/v%{version}/jwcrypto-%{version}.tar.gz.sha512sum.txt
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-cryptography
|
|
|
|
BuildRequires: python-nose
|
|
|
|
Requires: python-cryptography
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-cryptography
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Implements JWK,JWS,JWE specifications using python-cryptography
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-jwcrypto
|
|
|
|
Summary: Implements JWK,JWS,JWE specifications using python3-cryptography
|
|
|
|
Requires: python3-cryptography
|
|
|
|
|
|
|
|
%description -n python3-jwcrypto
|
|
|
|
Implements JWK,JWS,JWE specifications using python3-cryptography
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
grep `sha512sum %{SOURCE0}` %{SOURCE1} || (echo "Checksum invalid!" && exit 1)
|
|
|
|
%setup -q -n %{module_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
nosetests
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%endif
|
|
|
|
rm -rf %{buildroot}%{_docdir}/%{module_name}
|
|
|
|
rm -rf %{buildroot}%{python2_sitelib}/%{module_name}/tests{,-cookbook}.py*
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{module_name}/tests{,-cookbook}.py*
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{module_name}/__pycache__/tests{,-cookbook}.*.py*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-jwcrypto
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|