12 |
|
%install |
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> |
26 |
– |
EOF_TOOLFILE |
27 |
– |
|
28 |
– |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
29 |
– |
perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/* |
30 |
– |
|
15 |
|
%post |
16 |
< |
%{relocateConfig}etc/scram.d/sip |
33 |
< |
%{relocateConfig}lib/python2.4/site-packages/sipconfig.py |
16 |
> |
%{relocateConfig}lib/python2.6/site-packages/sipconfig.py |