forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cascade-toolfile.spec
35 lines (29 loc) · 953 Bytes
/
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
### 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@">
<lib name="cascade_merged"/>
<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>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="root_cxxdefaults"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post