ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-pycrypto.spec
(Generate patch)

Comparing COMP/CMSDIST/py2-pycrypto.spec (file contents):
Revision 1.4 by eulisse, Tue Jun 26 16:17:56 2007 UTC vs.
Revision 1.6 by lat, Mon May 23 15:59:45 2011 UTC

# Line 1 | Line 1
1   ### RPM external py2-pycrypto 2.0.1
2 + ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3 +
4   %define downloadn pycrypto
5   Requires: python gmp
4 ## INITENV +PATH PYTHONPATH %i/lib/python%{pythonv}`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
5 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f 1,2)
6   Source: http://www.amk.ca/files/python/crypto/%downloadn-%realversion.tar.gz
7 Patch: py2-pycrypto-setup
7  
8   %prep
9   %setup -n %downloadn-%realversion
10 < %patch0 -p0
10 >
11 > cat >> setup.cfg <<- EOF
12 > [build_ext]
13 > include_dirs = $GMP_ROOT/include
14 > library_dirs = $GMP_ROOT/lib
15 > EOF
16 >
17   %build
18 + python setup.py build
19 +
20   %install
21   python setup.py install --prefix=%i
22 < perl -p -i -e "s|^#!.*python(.*)|#!/usr/bin/env python$1|" `grep -r -e "^#\!.*python.*" %i | cut -d: -f1`
22 > find %i -name '*.egg-info' -exec rm {} \;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines