forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmssw-toolfile.spec
38 lines (33 loc) · 1.41 KB
/
cmssw-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 cms cmssw-toolfile 3.0
Requires: cmssw
%prep
%build
%install
mkdir -p %i/etc/scram.d
cat << \EOF_TOOLFILE >%i/etc/scram.d/cmssw.xml
<tool name="cmssw" version="@TOOL_VERSION@" type="scram">
<client>
<environment name="CMSSW_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CMSSW_BASE/lib/$SCRAM_ARCH"/>
<environment name="CMSSW_BINDIR" default="$CMSSW_BASE/bin/$SCRAM_ARCH"/>
<environment name="INCLUDE" default="$CMSSW_BASE/src"/>
<environment name="INCLUDE" default="$CMSSW_BASE/include/$SCRAM_ARCH/include" handler="warn"/>
</client>
<runtime name="@OS_RUNTIME_LDPATH_NAME@" value="$CMSSW_BASE/biglib/$SCRAM_ARCH" type="path"/>
<runtime name="@OS_RUNTIME_LDPATH_NAME@" value="$CMSSW_BASE/lib/$SCRAM_ARCH" type="path"/>
<runtime name="PATH" value="$CMSSW_BINDIR" type="path"/>
<runtime name="PYTHON27PATH" value="$LIBDIR" type="path"/>
<runtime name="PYTHON3PATH" value="$LIBDIR" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$CMSSW_BASE/src" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$CMSSW_BASE/include/$SCRAM_ARCH/include" type="path" handler="warn"/>
<runtime name="CMSSW_FULL_RELEASE_BASE" value="$CMSSW_BASE"/>
<use name="root_cxxdefaults"/>
</tool>
EOF_TOOLFILE
export OS_RUNTIME_LDPATH_NAME="LD_LIBRARY_PATH"
case %cmsplatf in
osx* )
export OS_RUNTIME_LDPATH_NAME="DYLD_FALLBACK_LIBRARY_PATH"
;;
esac
## IMPORT scram-tools-post