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.5 by diego, Mon Apr 12 14:16:19 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
10 +
11   %install
12 < mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
13 < #python setup.py install --prefix=%i
14 < python setup.py build
15 < mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
16 < mkdir -p %i/bin
14 < mv build/scripts*/scons %i/bin
15 <
16 < mkdir -p %i/etc/profile.d/
17 < # This will generate the correct dependencies-setup.sh/dependencies-setup.csh
18 < # using the information found in the Requires statements of the different
19 < # 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
12 > #mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
13 > python setup.py install --prefix=%i
14 > #mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
15 >
16 > ## IMPORT common-install
17  
18   %post
19 < %{relocateConfig}etc/profile.d/dependencies-setup.sh
20 < %{relocateConfig}etc/profile.d/dependencies-setup.csh
19 > ## IMPORT common-post
20 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines