2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
31f34db4 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Summary: The Python Cryptography Toolkit.
Name: pycrypto |
1c6e7732 |
Version: 2.6.1 |
ec12f2cf |
Release: 4%{?dist} |
1c6e7732 |
License: Public Domain and Python
URL: http://www.pycrypto.org/
Source0: https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/%{name}-%{version}.tar.gz
%define sha1 pycrypto=aeda3ed41caf1766409d4efc689b9ca30ad6aeb2 |
9fd86ac4 |
Patch0: pycrypto-2.6.1-CVE-2013-7459.patch |
ec12f2cf |
Patch1: pycrypto-2.6.1-CVE-2018-6594.patch |
31f34db4 |
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon |
09637bce |
BuildRequires: python-setuptools
BuildRequires: python2-devel
Requires: python2
%description |
ec12f2cf |
This is a collection of both secure hash functions (such as SHA256 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.). |
31f34db4 |
%package -n python3-pycrypto
Summary: python3-pycrypto
BuildRequires: python3-devel |
2d879f6b |
BuildRequires: python3-libs |
31f34db4 |
Requires: python3
%description -n python3-pycrypto
Python 3 version. |
09637bce |
%prep
%setup -q |
9fd86ac4 |
%patch0 -p1 |
ec12f2cf |
%patch1 -p1 |
09637bce |
%build |
2d879f6b |
python2 setup.py build |
31f34db4 |
python3 setup.py build |
09637bce |
%install |
2d879f6b |
python2 setup.py install -O1 --root=%{buildroot} --prefix=/usr |
31f34db4 |
python3 setup.py install -O1 --root=%{buildroot} --prefix=/usr |
09637bce |
|
dd9fa153 |
%check |
2d879f6b |
python2 setup.py test |
31f34db4 |
python3 setup.py test |
dd9fa153 |
|
09637bce |
%files
%defattr(-,root,root) |
2d879f6b |
%{python2_sitelib}/* |
31f34db4 |
%files -n python3-pycrypto
%defattr(-, root, root)
%{python3_sitelib}/* |
09637bce |
%changelog |
ec12f2cf |
* Thu Nov 29 2018 Siju Maliakkal <smaliakkal@vmware.com> 2.6.1-4
- Apply patch for CVE-2018-6594 |
9fd86ac4 |
* Thu Jul 20 2017 Anish Swaminathan <anishs@vmware.com> 2.6.1-3
- Apply patch for CVE-2013-7459 |
1c6e7732 |
* Thu Jul 13 2017 Divya Thaluru <dthaluru@vmware.com> 2.6.1-2
- Downgraded to stable version 2.6.1 |
2d879f6b |
* Wed May 31 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.7a1-5
- Using python2 explicitly while building |
31f34db4 |
* Mon Feb 27 2017 Xiaolin Li <xiaolinl@vmware.com> 2.7a1-4
- Added python3 site-packages.
* Mon Oct 03 2016 ChangLee <changLee@vmware.com> 2.7a1-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.7a1-2
- GA - Bump release of all rpms |
53e778c7 |
* Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 2.7a1-1
- Updated to version 2.7a1 |
31f34db4 |
* Tue Dec 15 2015 Xiaolin Li <xiaolinl@vmware.com> 2.6.1-1 |
09637bce |
- Initial build. First version |