1 |
< |
### RPM configuration python-toolfile 2.4.2 |
2 |
< |
## IMPORT scramtoolbox-common |
3 |
< |
|
4 |
< |
Source: none |
1 |
> |
### RPM external python-toolfile 1.0 |
2 |
|
Requires: python |
3 |
+ |
%prep |
4 |
|
|
5 |
|
%build |
8 |
– |
%install |
9 |
– |
mkdir -p %toolConfDir %toolBoxDir/General |
6 |
|
|
7 |
< |
cat << \EOF_python_TOOLCONF_FRAGMENT > %toolConfDir/python.conf |
12 |
< |
TOOL:python |
13 |
< |
+PYTHON_BASE:${PYTHON_ROOT} |
14 |
< |
+PATH:${PYTHON_ROOT}/bin |
15 |
< |
+LIBDIR:${PYTHON_ROOT}/lib |
16 |
< |
+INCLUDE:${PYTHON_ROOT}/include |
17 |
< |
EOF_python_TOOLCONF_FRAGMENT |
7 |
> |
%install |
8 |
|
|
9 |
< |
cat << \EOF_python_TOOLFILE > %toolBoxDir/General/python |
10 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
11 |
< |
<tool name=%toolname version=%v> |
12 |
< |
<architecture name=macosx> |
13 |
< |
<lib name=python2.4> |
14 |
< |
</architecture> |
15 |
< |
<architecture name=osx> |
16 |
< |
<lib name=python2.4> |
17 |
< |
</architecture> |
18 |
< |
<architecture name=sl> |
19 |
< |
<lib name=python2.4> |
20 |
< |
</architecture> |
31 |
< |
<architecture name=win> |
32 |
< |
<lib name=python24> |
33 |
< |
</architecture> |
34 |
< |
<client> |
35 |
< |
<environment name=PYTHON_BASE> |
36 |
< |
The top of the Python distribution. |
37 |
< |
</environment> |
38 |
< |
<environment name=INCLUDE default="$PYTHON_BASE/include/python2.4"></environment> |
39 |
< |
<environment name=LIBDIR default="$PYTHON_BASE/lib" type=lib></environment> |
40 |
< |
<architecture name=macosx> |
41 |
< |
<environment name=PATH value="$PYTHON_BASE/bin" type=Runtime_path></environment> |
42 |
< |
</architecture> |
43 |
< |
<architecture name=osx> |
44 |
< |
<environment name=PATH value="$PYTHON_BASE/bin" type=Runtime_path></environment> |
45 |
< |
</architecture> |
46 |
< |
<architecture name=sl> |
47 |
< |
<environment name=PATH value="$PYTHON_BASE/bin" type=Runtime_path></environment> |
48 |
< |
</architecture> |
49 |
< |
<architecture name=win> |
50 |
< |
<environment name=PATH value="$PYTHON_BASE/" type=Runtime_path></environment> |
51 |
< |
</architecture> |
52 |
< |
</client> |
53 |
< |
<environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment> |
9 |
> |
mkdir -p %i/etc/scram.d |
10 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/python.xml |
11 |
> |
<tool name="python" version="@TOOL_VERSION@"> |
12 |
> |
<lib name="python2.6"/> |
13 |
> |
<client> |
14 |
> |
<environment name="PYTHON_BASE" default="@TOOL_ROOT@"/> |
15 |
> |
<environment name="LIBDIR" default="$PYTHON_BASE/lib"/> |
16 |
> |
<environment name="INCLUDE" default="$PYTHON_BASE/include/python@PYTHONV@"/> |
17 |
> |
<environment name="PYTHON_COMPILE" default="$PYTHON_BASE/lib/python@PYTHONV@/compileall.py"/> |
18 |
> |
</client> |
19 |
> |
<runtime name="PATH" value="$PYTHON_BASE/bin" type="path"/> |
20 |
> |
<use name="sockets"/> |
21 |
|
</tool> |
22 |
+ |
EOF_TOOLFILE |
23 |
+ |
|
24 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
25 |
|
|
26 |
< |
EOF_python_TOOLFILE |
57 |
< |
%files |
58 |
< |
%toolBoxDir/General/python |
59 |
< |
%toolConfDir/python.conf |
26 |
> |
## IMPORT scram-tools-post |