From dd5125f53ada4b8cce6dfd44ab47e1d651899d73 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: May 11 2011 13:39:31 +0000 Subject: Rebuild with re-rolled upstream tarball - Upstream rolled new tarball with top-level directory restored - Nobody else likes macros for commands --- diff --git a/.gitignore b/.gitignore index b0333ca..653ee45 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/pycrypto-2.3.tar.gz +/pycrypto-[0-9.]*.tar.gz diff --git a/python-crypto.spec b/python-crypto.spec index 7953910..5248ab6 100644 --- a/python-crypto.spec +++ b/python-crypto.spec @@ -4,7 +4,7 @@ Summary: Cryptography library for Python Name: python-crypto Version: 2.3 -Release: 4%{?dist} +Release: 5%{?dist} # Mostly Public Domain apart from parts of HMAC.py and setup.py, which are Python License: Public Domain and Python Group: Development/Libraries @@ -14,7 +14,7 @@ Patch0: python-crypto-2.2-optflags.patch Patch1: pycrypto-2.3-lib64.patch Provides: pycrypto = %{version}-%{release} BuildRequires: python2-devel >= 2.2, gmp-devel >= 4.1 -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n) +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(id -nu) # Don't want provides for python shared objects %{?filter_provides_in: %filter_provides_in %{python_sitearch}/Crypto/.*\.so} @@ -22,10 +22,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n) %description Python-crypto is a collection of both secure hash functions (such as MD5 and -SHA), and various encryption algorithms (AES, DES, RSA, ElGamal etc.). +SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.). %prep -%setup -n pycrypto-%{version} -q -c +%setup -n pycrypto-%{version} -q # Use distribution compiler flags rather than upstream's %patch0 -p1 @@ -36,21 +36,20 @@ SHA), and various encryption algorithms (AES, DES, RSA, ElGamal etc.). %endif # Remove spurious shellbangs -%{__sed} -i -e '\|^#!/usr/local/bin/python| d' lib/Crypto/Util/RFC1751.py +sed -i -e '\|^#!/usr/local/bin/python| d' lib/Crypto/Util/RFC1751.py # Fix permissions for debuginfo -%{__chmod} -x src/_fastmath.c +chmod -c -x src/_fastmath.c %build CFLAGS="%{optflags} -fno-strict-aliasing" %{__python} setup.py build %install -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Remove group write permissions on shared objects -/usr/bin/find %{buildroot}%{python_sitearch} -name '*.so' \ - -exec %{__chmod} g-w {} \; +find %{buildroot}%{python_sitearch} -name '*.so' -exec chmod -c g-w {} \; # See if there's any egg-info if [ -f %{buildroot}%{python_sitearch}/pycrypto-%{version}-py%{pythonver}.egg-info ]; then @@ -66,7 +65,7 @@ PYTHONPATH=%{buildroot}%{python_sitearch} %{__python} pct-speedtest.py %endif %clean -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} %files -f egg-info %defattr(-,root,root,-) @@ -74,6 +73,10 @@ PYTHONPATH=%{buildroot}%{python_sitearch} %{__python} pct-speedtest.py %{python_sitearch}/Crypto/ %changelog +* Wed May 11 2011 Paul Howarth - 2.3-5 +- Upstream rolled new tarball with top-level directory restored +- Nobody else likes macros for commands + * Tue Feb 08 2011 Fedora Release Engineering - 2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index be38404..f6b6758 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c28500ebcf3a9a9b89ec6086fe397c70 pycrypto-2.3.tar.gz +2b811cfbfc342d83ee614097effb8101 pycrypto-2.3.tar.gz