Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0ce6e8f845
!19 Upgrade to version 3.19.1 for fix CVE-2023-52323
From: @wk333 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-01-09 08:48:54 +00:00
wk333
4bec053bcd Upgrade to version 3.19.1 for fix CVE-2023-52323 2024-01-09 11:37:37 +08:00
openeuler-ci-bot
9fa95cde4f
!13 upgrade openEuler-22.03-LTS-Next python-pycryptodomex 3.15.0
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-19 08:52:53 +00:00
cherry530
6319f89be8 Upgrade 3.15.0
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-10-19 15:24:17 +08:00
openeuler-ci-bot
5318aba963 !8 [sync] PR-7: update vertion to 3.10.1
From: @openeuler-sync-bot
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-08-20 02:03:39 +00:00
FFrog
14d3b134b0 update version to 3.10.1
(cherry picked from commit 51ddc34e31af942e84f8bdc5b58d21832a6d4e24)
2021-08-20 09:51:21 +08:00
openeuler-ci-bot
7af5d88ea0 !6 去除无用的构建依赖gdb和更新许可证信息
From: @tong_1001
Reviewed-by: 
Signed-off-by:
2021-07-23 07:29:55 +00:00
shixuantong
4f9f82ac6f remove gdb from BuildRequires
Be More specific on BSD and Apache license
2021-07-22 12:34:31 +08:00
openeuler-ci-bot
0590425be5 !1 add source code package and spec file
Merge pull request !1 from 桐小哥/master
2020-08-13 15:13:13 +08:00
sxt1001
0a802002bb add source code package and spec file 2020-08-13 15:00:11 +08:00
3 changed files with 131 additions and 0 deletions

BIN
pycryptodomex-3.19.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,36 @@
diff -up ./setup.py.bak ./setup.py
--- ./setup.py.bak 2022-06-22 20:21:37.000000000 +0200
+++ ./setup.py 2022-06-23 11:09:44.260182023 +0200
@@ -369,10 +369,12 @@ ext_modules = [
Extension("Crypto.Cipher._raw_des",
include_dirs=['src/', 'src/libtom/'],
sources=["src/DES.c"],
+ extra_link_args=["-ltomcrypt"],
py_limited_api=True),
Extension("Crypto.Cipher._raw_des3",
include_dirs=['src/', 'src/libtom/'],
sources=["src/DES3.c"],
+ extra_link_args=["-ltomcrypt"],
py_limited_api=True),
Extension("Crypto.Util._cpuid_c",
include_dirs=['src/'],
@@ -417,6 +419,7 @@ ext_modules = [
Extension("Crypto.Cipher._Salsa20",
include_dirs=['src/', 'src/libtom/'],
sources=["src/Salsa20.c"],
+ extra_link_args=["-ltomcrypt"],
py_limited_api=True),
Extension("Crypto.Cipher._chacha20",
include_dirs=['src/'],
diff -up ./src/DES.c.bak ./src/DES.c
--- ./src/DES.c.bak 2022-06-22 20:21:37.000000000 +0200
+++ ./src/DES.c 2022-06-23 11:10:58.166711358 +0200
@@ -39,7 +39,7 @@ FAKE_INIT(raw_des3)
/* Include the actial DES implementation */
#define LTC_NO_PROTOTYPES
-#include "libtom/tomcrypt_des.c"
+#include <tomcrypt.h>
struct block_state {
symmetric_key sk;

95
python-pycryptodomex.spec Normal file
View File

@ -0,0 +1,95 @@
%global _empty_manifest_terminate_build 0
Name: python-pycryptodomex
Version: 3.19.1
Release: 1
Summary: Cryptographic library for Python
License: BSD 2-Clause and Public Domain and Apache-2.0
URL: https://www.pycryptodome.org
Source0: https://files.pythonhosted.org/packages/source/p/pycryptodomex/pycryptodomex-%{version}.tar.gz
Patch0: python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch
%description
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
%package -n python3-pycryptodomex
Summary: Cryptographic library for Python
Provides: python-pycryptodomex
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-cffi
BuildRequires: gcc
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: libtomcrypt-devel
%description -n python3-pycryptodomex
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
%package help
Summary: Cryptographic library for Python
BuildArch: noarch
Provides: python3-pycryptodomex-doc
%description help
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
%prep
%autosetup -n pycryptodomex-%{version} -p1
%build
%py3_build
%install
%py3_install
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 .
%check
%{__python3} setup.py test
%files -n python3-pycryptodomex -f filelist.lst
%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jan 09 2024 wangkai <13474090681@163.com> - 3.19.1-1
- Upgrade to version 3.19.1 for fix CVE-2023-52323
* Wed Oct 19 2022 xu_ping <xuping33@h-partners.com> - 3.15.0-1
- Upgrade to version 3.15.0
* Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 3.10.1-1
- Update vertion to 3.10.1
* Wed Jul 21 2021 shixuantong<shixuantong@huawei.com> - 3.9.7-2
- remove gdb from BuildRequires
- Be More specific on BSD and Apache license
* Wed May 20 2020 Python_Bot <Python_Bot@openeuler.org> - 3.9.7-1
- Package Spec generated