forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clhep-toolfile.spec
34 lines (29 loc) · 1009 Bytes
/
clhep-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 clhep-toolfile 1.0
Requires: clhep
%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/clhep.xml
<tool name="clhep" version="@TOOL_VERSION@">
<info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/>
<lib name="CLHEP"/>
<client>
<environment name="CLHEP_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CLHEP_BASE/lib"/>
<environment name="INCLUDE" default="$CLHEP_BASE/include"/>
</client>
<runtime name="CLHEP_PARAM_PATH" value="$CLHEP_BASE"/>
<runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$CLHEP_BASE/include" type="path"/>
</tool>
EOF_TOOLFILE
cat << \EOF_TOOLFILE >%i/etc/scram.d/clhepheader.xml
<tool name="clhepheader" version="@TOOL_VERSION@">
<info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/>
<client>
<environment name="CLHEPHEADER_BASE" default="@TOOL_ROOT@"/>
<environment name="INCLUDE" default="$CLHEPHEADER_BASE/include"/>
</client>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post