1 |
### RPM configuration python-toolfile 2.4.2
|
2 |
## IMPORT scramtoolbox-common
|
3 |
|
4 |
Source: none
|
5 |
Requires: python
|
6 |
|
7 |
%build
|
8 |
%install
|
9 |
mkdir -p %toolConfDir %toolBoxDir/General
|
10 |
|
11 |
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
|
18 |
|
19 |
cat << \EOF_python_TOOLFILE > %toolBoxDir/General/python
|
20 |
<doc type=BuildSystem::ToolDoc version=1.0>
|
21 |
<tool name=%toolname version=%v>
|
22 |
<architecture name=macosx>
|
23 |
<lib name=python2.4>
|
24 |
</architecture>
|
25 |
<architecture name=osx>
|
26 |
<lib name=python2.4>
|
27 |
</architecture>
|
28 |
<architecture name=sl>
|
29 |
<lib name=python2.4>
|
30 |
</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>
|
54 |
</tool>
|
55 |
|
56 |
EOF_python_TOOLFILE
|
57 |
%files
|
58 |
%toolBoxDir/General/python
|
59 |
%toolConfDir/python.conf
|