Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > 1f26a92597d04c3f27351069d7828ce8 > files > 3

pycrypto-2.0-1mdk.src.rpm

%define version 2.0
%define release 1mdk

Summary:	Python interface to various crypto algorithms and protocols
Name:		pycrypto
Version:	%{version}
Release:	%{release}
Source0:	http://www.amk.ca/files/python/crypto/%{name}-%{version}.tar.bz2
Patch0:		%{name}-1.9a6-64bit.patch.bz2
License:	Public Domain
Group:		Development/Python
URL:		http://www.amk.ca/python/code/crypto.html
BuildRequires:	python-devel >= 2.2
BuildRequires:	gmp-devel
Requires:	python >= 2.2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The Toolkit is a collection of cryptographic algorithms and protocols,
implemented for use from Python. The current release is 1.9alpha6. Among
the contents of the package:

 * Hash functions: MD2, MD4, RIPEMD.
 * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES, Triple-
   DES, IDEA, RC5.
 * Stream encryption algorithms: ARC4, simple XOR.
 * Public-key algorithms: RSA, DSA, ElGamal, qNEW.
 * Protocols: All-or-nothing transforms, chaffing/winnowing.
 * Miscellaneous: RFC1751 module for converting 128-key keys into a set
   of English words, primality testing.
 * Some demo programs (currently all quite old and outdated).

%prep
%setup -q
%patch0 -p1 -b .64bit
perl -pi -e 's|/usr/local/bin/|%_bindir/|' Util/RFC1751.py 

%build
CFLAGS="%optflags" python setup.py build
python test.py

%install
rm -rf %{buildroot}
python setup.py install --root="%{buildroot}"

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog README LICENSE README TODO
%{_libdir}/python%{pyver}/site-packages/Crypto

%changelog
* Mon Feb 21 2005 Michael Scherer <misc@mandrake.org> 2.0-1mdk
- New release 2.0
- make it rpmbuildupdatable
- remove signature, and compress to bzip2
- add test

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 1.9a6-3mdk
- Rebuild for new python

* Mon Feb 09 2004 Abel Cheung <deaddog@deaddog.org> 1.9a6-2mdk
- Fix directory ownership
- Fix license
- Use vanilla tar.gz for signature verification (Source1)
- Patch0: Search extra library paths for gmp in 64bit arch

* Wed Sep 17 2003 Han Boetes <han@linux-mandrake.com> 1.9a6-1mdk
- initial cooker contrib
- You know this is a pythone-twisted dep!
- Let me add a few more exclamationmarks. !!!!
- Now try ``conch ssh-host-foo'' :)