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

Comparing COMP/CMSDIST/py2-setuptools.spec (file contents):
Revision 1.1 by valya, Tue Feb 3 22:06:02 2009 UTC vs.
Revision 1.4 by lat, Mon May 23 15:59:45 2011 UTC

# Line 1 | Line 1
1   ### RPM external py2-setuptools 0.6c9
2 %define pythonv %(echo $PYTHON_VERSION | cut -f1,2 -d.)
2   ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
3  
4   Source: http://pypi.python.org/packages/source/s/setuptools/setuptools-%realversion.tar.gz
5   Requires: python
6 +
7   %prep
8   %setup -n setuptools-%realversion
9 +
10   %build
10 %install
11 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
11   python setup.py build
13 mv build/lib/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
14
12  
13 + %install
14 + python setup.py install --prefix=%i --single-version-externally-managed --record=/dev/null
15 + find %i -name '*.egg-info' -exec rm {} \;
16 + for f in %i/bin/easy_install*; do perl -p -i -e 's{.*}{#!/usr/bin/env python} if $. == 1 && m{#!.*/bin/python}' $f; done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines