[Erp5-report] r25659 - /spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 23 14:02:13 CET 2009
Author: kazuhiko
Date: Mon Feb 23 14:02:07 2009
New Revision: 25659
URL: http://svn.erp5.org?rev=25659&view=rev
Log:
- sync with python-pycrypto-2.0.1-4.1mdv2009.0:
P1: security fix for CVE-2009-0544
Modified:
spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec
Modified: spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec
URL: http://svn.erp5.org/spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec?rev=25659&r1=25658&r2=25659&view=diff
==============================================================================
--- spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec [utf8] (original)
+++ spec/mandriva/python2.4-pycrypto/python2.4-pycrypto.spec [utf8] Mon Feb 23 14:02:07 2009
@@ -1,20 +1,22 @@
-%define version 2.0.1
-%define realname pycrypto
+%define subrel 1
+%define oname pycrypto
+%define py_platsitedir %{_libdir}/python2.4/site-packages
Summary: Python interface to various crypto algorithms and protocols
-Name: python2.4-%{realname}
-Version: %{version}
-Release: %mkrel 3
-Source0: http://www.amk.ca/files/python/crypto/%{realname}-%{version}.tar.gz
-Source1: http://www.amk.ca/files/python/crypto/%{realname}-%{version}.sig
-Patch0: %{realname}-1.9a6-64bit.patch
+Name: python2.4-%{oname}
+Version: 2.0.1
+Release: %mkrel 4
+Source0: http://www.amk.ca/files/python/crypto/%{oname}-%{version}.tar.gz
+Source1: http://www.amk.ca/files/python/crypto/%{oname}-%{version}.sig
+Patch0: pycrypto-1.9a6-64bit.patch
+Patch1: pycrypto-CVE-2009-0544.patch
License: Public Domain
Group: Development/Python
URL: http://www.amk.ca/python/code/crypto.html
BuildRequires: python2.4-devel
BuildRequires: gmp-devel
Requires: python2.4
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRoot: %{_tmppath}/%{oname}-%{version}-%{release}-buildroot
%description
The Toolkit is a collection of cryptographic algorithms and protocols,
@@ -32,17 +34,18 @@
* Some demo programs (currently all quite old and outdated).
%prep
-%setup -q -n %{realname}-%{version}
+%setup -q -n %{oname}-%{version}
%patch0 -p1 -b .64bit
-perl -pi -e 's|/usr/local/bin/|%_bindir/|' Util/RFC1751.py
+%patch1 -p1 -b .cve-2009-0544
+perl -pi -e 's|/usr/local/bin/|%{_bindir}/|' Util/RFC1751.py
%build
-CFLAGS="%optflags" python2.4 setup.py build
+CFLAGS="%{optflags}" python2.4 setup.py build
python2.4 test.py
%install
rm -rf %{buildroot}
-python2.4 setup.py install --root="%{buildroot}"
+python2.4 setup.py install --root="%{buildroot}" --compile --optimize=2
%clean
rm -rf %{buildroot}
@@ -50,12 +53,16 @@
%files
%defattr(-,root,root)
%doc ChangeLog README LICENSE TODO
-%{_libdir}/python2.4/site-packages/*
+%{py_platsitedir}/*
%changelog
+* Mon Feb 23 2009 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 2.0.1-4.1nxd2009.0
+- sync with python-pycrypto-2.0.1-4.1mdv2009.0:
+ P1: security fix for CVE-2009-0544
+
* Fri Jul 25 2008 Yoshinori Okuji <yo at nexedi.com> 2.0.1-3mdv2008.1
- transformed for python2.4.
More information about the Erp5-report
mailing list