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

Comparing COMP/CMSDIST/scons.spec (file contents):
Revision 1.4 by valya, Mon Jul 27 03:01:53 2009 UTC vs.
Revision 1.7 by diego, Wed Oct 6 14:09:09 2010 UTC

# Line 1 | Line 1
1   ### RPM external scons 1.2.0
2 + ## INITENV +PATH PYTHONPATH %i/lib/%n-%realversion
3   Source: http://prdownloads.sourceforge.net/scons/scons-%realversion.tar.gz
4   Requires: python
5  
6   %prep
7   %setup -n scons-%realversion
8 +
9   %build
8 %install
9 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
10 #python setup.py install --prefix=%i
10   python setup.py build
12 mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
13 mkdir -p %i/bin
14 mv build/scripts*/scons %i/bin
11  
12 < mkdir -p %i/etc/profile.d/
13 < # This will generate the correct dependencies-setup.sh/dependencies-setup.csh
14 < # using the information found in the Requires statements of the different
15 < # specs and their dependencies.
20 < echo '#!/bin/sh' > %{i}/etc/profile.d/dependencies-setup.sh
21 < echo '#!/bin/tcsh' > %{i}/etc/profile.d/dependencies-setup.csh
22 < echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
23 < for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
24 < do
25 <    case X$tool in
26 <        Xdistcc|Xccache )
27 <        ;;
28 <        * )
29 <            toolcap=`echo $tool | tr a-z- A-Z_`
30 <            eval echo ". $`echo ${toolcap}_ROOT`/etc/profile.d/init.sh" >> %{i}/etc/profile.d/dependencies-setup.sh
31 <            eval echo "source $`echo ${toolcap}_ROOT`/etc/profile.d/init.csh" >> %{i}/etc/profile.d/dependencies-setup.csh
32 <        ;;
33 <    esac
34 < done
35 < perl -p -i -e 's|\. /etc/profile\.d/init\.sh||' %{i}/etc/profile.d/dependencies-setup.sh
36 < perl -p -i -e 's|source /etc/profile\.d/init\.csh||' %{i}/etc/profile.d/dependencies-setup.csh
37 <
38 < %post
39 < %{relocateConfig}etc/profile.d/dependencies-setup.sh
40 < %{relocateConfig}etc/profile.d/dependencies-setup.csh
12 > %install
13 > python setup.py install --prefix=%i
14 > egrep -r -l '^#!.*python' %i | xargs perl -p -i -e 's{^#!.*python.*}{#!/usr/bin/env python}'
15 > find %i -name '*.egg-info' -exec rm {} \;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines