Compare commits

...

4 Commits
epel9 ... i9ce

Author SHA1 Message Date
MSVSphere Packaging Team 50df1dcf9d import python-pycryptodomex-3.20.0-1.el9
10 months ago
MSVSphere Packaging Team ad3d189698 Merge and update
1 year ago
MSVSphere Packaging Team c9cc4fa1db Remove unnecessary files
1 year ago
Sergey Cherevko ecaec7f544
Initial import from EPEL 9 upstream
2 years ago

2
.gitignore vendored

@ -1 +1 @@
/pycryptodomex-3.14.0.tar.gz SOURCES/pycryptodomex-3.20.0.tar.gz

@ -0,0 +1 @@
97e5ce536f285a91835d8df3a25dea711757e7ef SOURCES/pycryptodomex-3.20.0.tar.gz

@ -1,37 +1,30 @@
diff -up ./setup.py.bak ./setup.py diff -up ./setup.py.bak ./setup.py
--- ./setup.py.bak 2021-02-08 22:14:54.000000000 +0100 --- ./setup.py.bak 2022-06-22 20:21:37.000000000 +0200
+++ ./setup.py 2021-02-09 15:55:53.785892041 +0100 +++ ./setup.py 2022-06-23 11:09:44.260182023 +0200
@@ -367,12 +367,14 @@ ext_modules = [ @@ -369,10 +369,12 @@ ext_modules = [
sources=["src/CAST.c"],
py_limited_api=True),
Extension("Crypto.Cipher._raw_des", Extension("Crypto.Cipher._raw_des",
- include_dirs=['src/', 'src/libtom/'], include_dirs=['src/', 'src/libtom/'],
+ include_dirs=['src/'],
sources=["src/DES.c"], sources=["src/DES.c"],
+ extra_link_args=["-ltomcrypt"], + extra_link_args=["-ltomcrypt"],
py_limited_api=True), py_limited_api=True),
Extension("Crypto.Cipher._raw_des3", Extension("Crypto.Cipher._raw_des3",
- include_dirs=['src/', 'src/libtom/'], include_dirs=['src/', 'src/libtom/'],
+ include_dirs=['src/'],
sources=["src/DES3.c"], sources=["src/DES3.c"],
+ extra_link_args=["-ltomcrypt"], + extra_link_args=["-ltomcrypt"],
py_limited_api=True), py_limited_api=True),
Extension("Crypto.Util._cpuid_c", Extension("Crypto.Util._cpuid_c",
include_dirs=['src/'], include_dirs=['src/'],
@@ -410,8 +412,9 @@ ext_modules = [ @@ -417,6 +419,7 @@ ext_modules = [
sources=["src/ARC4.c"],
py_limited_api=True),
Extension("Crypto.Cipher._Salsa20", Extension("Crypto.Cipher._Salsa20",
- include_dirs=['src/', 'src/libtom/'], include_dirs=['src/', 'src/libtom/'],
+ include_dirs=['src/'],
sources=["src/Salsa20.c"], sources=["src/Salsa20.c"],
+ extra_link_args=["-ltomcrypt"], + extra_link_args=["-ltomcrypt"],
py_limited_api=True), py_limited_api=True),
Extension("Crypto.Cipher._chacha20", Extension("Crypto.Cipher._chacha20",
include_dirs=['src/'], include_dirs=['src/'],
diff -up ./src/DES.c.bak ./src/DES.c diff -up ./src/DES.c.bak ./src/DES.c
--- ./src/DES.c.bak 2021-02-08 22:14:54.000000000 +0100 --- ./src/DES.c.bak 2022-06-22 20:21:37.000000000 +0200
+++ ./src/DES.c 2021-02-09 15:55:53.785892041 +0100 +++ ./src/DES.c 2022-06-23 11:10:58.166711358 +0200
@@ -39,7 +39,7 @@ FAKE_INIT(raw_des3) @@ -39,7 +39,7 @@ FAKE_INIT(raw_des3)
/* Include the actial DES implementation */ /* Include the actial DES implementation */

@ -28,19 +28,17 @@ Note: all modules are installed under the Cryptodome package to avoid conflicts
with the PyCrypto library.} with the PyCrypto library.}
Name: python-%{srcname} Name: python-%{srcname}
Version: 3.14.0 Version: 3.20.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: A self-contained cryptographic library for Python Summary: A self-contained cryptographic library for Python
# PyCrypto-based code is public domain, further PyCryptodome contributions are # PyCrypto-based code is public domain, further PyCryptodome contributions are
# BSD # BSD
License: BSD and Public Domain License: BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
URL: http://www.pycryptodome.org/ URL: http://www.pycryptodome.org/
Source0: https://github.com/Legrandin/pycryptodome/archive/v%{version}/%{srcname}-%{version}.tar.gz Source0: https://github.com/Legrandin/pycryptodome/archive/v%{version}/%{srcname}-%{version}.tar.gz
# Use external libtomcrypt library # Use external libtomcrypt library
Patch0: %{name}-3.10.1-use_external_libtomcrypt.patch Patch0: %{name}-3.15.0-use_external_libtomcrypt.patch
# Fix build with Sphinx 4.2
Patch1: %{name}-3.10.1-sphinx_4.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libtomcrypt-devel BuildRequires: libtomcrypt-devel
@ -85,7 +83,6 @@ mv lib/Crypto/SelfTest/__main__.py.new lib/Crypto/SelfTest/__main__.py
%generate_buildrequires %generate_buildrequires
export PYCRYPTODOME_DEBUG=1
%pyproject_buildrequires -r %pyproject_buildrequires -r
@ -107,14 +104,14 @@ install -Dpm 0644 Doc/_build/man/pycryptodome.1 $RPM_BUILD_ROOT%{_mandir}/man1/p
%check %check
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch}/ %{__python3} setup.py test PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch}/ %{__python3} %{py_setup} test
%files -n python3-%{srcname} -f %{pyproject_files} %files -n python3-%{srcname} -f %{pyproject_files}
%doc AUTHORS.rst Changelog.rst README.rst %doc AUTHORS.rst Changelog.rst README.rst
%license LICENSE.rst %license LICENSE.rst
%exclude %{python3_sitearch}/Cryptodome/SelfTest/ %exclude %{python3_sitearch}/Cryptodome/SelfTest/
%{_mandir}/man1/pycryptodome.1.* %{_mandir}/man1/pycryptodome.1*
%files -n python3-%{srcname}-selftest %files -n python3-%{srcname}-selftest
@ -122,5 +119,11 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch}/ %{__python3} setup.py test
%changelog %changelog
* Sun Feb 25 2024 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.20.0-1
- Update to 3.20.0
* Wed Apr 26 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 3.14.0-1
- Rebuilt for MSVSphere 9.1
* Wed Feb 02 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.14.0-1 * Wed Feb 02 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.14.0-1
- Initial EPEL9 release - Initial EPEL9 release

@ -1,21 +0,0 @@
diff -up ./Doc/conf.py.bak ./Doc/conf.py
--- ./Doc/conf.py.bak 2021-07-05 08:16:40.083571171 +0000
+++ ./Doc/conf.py 2021-07-05 08:17:17.754162806 +0000
@@ -15,7 +15,7 @@ import sys, os
# Modules to document with autodoc are in another directory
sys.path.insert(0, os.path.abspath('../lib'))
-print sys.path
+print(sys.path)
# Mock existence of native modules
from Crypto.Util import _raw_api
@@ -155,7 +155,7 @@ html_static_path = ['_static']
# Ensure that text wrapping works in a table, by overring some CSS.
# See https://github.com/rtfd/sphinx_rtd_theme/issues/117
def setup(app):
- app.add_stylesheet('theme_overrides.css')
+ app.add_css_file('theme_overrides.css')
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

@ -1 +0,0 @@
SHA512 (pycryptodomex-3.14.0.tar.gz) = 2f20a3a2bfef14a0f4c05587d64da3a4be7303ae37aaee02e49a3c7ef69009fa958e4b7151c1441f2cc63833cc29642d6d13c1006fb0f215743178d36c9de802
Loading…
Cancel
Save