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.2 by diego, Thu Jul 15 10:26:20 2010 UTC vs.
Revision 1.3 by diego, Wed Oct 6 13:52:48 2010 UTC

# Line 1 | Line 1
1   ### RPM external py2-setuptools 0.6c9
2 ## INITENV +PATH PATH %i/bin
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 %build
10 %install
11 export PYTHONPATH=$PYTHONPATH:%i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
12 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
13 python setup.py install --prefix=%i
14
15 # Fixed static paths to python
16 perl -p -i -e "s|#!.*/python|#!/usr/bin/env python|" %i/bin/*
9  
10 < # This will generate the correct dependencies-setup.sh/dependencies-setup.csh
11 < # using the information found in the Requires statements of the different
20 < # specs and their dependencies.
21 < rm -rf %i/etc/profile.d
22 < mkdir -p %i/etc/profile.d
23 < for x in %pkgreqs; do
24 <  case $x in /* ) continue ;; esac
25 <  p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
26 <  echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
27 <  echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
28 < done
29 <
30 < %post
31 < %{relocateConfig}etc/profile.d/dependencies-setup.sh
32 < %{relocateConfig}etc/profile.d/dependencies-setup.csh
10 > %build
11 > python setup.py build
12  
13 + %install
14 + python setup.py install --prefix=%i --single-version-externally-managed --record=/dev/null
15 + egrep -r -l '^#!.*python' %i | xargs perl -p -i -e 's{^#!.*python.*}{#!/usr/bin/env python}'
16 + find %i -name '*.egg-info' -exec rm {} \;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines