!13 upgrade openEuler-22.03-LTS-Next python-pycryptodomex 3.15.0
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
9fa95cde4f
Binary file not shown.
BIN
pycryptodomex-3.15.0.tar.gz
Normal file
BIN
pycryptodomex-3.15.0.tar.gz
Normal file
Binary file not shown.
36
python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch
Normal file
36
python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch
Normal 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;
|
||||||
@ -1,12 +1,14 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
|
|
||||||
Name: python-pycryptodomex
|
Name: python-pycryptodomex
|
||||||
Version: 3.10.1
|
Version: 3.15.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Cryptographic library for Python
|
Summary: Cryptographic library for Python
|
||||||
License: BSD 2-Clause and Public Domain and Apache-2.0
|
License: BSD 2-Clause and Public Domain and Apache-2.0
|
||||||
URL: https://www.pycryptodome.org
|
URL: https://www.pycryptodome.org
|
||||||
Source0: https://files.pythonhosted.org/packages/82/e2/a0f9f5452a59bafaa3420585f22b58a8566c4717a88c139af2276bb5695d/pycryptodomex-3.10.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/52/0d/6cc95a83f6961a1ca041798d222240890af79b381e97eda3b9b538dba16f/pycryptodomex-3.15.0.tar.gz
|
||||||
|
Patch0: python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
||||||
|
|
||||||
@ -18,6 +20,10 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-cffi
|
BuildRequires: python3-cffi
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: libtomcrypt-devel
|
||||||
%description -n python3-pycryptodomex
|
%description -n python3-pycryptodomex
|
||||||
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
||||||
|
|
||||||
@ -29,7 +35,7 @@ Provides: python3-pycryptodomex-doc
|
|||||||
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
PyCryptodome is a self-contained Python package of low-level cryptographic primitives.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pycryptodomex-3.10.1
|
%autosetup -n pycryptodomex-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -69,9 +75,12 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%dir %{python3_sitearch}/*
|
%dir %{python3_sitearch}/*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_pkgdocdir}
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Tue Aug 03 2021 OpenStack_SIG <openstack@openeuler.org> - 3.10.1-1
|
||||||
- Update vertion to 3.10.1
|
- Update vertion to 3.10.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user