LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-crypto.spec of Package python-crypto (Project home:lenovo-lico:lico-dep:5.1:el6)

Summary:	Cryptography library for Python
Name:		python-crypto
Version:	2.6.1
Release:	1%{?dist}
# Mostly Public Domain apart from parts of HMAC.py and setup.py, which are Python
License:	Public Domain and Python
Group:		Development/Libraries
URL:		http://www.pycrypto.org/
Source0:	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
Patch0:		python-crypto-2.4-optflags.patch
Patch1:		python-crypto-2.4-fix-pubkey-size-divisions.patch
Provides:	pycrypto = %{version}-%{release}
BuildRequires:	gmp-devel >= 4.1
BuildRequires:  epel-rpm-macros
BuildRequires:  python2-devel
BuildRequires:  python-setuptools
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot-%(id -nu)

%{?filter_provides_in: %filter_provides_in %{python_sitearch}/Crypto/.*\.so}

%description
PyCrypto is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).

%prep
%setup -n pycrypto-%{version} -q

# Use distribution compiler flags rather than upstream's
%patch0 -p1

# Fix divisions within benchmarking suite:
%patch1 -p1

%build
%py_build

%install
%py_install

%files
%defattr(-,root,root,-)
%doc README TODO ACKS ChangeLog LEGAL/ COPYRIGHT Doc/
%{python_sitearch}/Crypto/
%{python_sitearch}/pycrypto-%{version}-py?.?.egg-info

%changelog
* Fri Dec 22 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.6.1-1
- Initial package.