File python-pycryptodomex.spec of Package python-pycryptodomex
# Created by pyp2rpm-3.2.3
%global pypi_name pycryptodomex
Name: python-%{pypi_name}
Version: 3.4.7
Release: 1%{?dist}
Summary: Cryptographic library for Python
License: None
URL: http://www.pycryptodome.org
Source0: https://pypi.io/packages/source/p/pycryptodomex/pycryptodomex-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%global __provides_exclude_from ^(%{python2_sitearch}/Cryptodome/.*/.*\.so)$
%description
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%install
%py2_install
%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE.rst
%endif
%doc lib/Crypto/SelfTest/Signature/test_vectors/ECDSA/README.txt lib/Crypto/SelfTest/Hash/test_vectors/keccak/readme.txt README.rst
%{python2_sitearch}/Cryptodome
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Tue Dec 26 2017 Yunfei Shi <shiyf2@lenovo.com> - 3.4.7-1
- Initial package.