-
Notifications
You must be signed in to change notification settings - Fork 184
/
Copy pathdd4hep-toolfile.spec
50 lines (42 loc) · 1.34 KB
/
dd4hep-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
43
44
45
46
47
48
49
50
### RPM external dd4hep-toolfile 1.0
Requires: dd4hep
%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/dd4hep-core.xml
<tool name="dd4hep-core" version="@TOOL_VERSION@">
<info url="https://github.com/AIDASoft/DD4hep"/>
<lib name="DDCore" />
<lib name="DDParsers" />
<client>
<environment name="DD4HEP_CORE_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$DD4HEP_CORE_BASE/lib"/>
<environment name="INCLUDE" default="$DD4HEP_CORE_BASE/include"/>
</client>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/>
<runtime name="PATH" value="$DD4HEP_CORE_BASE/bin" type="path"/>
<flags LISTCOMPONENTS="$(DD4HEP_CORE_BASE)/bin/listcomponents_dd4hep"/>
<flags cppdefines="DD4HEP_USE_GEANT4_UNITS=1"/>
<use name="root_cxxdefaults"/>
<use name="root"/>
<use name="boost"/>
<use name="xerces-c"/>
<use name="clhep"/>
</tool>
EOF_TOOLFILE
cat << \EOF_TOOLFILE >%i/etc/scram.d/dd4hep.xml
<tool name="dd4hep" version="@TOOL_VERSION@">
<lib name="DDAlign" />
<lib name="DDCond" />
<use name="dd4hep-core"/>
</tool>
EOF_TOOLFILE
cat << \EOF_TOOLFILE >%i/etc/scram.d/dd4hep-geant4.xml
<tool name="dd4hep-geant4" version="@TOOL_VERSION@">
<lib name="DDG4-static"/>
<use name="geant4core"/>
<use name="dd4hep-core"/>
</tool>
EOF_TOOLFILE
## IMPORT scram-tools-post