diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pycryptodomex.spec | 173 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 175 insertions, 0 deletions
@@ -0,0 +1 @@ +/pycryptodomex-3.17.tar.gz diff --git a/python-pycryptodomex.spec b/python-pycryptodomex.spec new file mode 100644 index 0000000..7265a2c --- /dev/null +++ b/python-pycryptodomex.spec @@ -0,0 +1,173 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pycryptodomex +Version: 3.17 +Release: 1 +Summary: Cryptographic library for Python +License: BSD, Public Domain +URL: https://www.pycryptodome.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3d/07/cfd8f52b9068877801317d26dc7225e19421bc659e1395d2cd6933b1a351/pycryptodomex-3.17.tar.gz + + +%description +PyCryptodome is a self-contained Python package of low-level +cryptographic primitives. +It supports Python 2.7, Python 3.5 and newer, and PyPy. +You can install it with:: + pip install pycryptodomex +All modules are installed under the ``Cryptodome`` package. +Check the pycryptodome_ project for the equivalent library that +works under the ``Crypto`` package. +PyCryptodome is a fork of PyCrypto. It brings several enhancements +with respect to the last official version of PyCrypto (2.6.1), +for instance: +* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB) +* Accelerated AES on Intel platforms via AES-NI +* First class support for PyPy +* Elliptic curves cryptography (NIST P-curves; Ed25519, Ed448) +* Better and more compact API (`nonce` and `iv` attributes for ciphers, + automatic generation of random nonces and IVs, simplified CTR cipher mode, + and more) +* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms +* Salsa20 and ChaCha20 stream ciphers +* scrypt and HKDF +* Deterministic (EC)DSA and EdDSA +* Password-protected PKCS#8 key containers +* Shamir's Secret Sharing scheme +* Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace) +* Simplified install process, including better support for Windows +* Cleaner RSA and DSA key generation (largely based on FIPS 186-4) +* Major clean ups and simplification of the code base +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 pieces that are extremely critical to performance (e.g. block ciphers) +are implemented as C extensions. +For more information, see the `homepage`_. +All the code can be downloaded from `GitHub`_. + +%package -n python3-pycryptodomex +Summary: Cryptographic library for Python +Provides: python-pycryptodomex +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pycryptodomex +PyCryptodome is a self-contained Python package of low-level +cryptographic primitives. +It supports Python 2.7, Python 3.5 and newer, and PyPy. +You can install it with:: + pip install pycryptodomex +All modules are installed under the ``Cryptodome`` package. +Check the pycryptodome_ project for the equivalent library that +works under the ``Crypto`` package. +PyCryptodome is a fork of PyCrypto. It brings several enhancements +with respect to the last official version of PyCrypto (2.6.1), +for instance: +* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB) +* Accelerated AES on Intel platforms via AES-NI +* First class support for PyPy +* Elliptic curves cryptography (NIST P-curves; Ed25519, Ed448) +* Better and more compact API (`nonce` and `iv` attributes for ciphers, + automatic generation of random nonces and IVs, simplified CTR cipher mode, + and more) +* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms +* Salsa20 and ChaCha20 stream ciphers +* scrypt and HKDF +* Deterministic (EC)DSA and EdDSA +* Password-protected PKCS#8 key containers +* Shamir's Secret Sharing scheme +* Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace) +* Simplified install process, including better support for Windows +* Cleaner RSA and DSA key generation (largely based on FIPS 186-4) +* Major clean ups and simplification of the code base +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 pieces that are extremely critical to performance (e.g. block ciphers) +are implemented as C extensions. +For more information, see the `homepage`_. +All the code can be downloaded from `GitHub`_. + +%package help +Summary: Development documents and examples for pycryptodomex +Provides: python3-pycryptodomex-doc +%description help +PyCryptodome is a self-contained Python package of low-level +cryptographic primitives. +It supports Python 2.7, Python 3.5 and newer, and PyPy. +You can install it with:: + pip install pycryptodomex +All modules are installed under the ``Cryptodome`` package. +Check the pycryptodome_ project for the equivalent library that +works under the ``Crypto`` package. +PyCryptodome is a fork of PyCrypto. It brings several enhancements +with respect to the last official version of PyCrypto (2.6.1), +for instance: +* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB) +* Accelerated AES on Intel platforms via AES-NI +* First class support for PyPy +* Elliptic curves cryptography (NIST P-curves; Ed25519, Ed448) +* Better and more compact API (`nonce` and `iv` attributes for ciphers, + automatic generation of random nonces and IVs, simplified CTR cipher mode, + and more) +* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms +* Salsa20 and ChaCha20 stream ciphers +* scrypt and HKDF +* Deterministic (EC)DSA and EdDSA +* Password-protected PKCS#8 key containers +* Shamir's Secret Sharing scheme +* Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace) +* Simplified install process, including better support for Windows +* Cleaner RSA and DSA key generation (largely based on FIPS 186-4) +* Major clean ups and simplification of the code base +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 pieces that are extremely critical to performance (e.g. block ciphers) +are implemented as C extensions. +For more information, see the `homepage`_. +All the code can be downloaded from `GitHub`_. + +%prep +%autosetup -n pycryptodomex-3.17 + +%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 . + +%files -n python3-pycryptodomex -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.17-1 +- Package Spec generated @@ -0,0 +1 @@ +95744efaafcfb60d3ea959fb5a05d637 pycryptodomex-3.17.tar.gz |