-
Notifications
You must be signed in to change notification settings - Fork 180
/
clhep-toolfile.spec
38 lines (33 loc) · 1.15 KB
/
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
35
36
37
38
### RPM external clhep-toolfile 2.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"/>
</client>
<use name="clhepheader"/>
</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>
<flags ROOTCLING_ARGS="-moduleMapFile=$(CLHEP_BASE)/include/module.modulemap"/>
<runtime name="CLHEP_PARAM_PATH" value="$CLHEPHEADER_BASE"/>
<runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<use name="root_cxxdefaults"/>
<flags SYSTEM_INCLUDE="1"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post