add python2-pycryptodome

This commit is contained in:
桐小哥 2020-11-10 14:10:11 +08:00 committed by Gitee
parent 26f0e17e3f
commit d7fa8f724d

View File

@ -3,7 +3,7 @@
Name: python-pycryptodome Name: python-pycryptodome
Version: 3.9.7 Version: 3.9.7
Release: 3 Release: 4
Summary: Cryptographic library for Python Summary: Cryptographic library for Python
License: BSD, Public Domain, Apache License: BSD, Public Domain, Apache
URL: https://www.pycryptodome.org URL: https://www.pycryptodome.org
@ -45,6 +45,17 @@ are implemented as C extensions.
For more information, see the `homepage`_. For more information, see the `homepage`_.
All the code can be downloaded from `GitHub`_. 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} %package -n python3-%{pypi_name}
Summary: Cryptographic library for Python3 Summary: Cryptographic library for Python3
Provides: python-%{pypi_name} Provides: python-%{pypi_name}
@ -62,11 +73,19 @@ BuildRequires: gdb
%autosetup -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_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} %files -n python3-%{pypi_name}
%doc AUTHORS.rst Changelog.rst README.rst %doc AUTHORS.rst Changelog.rst README.rst
%license LICENSE.rst %license LICENSE.rst
@ -74,6 +93,9 @@ BuildRequires: gdb
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog %changelog
* Tue Nov 10 2020 shixuantong <shixuantong@huawei.com> - 3.9.7-4
- add python2-pycryptodome
* Mon Oct 26 2020 shixuantong <shixuantong@huawei.com> - 3.9.7-3 * Mon Oct 26 2020 shixuantong <shixuantong@huawei.com> - 3.9.7-3
- Adding the source code package and spec file - Adding the source code package and spec file
- remove python2-pycryptodome - remove python2-pycryptodome