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

Comparing COMP/CMSDIST/sip.spec (file contents):
Revision 1.8 by elmer, Tue Nov 10 20:50:39 2009 UTC vs.
Revision 1.9 by muzaffar, Tue Apr 20 08:12:51 2010 UTC

# Line 13 | Line 13 | make %makeprocesses
13   make install
14  
15   mkdir -p %i/etc/scram.d
16 < cat << \EOF_TOOLFILE >%i/etc/scram.d/sip
17 < <doc type=BuildSystem::ToolDoc version=1.0>
18 < <Tool name=sip version=%v>
19 < <info url="http://www.riverbankcomputing.co.uk/software/sip/intro"></info>
20 < <Client>
21 < <Environment name=SIP_BASE default="%i"></Environment>
22 < </Client>
23 < <Runtime name=PYTHONPATH value="$SIP_BASE/lib/python@PYTHONV@/site-packages" type=path>
24 < <use name="python">
25 < </Tool>
16 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
17 >  <tool name="%n" version="%v">
18 >    <info url="http://www.riverbankcomputing.co.uk/software/sip/intro"/>
19 >    <client>
20 >      <environment name="SIP_BASE" default="%i"/>
21 >    </client>
22 >    <runtime name="PYTHONPATH" value="$SIP_BASE/lib/python@PYTHONV@/site-packages" type="path"/>
23 >    <use name="python"/>
24 >  </tool>
25   EOF_TOOLFILE
26  
27   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
28   perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
29  
30   %post
31 < %{relocateConfig}etc/scram.d/sip
31 > %{relocateConfig}etc/scram.d/%n.xml
32   %{relocateConfig}lib/python2.6/site-packages/sipconfig.py

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines