forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cascade-toolfile.spec
43 lines (37 loc) · 1.12 KB
/
cascade-toolfile.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
### RPM external cascade-toolfile 1.0
Requires: cascade
%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/cascade.xml
<tool name="cascade" version="@TOOL_VERSION@">
<architecture name="slc[^_]*_[^_]*_gcc4[0-3]">
<lib name="cascade2"/>
<lib name="bases"/>
<lib name="mycern"/>
</architecture>
<architecture name="slc[^_]*_[^_]*_gcc4[4-9]">
<lib name="cascade_merged"/>
</architecture>
<architecture name="osx">
<lib name="cascade_merged"/>
</architecture>
<client>
<environment name="CASCADE_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CASCADE_BASE/lib"/>
</client>
<runtime name="CASCADE_PDFPATH" value="$CASCADE_BASE/share"/>
<use name="f77compiler"/>
<use name="cascade_headers"/>
</tool>
EOF_TOOLFILE
cat << \EOF_TOOLFILE >%i/etc/scram.d/cascade_headers.xml
<tool name="cascade_headers" version="@TOOL_VERSION@">
<client>
<environment name="CASCADE_HEADERS_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$CASCADE_HEADERS_BASE/include"/>
</client>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post