diff --git a/pycryptodomex-3.14.1.tar.gz b/pycryptodomex-3.14.1.tar.gz deleted file mode 100644 index b1194d5..0000000 Binary files a/pycryptodomex-3.14.1.tar.gz and /dev/null differ diff --git a/pycryptodomex-3.15.0.tar.gz b/pycryptodomex-3.15.0.tar.gz new file mode 100644 index 0000000..34558a5 Binary files /dev/null and b/pycryptodomex-3.15.0.tar.gz differ diff --git a/python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch b/python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch new file mode 100644 index 0000000..66e683d --- /dev/null +++ b/python-pycryptodomex-3.15.0-use_external_libtomcrypt.patch @@ -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 + + struct block_state { + symmetric_key sk; diff --git a/python-pycryptodomex.spec b/python-pycryptodomex.spec index 60f497e..a29037f 100644 --- a/python-pycryptodomex.spec +++ b/python-pycryptodomex.spec @@ -1,12 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-pycryptodomex -Version: 3.14.1 +Version: 3.15.0 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/24/40/e249ac3845a2333ce50f1bb02299ffb766babdfe80ca9d31e0158ad06afd/pycryptodomex-3.14.1.tar.gz +Source0: https://github.com/Legrandin/pycryptodome/archive/v%{version}/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. @@ -22,6 +23,7 @@ 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. @@ -33,7 +35,7 @@ Provides: python3-pycryptodomex-doc PyCryptodome is a self-contained Python package of low-level cryptographic primitives. %prep -%autosetup -n pycryptodomex-%{version} +%autosetup -n pycryptodome-%{version} -p1 %build %py3_build @@ -76,6 +78,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Jun 23 2022 SimpleUpdate Robot - 3.15.0-1 +- Upgrade to version 3.15.0 + * Thu Jun 09 2022 OpenStack_SIG - 3.14.1-1 - Upgrade package python3-pycryptodomex to version 3.14.1