From e2ad17eca1c3f6c6c5ebb1776bfd7b0afeae4b7c Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Aug 17 2005 19:10:43 +0000 Subject: Update to 2.0.1; Use Dist; Drop python-crypto-64bit-unclean.patch, similar patch was applied upstream --- diff --git a/.cvsignore b/.cvsignore index bf8d1f0..51df5ad 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pycrypto-2.0.tar.gz +pycrypto-2.0.1.tar.gz diff --git a/python-crypto.spec b/python-crypto.spec index 0b2764b..a55f2f6 100644 --- a/python-crypto.spec +++ b/python-crypto.spec @@ -1,21 +1,19 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -Summary: A cryptography library for Python. -Name: python-crypto -Version: 2.0 -Epoch: 0 -Release: 3 -License: Python License (CNRI Python License) -Group: Development/Libraries -URL: http://www.amk.ca/python/code/crypto.html -Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.tar.gz +Summary: Cryptography library for Python +Name: python-crypto +Version: 2.0.1 +Release: 1%{?dist} +License: Python License (CNRI Python License) +Group: Development/Libraries +URL: http://www.amk.ca/python/code/crypto.html +Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz Patch0: %{name}-x86_64-buildfix.patch -Patch1: %{name}-64bit-unclean.patch -BuildRequires: python >= 0:2.2 -BuildRequires: python-devel >= 0:2.2 -BuildRequires: gmp-devel >= 0:4.1 -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n) +BuildRequires: python >= 2.2 +BuildRequires: python-devel >= 2.2 +BuildRequires: gmp-devel >= 4.1 +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n) Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") %description @@ -23,33 +21,31 @@ Python-crypto is a collection of both secure hash functions (such as MD5 and SHA), and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.). -# The pre section. + %prep -%setup -n pycrypto-2.0 -q +%setup -n pycrypto-%{version} -q %ifarch x86_64 %patch0 -b .patch0 -%endif -%patch1 -b .patch1 -p 1 +%endif + -# The build section. %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build -# The install section. + %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT - find -name "*.py"|xargs %{__perl} -pi -e "s:/usr/local/bin/python:%{__python}:" -# The clean section. + %clean rm -rf $RPM_BUILD_ROOT -# The files section. -%files + +%files %defattr(-,root,root,-) -%doc README TODO ACKS ChangeLog LICENSE Doc Demo +%doc README TODO ACKS ChangeLog LICENSE Doc %{python_sitearch}/Crypto/*.py %{python_sitearch}/Crypto/*.pyc %ghost %{python_sitearch}/Crypto/*.pyo @@ -78,13 +74,23 @@ rm -rf $RPM_BUILD_ROOT %dir %{python_sitearch}/Crypto/PublicKey/ %dir %{python_sitearch}/Crypto/Util/ + %changelog -* Thu May 05 2005 Thorsten Leemhuis - 0:2.0-3 +* Wed Aug 17 2005 Thorsten Leemhuis - 0:2.0.1-1 +- Update to 2.0.1 +- Use Dist +- Drop python-crypto-64bit-unclean.patch, similar patch was applied + upstream + +* Thu May 05 2005 Thorsten Leemhuis - 0:2.0-4 - add python-crypto-64bit-unclean.patch (#156173) +* Mon Mar 21 2005 Seth Vidal - 0:2.0-3 +- iterate release for build on python 2.4 based systems + * Sat Dec 18 2004 Thorsten Leemhuis - 0:2.0-2 - Fix build on x86_64: use python_sitearch for files and patch source - to find gmp + to find gmp * Thu Aug 26 2004 Thorsten Leemhuis - 0:2.0-0.fdr.1 - Update to 2.00 diff --git a/sources b/sources index 6eba0d0..48224a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -55f9875c554ede75ad605d2c7504d94f pycrypto-2.0.tar.gz +4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz