packages: python-Crypto/python-Crypto.spec, python-Crypto/python-Crypto-war...

glen glen at pld-linux.org
Sat Jul 17 20:48:08 CEST 2010


Author: glen                         Date: Sat Jul 17 18:48:08 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 2.1.0, new home, new maintainer, clarified license

---- Files affected:
packages/python-Crypto:
   python-Crypto.spec (1.26 -> 1.27) , python-Crypto-warn.patch (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/python-Crypto/python-Crypto.spec
diff -u packages/python-Crypto/python-Crypto.spec:1.26 packages/python-Crypto/python-Crypto.spec:1.27
--- packages/python-Crypto/python-Crypto.spec:1.26	Thu Jul  8 10:05:30 2010
+++ packages/python-Crypto/python-Crypto.spec	Sat Jul 17 20:48:03 2010
@@ -1,31 +1,32 @@
 # $Revision$, $Date$
-
 %define		module	Crypto
-
-Summary:	Python Cryptography Toolkit
+Summary:	PyCrypto - The Python Cryptography Toolkit
 Summary(pl.UTF-8):	Kryptograficzny przybornik dla języka Python
 Name:		python-%{module}
-Version:	2.0.1
-Release:	8
-License:	Free
+Version:	2.1.0
+Release:	1
+# Mostly Public Domain apart from parts of HMAC.py and setup.py, which are Python
+License:	Public Domain and Python
 Group:		Development/Languages/Python
-Source0:	http://www.amk.ca/files/python/crypto/pycrypto-%{version}.tar.gz
-# Source0-md5:	4d5674f3898a573691ffb335e8d749cd
-Patch0:		%{name}-warn.patch
-URL:		http://www.amk.ca/python/code/crypto.html
+Source0:	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
+# Source0-md5:	1d3eb04f06e6f09a080bc37fb019f9bf
+URL:		http://www.dlitz.net/software/pycrypto/
 BuildRequires:	python
 BuildRequires:	python-devel >= 2.2
 BuildRequires:	python-modules
 BuildRequires:	rpm-pythonprov
-%pyrequires_eq	python-modules
+BuildRequires:	rpmbuild(macros) >= 1.219
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# Don't want provides for python shared objects
+%define		_noautoprovfiles	%{py_sitedir}/%{module}/.*/.*.so
+
 %description
 The Toolkit is a collection of cryptographic algorithms and protocols,
 implemented for use from Python. Among the contents of the package:
 - hash functions: MD2, MD4, RIPEMD
-- block encryption algorithms: AES, ARC2, Blowfish, CAST, DES, Triple-DES,
-  IDEA, RC5
+- 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
@@ -37,8 +38,8 @@
 Ten przybornik jest zbiorem kryptograficznych algorytmów i protokołów
 zaimplementowanych dla języka Python. Pakiet zawiera między innymi:
 - funkcje haszujące: MD2, MD4, RIPEMD
-- blokowe algorytmy szyfrujące: AES,ARC2, Blowfish, CAST, DES, Triple-DES,
-  IDEA, RC5
+- blokowe algorytmy szyfrujące: AES,ARC2, Blowfish, CAST, DES,
+  Triple-DES, IDEA, RC5
 - strumieniowe algorytmu szyfrujące: ARC4, zwykły XOR
 - algorytmy z kluczem publicznym: RSA, DSA,ElGamal, qNEW
 - protokoły: przekształcenia wszystko-albo-nic, chaffing/winnowing
@@ -48,37 +49,43 @@
 
 %prep
 %setup -q -n pycrypto-%{version}
-%patch0 -p1
 
 %build
-CFLAGS="%{rpmcflags}"
-export CFLAGS
-python setup.py build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitedir}
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
 
-python setup.py install \
-	--root=$RPM_BUILD_ROOT --optimize=2
+%py_postclean
 
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{module}{,/*}/*.py
+rm -rf $RPM_BUILD_ROOT%{py_sitedir}/Crypto/SelfTest
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ACKS ChangeLog README TODO Doc
+%doc ACKS COPYRIGHT ChangeLog README TODO Doc
 %dir %{py_sitedir}/%{module}
 %{py_sitedir}/%{module}/*.py[co]
 %dir %{py_sitedir}/%{module}/Cipher
 %dir %{py_sitedir}/%{module}/Hash
 %dir %{py_sitedir}/%{module}/Protocol
 %dir %{py_sitedir}/%{module}/PublicKey
+%dir %{py_sitedir}/%{module}/Random
+%dir %{py_sitedir}/%{module}/Random/Fortuna
+%dir %{py_sitedir}/%{module}/Random/OSRNG
 %dir %{py_sitedir}/%{module}/Util
 %attr(755,root,root) %{py_sitedir}/%{module}/*/*.so
 %{py_sitedir}/%{module}/*/*.py[co]
+%{py_sitedir}/%{module}/*/*/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/pycrypto-*.egg-info
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -86,6 +93,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2010/07/17 18:48:03  glen
+- up to 2.1.0, new home, new maintainer, clarified license
+
 Revision 1.26  2010/07/08 08:05:30  arekm
 - release 8
 
@@ -140,7 +150,7 @@
 - Version 1.9a6-2.
 
 Revision 1.9  2004/07/28 08:03:15  troll
-- removed %%include /usr/lib/rpm/macros.python
+- removed %include /usr/lib/rpm/macros.python
 
 Revision 1.8  2004/07/26 18:15:29  zboczuch
 - massive attack: s/CLFAGS/CFLAGS/
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-Crypto/python-Crypto.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list