diff --git a/pycryptodomex-3.10.1.tar.gz b/pycryptodomex-3.10.1.tar.gz new file mode 100644 index 0000000..ec3d648 Binary files /dev/null and b/pycryptodomex-3.10.1.tar.gz differ diff --git a/pycryptodomex-3.9.7.tar.gz b/pycryptodomex-3.9.7.tar.gz deleted file mode 100644 index fc5d7fa..0000000 Binary files a/pycryptodomex-3.9.7.tar.gz and /dev/null differ diff --git a/python-pycryptodomex.spec b/python-pycryptodomex.spec index cd2334b..0984569 100644 --- a/python-pycryptodomex.spec +++ b/python-pycryptodomex.spec @@ -1,53 +1,35 @@ %global _empty_manifest_terminate_build 0 -Name: python-pycryptodomex -Version: 3.9.7 -Release: 2 -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/7f/3c/80cfaec41c3a9d0f524fe29bca9ab22d02ac84b5bfd6e22ade97d405bdba/pycryptodomex-3.9.7.tar.gz - +Name: python-pycryptodomex +Version: 3.10.1 +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/82/e2/a0f9f5452a59bafaa3420585f22b58a8566c4717a88c139af2276bb5695d/pycryptodomex-3.10.1.tar.gz %description PyCryptodome is a self-contained Python package of low-level cryptographic primitives. -PyCryptodome is a fork of PyCrypto. It brings several enhancements with -respect to the last official version of PyCrypto (2.6.1). -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. %package -n python3-pycryptodomex -Summary: Cryptographic library for Python -Provides: python-pycryptodomex -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-cffi -BuildRequires: gcc - +Summary: Cryptographic library for Python +Provides: python-pycryptodomex +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc %description -n python3-pycryptodomex PyCryptodome is a self-contained Python package of low-level cryptographic primitives. -PyCryptodome is a fork of PyCrypto. It brings several enhancements with -respect to the last official version of PyCrypto (2.6.1). -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. %package help -Summary: Development documents and examples for pycryptodomex -Provides: python3-pycryptodomex-doc +Summary: Cryptographic library for Python +BuildArch: noarch +Provides: python3-pycryptodomex-doc %description help -PyCryptodome is a self-contained Python package of low-level cryptographic primitives. -PyCryptodome is a fork of PyCrypto. It brings several enhancements with -respect to the last official version of PyCrypto (2.6.1). -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. +PyCryptodome is a self-contained Python package of low-level cryptographic primitives. %prep -%autosetup -n pycryptodomex-3.9.7 +%autosetup -n pycryptodomex-3.10.1 %build %py3_build @@ -61,25 +43,28 @@ 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 + 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 + 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 + 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 + 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 + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . +%check +%{__python3} setup.py test + %files -n python3-pycryptodomex -f filelist.lst %dir %{python3_sitearch}/* @@ -87,6 +72,9 @@ mv %{buildroot}/doclist.lst . %{_pkgdocdir} %changelog +* Tue Aug 03 2021 OpenStack_SIG - 3.10.1-1 +- Update vertion to 3.10.1 + * Wed Jul 21 2021 shixuantong - 3.9.7-2 - remove gdb from BuildRequires - Be More specific on BSD and Apache license