Compare commits

..

8 Commits
epel9 ... epel8

Author SHA1 Message Date
Mohamed El Morabity 8a9b477c48 Update to 3.10.1
4 years ago
Mohamed El Morabity 32de16fb99 Update sources
5 years ago
Mohamed El Morabity c261bd52ee Update to 3.9.7
5 years ago
Mohamed El Morabity d3484b4734 Update to 3.9.6
5 years ago
Mohamed El Morabity fd3b848c7e Update to 3.9.4
5 years ago
Mohamed El Morabity 2214c76fa7 Update to 3.9.3
5 years ago
Mohamed El Morabity aeb7423ef3 Enable build for EPEL8
5 years ago
Gwyn Ciesla 497317eb75 "Adding package.cfg file"
5 years ago

7
.gitignore vendored

@ -1 +1,6 @@
/pycryptodomex-3.20.0.tar.gz /pycryptodomex-3.9.0.tar.gz
/pycryptodomex-3.9.3.tar.gz
/pycryptodomex-3.9.4.tar.gz
/pycryptodomex-3.9.6.tar.gz
/pycryptodomex-3.9.7.tar.gz
/pycryptodomex-3.10.1.tar.gz

@ -1,30 +1,37 @@
diff -up ./setup.py.bak ./setup.py diff -up ./setup.py.bak ./setup.py
--- ./setup.py.bak 2022-06-22 20:21:37.000000000 +0200 --- ./setup.py.bak 2021-02-08 22:14:54.000000000 +0100
+++ ./setup.py 2022-06-23 11:09:44.260182023 +0200 +++ ./setup.py 2021-02-09 15:55:53.785892041 +0100
@@ -369,10 +369,12 @@ ext_modules = [ @@ -367,12 +367,14 @@ 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/'],
@@ -417,6 +419,7 @@ ext_modules = [ @@ -410,8 +412,9 @@ 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 2022-06-22 20:21:37.000000000 +0200 --- ./src/DES.c.bak 2021-02-08 22:14:54.000000000 +0100
+++ ./src/DES.c 2022-06-23 11:10:58.166711358 +0200 +++ ./src/DES.c 2021-02-09 15:55:53.785892041 +0100
@@ -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 */

@ -1,73 +1,83 @@
%global srcname pycryptodomex %global srcname pycryptodomex
%global _description %{expand:PyCryptodome is a self-contained Python package of low-level cryptographic %global common_description PyCryptodome is a self-contained Python package of low-level cryptographic\
primitives. It's a fork of PyCrypto. It brings several enhancements with respect primitives. It's a fork of PyCrypto. It brings several enhancements with respect\
to the last official version of PyCrypto (2.6.1), for instance: to the last official version of PyCrypto (2.6.1), for instance:\
\
* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB) * Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)\
* Accelerated AES on Intel platforms via AES-NI * Accelerated AES on Intel platforms via AES-NI\
* Elliptic curves cryptography (NIST P-256 curve only) * Elliptic curves cryptography (NIST P-256 curve only)\
* Better and more compact API (nonce and iv attributes for ciphers, automatic * Better and more compact API (nonce and iv attributes for ciphers, automatic\
generation of random nonces and IVs, simplified CTR cipher mode, and more) generation of random nonces and IVs, simplified CTR cipher mode, and more)\
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms * SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms\
* Salsa20 and ChaCha20 stream ciphers * Salsa20 and ChaCha20 stream ciphers\
* scrypt and HKDF * scrypt and HKDF\
* Deterministic (EC)DSA * Deterministic (EC)DSA\
* Password-protected PKCS#8 key containers * Password-protected PKCS#8 key containers\
* Shamir's Secret Sharing scheme * Shamir's Secret Sharing scheme\
* Random numbers get sourced directly from the OS (and not from a CSPRNG in * Random numbers get sourced directly from the OS (and not from a CSPRNG in\
userspace) userspace)\
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4) * Cleaner RSA and DSA key generation (largely based on FIPS 186-4)\
* Major clean ups and simplification of the code base * Major clean ups and simplification of the code base\
\
PyCryptodome is not a wrapper to a separate C library like OpenSSL. To the PyCryptodome is not a wrapper to a separate C library like OpenSSL. To the\
largest possible extent, algorithms are implemented in pure Python. Only the largest possible extent, algorithms are implemented in pure Python. Only the\
pieces that are extremely critical to performance (e.g. block ciphers) are pieces that are extremely critical to performance (e.g. block ciphers) are\
implemented as C extensions. implemented as C extensions.\
\
Note: all modules are installed under the Cryptodome package to avoid conflicts Note: all modules are installed under the Cryptodome package to avoid conflicts\
with the PyCrypto library.} with the PyCrypto library.
%global _with_python2 1
%global _with_tests 1
Name: python-%{srcname} Name: python-%{srcname}
Version: 3.20.0 Version: 3.10.1
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-2-Clause AND LicenseRef-Fedora-Public-Domain License: BSD and 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.15.0-use_external_libtomcrypt.patch Patch0: %{name}-3.10.1-use_external_libtomcrypt.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: libtomcrypt-devel BuildRequires: libtomcrypt-devel
BuildRequires: make %if 0%{?_with_python2}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%endif
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools
# Needed for documentation # Needed for documentation
BuildRequires: %{py3_dist sphinx} BuildRequires: python3-sphinx
%description %description
%{_description} %{common_description}
%package -n python3-%{srcname} %if 0%{?_with_python2}
%package -n python2-%{srcname}
Summary: %{summary} Summary: %{summary}
# GMP library is dl-opened # GMP library is dl-opened
Requires: gmp%{?_isa} Requires: gmp%{?_isa}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python3-%{srcname} %description -n python2-%{srcname}
%{_description} %{common_description}
%endif
%package -n python3-%{srcname}-selftest
Summary: PyCryptodome test suite module
Requires: python3-%{srcname}%{?_isa}
%description -n python3-%{srcname}-selftest %package -n python3-%{srcname}
%{_description} Summary: %{summary}
# GMP library is dl-opened
Requires: gmp%{?_isa}
%{?python_provide:%python_provide python3-%{srcname}}
This package provides the PyCryptodome test suite module (Cryptodome.SelfTest). %description -n python3-%{srcname}
%{common_description}
%prep %prep
@ -82,21 +92,22 @@ touch -r lib/Crypto/SelfTest/__main__.py lib/Crypto/SelfTest/__main__.py.new &&
mv lib/Crypto/SelfTest/__main__.py.new lib/Crypto/SelfTest/__main__.py mv lib/Crypto/SelfTest/__main__.py.new lib/Crypto/SelfTest/__main__.py
%generate_buildrequires
%pyproject_buildrequires -r
%build %build
touch .separate_namespace touch .separate_namespace
%pyproject_wheel %if 0%{?_with_python2}
%py2_build
%endif
%py3_build
# Build documentation # Build documentation
%make_build -C Doc/ man SPHINXBUILD=sphinx-build %make_build -C Doc/ man SPHINXBUILD=sphinx-build-3
%install %install
%pyproject_install %if 0%{?_with_python2}
%pyproject_save_files Cryptodome %py2_install
%endif
%py3_install
# Install man pages # Install man pages
@ -104,23 +115,47 @@ install -Dpm 0644 Doc/_build/man/pycryptodome.1 $RPM_BUILD_ROOT%{_mandir}/man1/p
%check %check
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch}/ %{__python3} %{py_setup} test %if 0%{?_with_tests}
%if 0%{?_with_python2}
%{__python2} setup.py test
%endif
%{__python3} setup.py test
%endif
%files -n python3-%{srcname} -f %{pyproject_files} %if 0%{?_with_python2}
%files -n python2-%{srcname}
%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/ %{python2_sitearch}/Cryptodome/
%{_mandir}/man1/pycryptodome.1* %{python2_sitearch}/%{srcname}-*.egg-info/
%{_mandir}/man1/pycryptodome.1.*
%endif
%files -n python3-%{srcname}-selftest %files -n python3-%{srcname}
%{python3_sitearch}/Cryptodome/SelfTest/ %doc AUTHORS.rst Changelog.rst README.rst
%license LICENSE.rst
%{python3_sitearch}/Cryptodome/
%{python3_sitearch}/%{srcname}-*.egg-info/
%{_mandir}/man1/pycryptodome.1.*
%changelog %changelog
* Sun Feb 25 2024 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.20.0-1 * Tue Aug 03 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.10.1-1
- Update to 3.20.0 - Update to 3.10.1
* Fri Feb 21 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.7-1
- Update to 3.9.7
* Mon Feb 03 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.6-1
- Update to 3.9.6
* Tue Nov 19 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.4-1
- Update to 3.9.4
* Fri Nov 15 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.3-1
- Update to 3.9.3
* Wed Feb 02 2022 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.14.0-1 * Thu Oct 31 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 3.9.0-1
- Initial EPEL9 release - Enable build for EPEL8

@ -1 +1 @@
SHA512 (pycryptodomex-3.20.0.tar.gz) = 0d65ccd93f9f78548c04aa3af01cb65b6a39e81bb3dfa4bb08acc5a5a731b17f9c5b07a1d1780739b3f358402a3596b04e446fc7b39345a4c6f03fd5a2de7ff9 SHA512 (pycryptodomex-3.10.1.tar.gz) = 4c7e7e989d5363064e7e184f6b00a174045e03916cdf1199626afd7fe75eb5efcd13888ecdee607b974e96faad465694b384eb6d91edb8de1d0277ad71888c52

Loading…
Cancel
Save