Revision: | 1.6 |
Committed: | Tue Nov 3 15:02:46 2009 UTC (15 years, 5 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | pe20091110b-for33X-slc5-gcc434, pe20091110b-for33X-slc4-gcc345, pe20091110b-for33X-slc4-gcc432, pe20091108c-34X-slc5-gcc434, pe20091108c-34X-slc4-gcc432, pe20091108b-34X-slc5-gcc434, pe20091108b-34X-slc4-gcc432, pe20091108a-34X-slc4-gcc432, pe20091106a-34X-slc5-gcc434, pe20091106a-34X-slc4-gcc432, BUILDBOT_01, CERNOIDv02, pe20091103d-34X-slc5-gcc434, pe20091103d-34X-slc4-gcc432, pe20091103c-34X-slc5-gcc434, pe20091103c-34X-slc4-gcc432, pe20091103b-slc4-gcc432, pe20091103a-slc5-gcc434, pe20091103a-slc4-gcc432, pe20091103a--slc4-gcc432, pe20091103a-for34X |
Changes since 1.5: | +6 -3 lines |
Log Message: | Derive python directory name from PYTHON_VERSION instead of hardcoding it. |
# | Content |
---|---|
1 | ### RPM external sip 4.8.2 |
2 | ## INITENV +PATH PYTHONPATH %i/lib/python$(echo $PYTHON_VERSION |cut -d. -f 1,2)/site-packages |
3 | Source: http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-%realversion.tar.gz |
4 | Requires: python |
5 | %prep |
6 | %setup -n sip-%realversion |
7 | |
8 | %build |
9 | python ./configure.py -v %i/share -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages -e %i/include |
10 | make %makeprocesses |
11 | |
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 | |
31 | %post |
32 | %{relocateConfig}etc/scram.d/sip |
33 | %{relocateConfig}lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/sipconfig.py |