1 |
< |
### RPM configuration clhep-toolfile 1.9.2.2 |
2 |
< |
## IMPORT scramtoolbox-common |
3 |
< |
|
4 |
< |
Source: none |
1 |
> |
### RPM external clhep-toolfile 1.0 |
2 |
|
Requires: clhep |
3 |
+ |
%prep |
4 |
|
|
5 |
|
%build |
6 |
+ |
|
7 |
|
%install |
9 |
– |
%define toolfilePath %toolBoxDir/General |
10 |
– |
mkdir -p %toolConfDir %toolfilePath |
8 |
|
|
9 |
< |
cat << \EOF_clhep_TOOLCONF_FRAGMENT > %toolConfDir/clhep.conf |
10 |
< |
TOOL:clhep |
11 |
< |
+CLHEP_BASE:${CLHEP_ROOT} |
12 |
< |
+PATH:${CLHEP_ROOT}/bin |
13 |
< |
+LIBDIR:${CLHEP_ROOT}/lib |
14 |
< |
+INCLUDE:${CLHEP_ROOT}/include |
15 |
< |
EOF_clhep_TOOLCONF_FRAGMENT |
9 |
> |
mkdir -p %i/etc/scram.d |
10 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/clhep.xml |
11 |
> |
<tool name="clhep" version="@TOOL_VERSION@"> |
12 |
> |
<info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/> |
13 |
> |
<lib name="CLHEP"/> |
14 |
> |
<client> |
15 |
> |
<environment name="CLHEP_BASE" default="@TOOL_ROOT@"/> |
16 |
> |
<environment name="LIBDIR" default="$CLHEP_BASE/lib"/> |
17 |
> |
<environment name="INCLUDE" default="$CLHEP_BASE/include"/> |
18 |
> |
</client> |
19 |
> |
<runtime name="CLHEP_PARAM_PATH" value="$CLHEP_BASE"/> |
20 |
> |
<runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$CLHEP_BASE/include" type="path"/> |
21 |
> |
</tool> |
22 |
> |
EOF_TOOLFILE |
23 |
|
|
24 |
< |
cat << \EOF_clhep_TOOLFILE > %toolfilePath/clhep |
25 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
26 |
< |
<tool name=%toolname version=%v> |
27 |
< |
<info url="http://cern.ch/clhep"></info> |
28 |
< |
<architecture name=macosx> |
29 |
< |
<lib name=CLHEP-Cast-1.9.2.2> |
30 |
< |
<lib name=CLHEP-Evaluator-1.9.2.2> |
27 |
< |
<lib name=CLHEP-Exceptions-1.9.2.2> |
28 |
< |
<lib name=CLHEP-GenericFunctions-1.9.2.2> |
29 |
< |
<lib name=CLHEP-Geometry-1.9.2.2> |
30 |
< |
<lib name=CLHEP-Matrix-1.9.2.2> |
31 |
< |
<lib name=CLHEP-Random-1.9.2.2> |
32 |
< |
<lib name=CLHEP-RandomObjects-1.9.2.2> |
33 |
< |
<lib name=CLHEP-RefCount-1.9.2.2> |
34 |
< |
<lib name=CLHEP-Vector-1.9.2.2> |
35 |
< |
</architecture> |
36 |
< |
<architecture name=osx> |
37 |
< |
<lib name=CLHEP-Cast-1.9.2.2> |
38 |
< |
<lib name=CLHEP-Evaluator-1.9.2.2> |
39 |
< |
<lib name=CLHEP-Exceptions-1.9.2.2> |
40 |
< |
<lib name=CLHEP-GenericFunctions-1.9.2.2> |
41 |
< |
<lib name=CLHEP-Geometry-1.9.2.2> |
42 |
< |
<lib name=CLHEP-Matrix-1.9.2.2> |
43 |
< |
<lib name=CLHEP-Random-1.9.2.2> |
44 |
< |
<lib name=CLHEP-RandomObjects-1.9.2.2> |
45 |
< |
<lib name=CLHEP-RefCount-1.9.2.2> |
46 |
< |
<lib name=CLHEP-Vector-1.9.2.2> |
47 |
< |
</architecture> |
48 |
< |
<architecture name=rh> |
49 |
< |
<lib name=CLHEP-Cast-1.9.2.2> |
50 |
< |
<lib name=CLHEP-Evaluator-1.9.2.2> |
51 |
< |
<lib name=CLHEP-Exceptions-1.9.2.2> |
52 |
< |
<lib name=CLHEP-GenericFunctions-1.9.2.2> |
53 |
< |
<lib name=CLHEP-Geometry-1.9.2.2> |
54 |
< |
<lib name=CLHEP-Matrix-1.9.2.2> |
55 |
< |
<lib name=CLHEP-Random-1.9.2.2> |
56 |
< |
<lib name=CLHEP-RandomObjects-1.9.2.2> |
57 |
< |
<lib name=CLHEP-RefCount-1.9.2.2> |
58 |
< |
<lib name=CLHEP-Vector-1.9.2.2> |
59 |
< |
</architecture> |
60 |
< |
<architecture name=cel> |
61 |
< |
<lib name=CLHEP-Cast-1.9.2.2> |
62 |
< |
<lib name=CLHEP-Evaluator-1.9.2.2> |
63 |
< |
<lib name=CLHEP-Exceptions-1.9.2.2> |
64 |
< |
<lib name=CLHEP-GenericFunctions-1.9.2.2> |
65 |
< |
<lib name=CLHEP-Geometry-1.9.2.2> |
66 |
< |
<lib name=CLHEP-Matrix-1.9.2.2> |
67 |
< |
<lib name=CLHEP-Random-1.9.2.2> |
68 |
< |
<lib name=CLHEP-RandomObjects-1.9.2.2> |
69 |
< |
<lib name=CLHEP-RefCount-1.9.2.2> |
70 |
< |
<lib name=CLHEP-Vector-1.9.2.2> |
71 |
< |
</architecture> |
72 |
< |
<architecture name=sl> |
73 |
< |
<lib name=CLHEP-Cast-1.9.2.2> |
74 |
< |
<lib name=CLHEP-Evaluator-1.9.2.2> |
75 |
< |
<lib name=CLHEP-Exceptions-1.9.2.2> |
76 |
< |
<lib name=CLHEP-GenericFunctions-1.9.2.2> |
77 |
< |
<lib name=CLHEP-Geometry-1.9.2.2> |
78 |
< |
<lib name=CLHEP-Matrix-1.9.2.2> |
79 |
< |
<lib name=CLHEP-Random-1.9.2.2> |
80 |
< |
<lib name=CLHEP-RandomObjects-1.9.2.2> |
81 |
< |
<lib name=CLHEP-RefCount-1.9.2.2> |
82 |
< |
<lib name=CLHEP-Vector-1.9.2.2> |
83 |
< |
</architecture> |
84 |
< |
<architecture name=win32> |
85 |
< |
<lib name=libCLHEP-Cast-1.9.2.2.lib> |
86 |
< |
<lib name=libCLHEP-Evaluator-1.9.2.2.lib> |
87 |
< |
<lib name=libCLHEP-Exceptions-1.9.2.2.lib> |
88 |
< |
<lib name=libCLHEP-GenericFunctions-1.9.2.2.lib> |
89 |
< |
<lib name=libCLHEP-Geometry-1.9.2.2.lib> |
90 |
< |
<lib name=libCLHEP-Matrix-1.9.2.2.lib> |
91 |
< |
<lib name=libCLHEP-Random-1.9.2.2.lib> |
92 |
< |
<lib name=libCLHEP-RandomObjects-1.9.2.2.lib> |
93 |
< |
<lib name=libCLHEP-RefCount-1.9.2.2.lib> |
94 |
< |
<lib name=libCLHEP-Vector-1.9.2.2.lib> |
95 |
< |
</architecture> |
96 |
< |
<client> |
97 |
< |
<environment name=CLHEP_BASE> |
98 |
< |
The top of the standard CLHEP distribution. |
99 |
< |
</environment> |
100 |
< |
<environment name=LIBDIR default="$CLHEP_BASE/lib" type=lib> |
101 |
< |
The Library location for the CLHEP distribution |
102 |
< |
</environment> |
103 |
< |
<environment name=INCLUDE default="$CLHEP_BASE/include"> |
104 |
< |
The header file location for the CLHEP distribution |
105 |
< |
</environment> |
106 |
< |
</client> |
107 |
< |
<environment name=LD_LIBRARY_PATH value="$LIBDIR" type=Runtime_path></environment> |
24 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/clhepheader.xml |
25 |
> |
<tool name="clhepheader" version="@TOOL_VERSION@"> |
26 |
> |
<info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/> |
27 |
> |
<client> |
28 |
> |
<environment name="CLHEPHEADER_BASE" default="@TOOL_ROOT@"/> |
29 |
> |
<environment name="INCLUDE" default="$CLHEPHEADER_BASE/include"/> |
30 |
> |
</client> |
31 |
|
</tool> |
32 |
< |
EOF_clhep_TOOLFILE |
33 |
< |
%files |
34 |
< |
%toolfilePath/clhep |
112 |
< |
%toolConfDir/clhep.conf |
32 |
> |
EOF_TOOLFILE |
33 |
> |
|
34 |
> |
## IMPORT scram-tools-post |