python-jwcrypto/python-jwcrypto.spec

97 lines
2.9 KiB
RPMSpec
Raw Normal View History

2022-08-02 14:15:32 +08:00
%global _empty_manifest_terminate_build 0
Name: python-jwcrypto
2023-07-04 20:50:58 +08:00
Version: 1.5.0
Release: 3
2022-08-02 14:15:32 +08:00
Summary: Implementation of JOSE Web standards
2022-12-09 15:07:29 +08:00
License: LGPL-3.0-or-later
2022-08-02 14:15:32 +08:00
URL: https://github.com/latchset/jwcrypto
2023-07-04 20:50:58 +08:00
Source0: https://files.pythonhosted.org/packages/ed/72/b9289ee27d228fc7cae5c83d1c640de2a7cc0621805aa839ba239d6ef8fc/jwcrypto-1.5.0.tar.gz
2023-12-29 09:36:08 +08:00
# https://github.com/latchset/jwcrypto/commit/d2655d370586cb830e49acfb450f87598da60be8
Patch0: CVE-2023-6681.patch
# https://github.com/latchset/jwcrypto/commit/90477a3b6e73da69740e00b8161f53fea19b831f
Patch1: CVE-2024-28102.patch
2022-08-02 14:15:32 +08:00
BuildArch: noarch
2020-06-19 17:50:44 +08:00
%description
Implements JWK, JWS, JWE specifications with python-cryptography
2022-08-02 14:15:32 +08:00
%package -n python3-jwcrypto
Summary: Implementation of JOSE Web standards
2022-12-02 14:15:50 +08:00
Provides: python-jwcrypto = %{version}-%{release}
2022-08-02 14:15:32 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-jwcrypto
Implements JWK, JWS, JWE specifications with python-cryptography
%package help
Summary: Development documents and examples for jwcrypto
Provides: python3-jwcrypto-doc
%description help
Implements JWK, JWS, JWE specifications with python-cryptography
2020-06-19 17:50:44 +08:00
%prep
2023-12-29 09:36:08 +08:00
%autosetup -n jwcrypto-%{version} -p1
2020-06-19 17:50:44 +08:00
%build
%py3_build
%install
%py3_install
2022-08-02 14:15:32 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-jwcrypto -f filelist.lst
%dir %{python3_sitelib}/*
2020-06-19 17:50:44 +08:00
2022-08-02 14:15:32 +08:00
%files help -f doclist.lst
%{_docdir}/*
2020-06-19 17:50:44 +08:00
%changelog
* Fri Mar 08 2024 yaoxin <yao_xin001@hoperun.com> - 1.5.0-3
- Fix CVE-2024-28102
2023-12-29 09:36:08 +08:00
* Fri Dec 29 2023 yaoxin <yao_xin001@hoperun.com> - 1.5.0-2
- Fix CVE-2023-6681
2023-07-04 20:50:58 +08:00
* Tue Jul 04 2023 chenzixuan <chenzixuan@kylinos.cn> - 1.5.0-1
- Update package to version 1.5.0
2022-12-09 15:07:29 +08:00
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 1.4.2-2
- License compliance rectification
2022-12-02 14:15:50 +08:00
* Fri Dec 02 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.4.2-1
- Update package to version 1.4.2
2022-08-02 14:15:32 +08:00
* Tue Aug 02 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.3.1-1
- Upgrade to version 1.3.1
2022-07-05 11:38:00 +08:00
* Tue Jul 05 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.9.1-1
- Upgrade to version 0.9.1
2020-06-19 17:50:44 +08:00
* Fri Apr 17 2020 lizhenhua <lizhenhua21@huawei.com> - 0.5.0-4
- Package init