File python-crypto.spec of Package python-crypto

#
# spec file for package python-crypto (Version 2.0.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           python-crypto
BuildRequires:  python-devel
Url:            http://www.dlitz.net/software/pycrypto/
License:        Python Copyright
Group:          Development/Libraries/Python
AutoReqProv:    on
Version:        2.0.1
Release:        28.<RELEASE115>
Summary:        Collection of cryptographic algorithms and protocols, implemented for use from Python
Source:         pycrypto-%{version}.tar.bz2
Patch0:         pycrypto-2.0.1-ssize.patch
Patch1:         pycrypto-2.0.1-arc2.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
The package contains: * Hash functions: MD2, MD4, RIPEMD, SHA256.

* 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).



Authors:
--------
    A.M. Kuchling

%prep
%setup -n pycrypto-%{version}
%patch0
%patch1

%build
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc ACKS ChangeLog LICENSE MANIFEST PKG-INFO README TODO

%changelog
* Tue Mar 10 2009 matejcik@suse.cz
- fixed buffer overflow in ARC2 module (CVE-2009-0544,
  bnc#483345 )
* Thu Oct 19 2006 jmatejek@suse.cz
- minor fixes for better 64bit PEP353 compatibility
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 dmueller@suse.de
- don't build as root
* Mon Oct 10 2005 jmatejek@suse.cz
- update to 2.0.1
* Tue Feb 08 2005 tcrhak@suse.cz
- created new package
openSUSE Build Service is sponsored by