python-jwcrypto/python-jwcrypto.spec
2025-02-13 16:39:02 +08:00

51 lines
1.7 KiB
RPMSpec

Name: python-jwcrypto
Version: 0.5.0
Release: 5
Summary: Implements JWK, JWS, JWE specifications with python-cryptography
License: LGPLv3+
URL: https://github.com/latchset/jwcrypto
Source0: https://github.com/latchset/jwcrypto/releases/download/v%{version}/jwcrypto-%{version}.tar.gz
Patch0: CVE-2024-28102.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-cryptography >= 1.5 python%{python3_pkgversion}-pytest
%description
Implements JWK, JWS, JWE specifications with python-cryptography
%package -n python%{python3_pkgversion}-jwcrypto
Summary: Implements JWK, JWS, JWE specifications with python-cryptography
Requires: python%{python3_pkgversion}-cryptography >= 1.5
%{?python_provide:%python_provide python%{python3_pkgversion}-jwcrypto}
%description -n python%{python3_pkgversion}-jwcrypto
Implements JWK, JWS, JWE specifications using python-cryptography
%prep
%autosetup -n jwcrypto-%{version} -p1
%build
%py3_build
%check
%{__python3} -bb -m pytest jwcrypto/test*.py
%install
%py3_install
%files -n python%{python3_pkgversion}-jwcrypto
%doc README.md LICENSE
%exclude %{_docdir}/jwcrypto
%exclude %{python3_sitelib}/jwcrypto/tests{,-cookbook}.py*
%exclude %{python3_sitelib}/jwcrypto/__pycache__/tests{,-cookbook}.*.py*
%{python3_sitelib}/jwcrypto
%{python3_sitelib}/jwcrypto-%{version}-py%{python3_version}.egg-info
%changelog
* Thu Feb 13 2025 yaoxin <1024769339@qq.com> - 0.5.0-5
- Fix CVE-2024-28102
* Fri Apr 17 2020 lizhenhua <lizhenhua21@huawei.com> - 0.5.0-4
- Package init