forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
castor-toolfile.spec
35 lines (31 loc) · 981 Bytes
/
castor-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
### RPM external castor-toolfile 2.0
Requires: castor
%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/castor_header.xml
<tool name="castor_header" version="@TOOL_VERSION@">
<client>
<environment name="CASTOR_HEADER_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$CASTOR_HEADER_BASE/include"/>
<environment name="INCLUDE" default="$CASTOR_HEADER_BASE/include/shift"/>
</client>
</tool>
EOF_TOOLFILE
cat << \EOF_TOOLFILE >%i/etc/scram.d/castor.xml
<tool name="castor" version="@TOOL_VERSION@">
<lib name="shift"/>
<lib name="castorrfio"/>
<lib name="castorclient"/>
<lib name="castorcommon"/>
<client>
<environment name="CASTOR_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CASTOR_BASE/lib"/>
</client>
<runtime name="PATH" value="$CASTOR_BASE/bin" type="path"/>
<use name="castor_header"/>
<use name="libuuid"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post