summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 08:17:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 08:17:46 +0000
commit50ba1af63d7aecbc360c32f122bce2665a950724 (patch)
tree9ff435ad1141ba3a1e0cbdafb0652733886e5160
parent4d4ecd6a8aeca9f3ba05cb88f7c4db2b454f262f (diff)
automatic import of python-pycryptodome
-rw-r--r--.gitignore1
-rw-r--r--python-pycryptodome.spec173
-rw-r--r--sources1
3 files changed, 175 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f56dbb8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pycryptodome-3.17.tar.gz
diff --git a/python-pycryptodome.spec b/python-pycryptodome.spec
new file mode 100644
index 0000000..30fb360
--- /dev/null
+++ b/python-pycryptodome.spec
@@ -0,0 +1,173 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pycryptodome
+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/b8/2e/cf9cfd1ae6429381d3d9c14c8df79d91ae163929972f245a76058ea9d37d/pycryptodome-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 pycryptodome
+All modules are installed under the ``Crypto`` package.
+Check the pycryptodomex_ project for the equivalent library that
+works under the ``Cryptodome`` 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-pycryptodome
+Summary: Cryptographic library for Python
+Provides: python-pycryptodome
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pycryptodome
+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 pycryptodome
+All modules are installed under the ``Crypto`` package.
+Check the pycryptodomex_ project for the equivalent library that
+works under the ``Cryptodome`` 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 pycryptodome
+Provides: python3-pycryptodome-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 pycryptodome
+All modules are installed under the ``Crypto`` package.
+Check the pycryptodomex_ project for the equivalent library that
+works under the ``Cryptodome`` 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 pycryptodome-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-pycryptodome -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..b82b81a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4596bf2c6cc6b6f9305f7bae1780e0fc pycryptodome-3.17.tar.gz