From d7fa8f724d9c1a637c500c0bc2a4b07a396e1c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E5=B0=8F=E5=93=A5?= Date: Tue, 10 Nov 2020 14:10:11 +0800 Subject: [PATCH] add python2-pycryptodome --- python-pycryptodome.spec | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/python-pycryptodome.spec b/python-pycryptodome.spec index 6327b2e..1f2a028 100644 --- a/python-pycryptodome.spec +++ b/python-pycryptodome.spec @@ -3,7 +3,7 @@ Name: python-pycryptodome Version: 3.9.7 -Release: 3 +Release: 4 Summary: Cryptographic library for Python License: BSD, Public Domain, Apache URL: https://www.pycryptodome.org @@ -45,6 +45,17 @@ are implemented as C extensions. For more information, see the `homepage`_. All the code can be downloaded from `GitHub`_. +%package -n python2-%{pypi_name} +Summary: Cryptographic library for Python2 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-cffi +BuildRequires: gcc +BuildRequires: gdb + +%description -n python2-%{pypi_name} +%{description} + %package -n python3-%{pypi_name} Summary: Cryptographic library for Python3 Provides: python-%{pypi_name} @@ -62,11 +73,19 @@ BuildRequires: gdb %autosetup -n %{pypi_name}-%{version} %build +%py2_build %py3_build %install +%py2_install %py3_install +%files -n python2-%{pypi_name} +%doc AUTHORS.rst Changelog.rst README.rst +%license LICENSE.rst +%{python2_sitearch}/Crypto +%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info + %files -n python3-%{pypi_name} %doc AUTHORS.rst Changelog.rst README.rst %license LICENSE.rst @@ -74,6 +93,9 @@ BuildRequires: gdb %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Tue Nov 10 2020 shixuantong - 3.9.7-4 +- add python2-pycryptodome + * Mon Oct 26 2020 shixuantong - 3.9.7-3 - Adding the source code package and spec file - remove python2-pycryptodome