1 |
< |
### RPM lcg root-toolfile 1.0 |
1 |
> |
### RPM lcg root-toolfile 2.0 |
2 |
|
Requires: root |
3 |
|
%prep |
4 |
|
|
7 |
|
%install |
8 |
|
|
9 |
|
mkdir -p %i/etc/scram.d |
10 |
< |
# rootcore toolfile |
11 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
12 |
< |
<tool name="rootcore" version="@TOOL_VERSION@"> |
10 |
> |
# root_interface toolfile |
11 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root_interface.xml |
12 |
> |
<tool name="root_header" version="@TOOL_VERSION@"> |
13 |
> |
<info url="http://root.cern.ch/root/"/> |
14 |
> |
<client> |
15 |
> |
<environment name="ROOT_INTERFACE_BASE" default="@TOOL_ROOT@"/> |
16 |
> |
<environment name="INCLUDE" default="$ROOT_INTERFACE_BASE/include"/> |
17 |
> |
<environment name="LIBDIR" default="$ROOT_INTERFACE_BASE/lib"/> |
18 |
> |
</client> |
19 |
> |
<runtime name="PATH" value="$ROOT_INTERFACE_BASE/bin" type="path"/> |
20 |
> |
<runtime name="PYTHONPATH" value="$ROOT_INTERFACE_BASE/lib" type="path"/> |
21 |
> |
<runtime name="ROOTSYS" value="$ROOT_INTERFACE_BASE/"/> |
22 |
> |
</tool> |
23 |
> |
EOF_TOOLFILE |
24 |
> |
|
25 |
> |
# rootcint toolfile |
26 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcint.xml |
27 |
> |
<tool name="rootcint" version="@TOOL_VERSION@"> |
28 |
|
<info url="http://root.cern.ch/root/"/> |
14 |
– |
<lib name="Tree"/> |
15 |
– |
<lib name="Net"/> |
16 |
– |
<lib name="Thread"/> |
17 |
– |
<lib name="MathCore"/> |
18 |
– |
<lib name="RIO"/> |
29 |
|
<lib name="Core"/> |
30 |
|
<lib name="Cint"/> |
31 |
|
<client> |
32 |
< |
<environment name="ROOTCORE_BASE" default="@TOOL_ROOT@"/> |
33 |
< |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
24 |
< |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
25 |
< |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
32 |
> |
<environment name="ROOTCINT_BASE" default="@TOOL_ROOT@"/> |
33 |
> |
<environment name="INCLUDE" default="$ROOTCINT_BASE/cint"/> |
34 |
|
</client> |
35 |
< |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
28 |
< |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
29 |
< |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
35 |
> |
<use name="root_interface"/> |
36 |
|
<use name="sockets"/> |
37 |
|
<use name="pcre"/> |
38 |
|
<use name="zlib"/> |
39 |
|
</tool> |
40 |
|
EOF_TOOLFILE |
41 |
|
|
42 |
< |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
43 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
44 |
< |
<tool name="root" version="@TOOL_VERSION@"> |
42 |
> |
# rootrint toolfile |
43 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrint.xml |
44 |
> |
<tool name="rootrint" version="@TOOL_VERSION@"> |
45 |
|
<info url="http://root.cern.ch/root/"/> |
46 |
< |
<use name="rootphysics"/> |
46 |
> |
<lib name="Rint"/> |
47 |
> |
<use name="rootcint"/> |
48 |
> |
</tool> |
49 |
> |
EOF_TOOLFILE |
50 |
> |
|
51 |
> |
# rootrio toolfile |
52 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrio.xml |
53 |
> |
<tool name="rootrio" version="@TOOL_VERSION@"> |
54 |
> |
<info url="http://root.cern.ch/root/"/> |
55 |
> |
<lib name="RIO"/> |
56 |
> |
<use name="rootcint"/> |
57 |
> |
</tool> |
58 |
> |
EOF_TOOLFILE |
59 |
> |
|
60 |
> |
# rootxmlio toolfile |
61 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxmlio.xml |
62 |
> |
<tool name="rootxmlio" version="@TOOL_VERSION@"> |
63 |
> |
<info url="http://root.cern.ch/root/"/> |
64 |
> |
<lib name="XMLIO"/> |
65 |
> |
<use name="rootrio"/> |
66 |
> |
</tool> |
67 |
> |
EOF_TOOLFILE |
68 |
> |
|
69 |
> |
# rootcore toolfile |
70 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
71 |
> |
<tool name="rootcore" version="@TOOL_VERSION@"> |
72 |
> |
<info url="http://root.cern.ch/root/"/> |
73 |
> |
<lib name="Tree"/> |
74 |
> |
<lib name="Net"/> |
75 |
> |
<lib name="Thread"/> |
76 |
> |
<lib name="MathCore"/> |
77 |
> |
<use name="rootrio"/> |
78 |
|
</tool> |
79 |
|
EOF_TOOLFILE |
80 |
|
|
84 |
|
<info url="http://root.cern.ch/root/"/> |
85 |
|
<lib name="Hist"/> |
86 |
|
<lib name="Matrix"/> |
87 |
< |
<use name="ROOTCore"/> |
87 |
> |
<use name="rootcore"/> |
88 |
|
</tool> |
89 |
|
EOF_TOOLFILE |
90 |
|
|
91 |
< |
# rootgpad toolfile |
92 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
93 |
< |
<tool name="rootgpad" version="@TOOL_VERSION@"> |
91 |
> |
# rootphysics toolfile |
92 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
93 |
> |
<tool name="rootphysics" version="@TOOL_VERSION@"> |
94 |
|
<info url="http://root.cern.ch/root/"/> |
95 |
< |
<lib name="Gpad"/> |
59 |
< |
<lib name="Graf"/> |
95 |
> |
<lib name="Physics"/> |
96 |
|
<use name="roothistmatrix"/> |
97 |
|
</tool> |
98 |
|
EOF_TOOLFILE |
99 |
|
|
100 |
< |
# rootphysics toolfile |
101 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
102 |
< |
<tool name="rootphysics" version="@TOOL_VERSION@"> |
100 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
101 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
102 |
> |
<tool name="root" version="@TOOL_VERSION@"> |
103 |
|
<info url="http://root.cern.ch/root/"/> |
104 |
< |
<lib name="Physics"/> |
104 |
> |
<use name="rootphysics"/> |
105 |
> |
</tool> |
106 |
> |
EOF_TOOLFILE |
107 |
> |
|
108 |
> |
# rootgpad toolfile |
109 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
110 |
> |
<tool name="rootgpad" version="@TOOL_VERSION@"> |
111 |
> |
<info url="http://root.cern.ch/root/"/> |
112 |
> |
<lib name="Gpad"/> |
113 |
> |
<lib name="Graf"/> |
114 |
|
<use name="roothistmatrix"/> |
115 |
|
</tool> |
116 |
|
EOF_TOOLFILE |
126 |
|
</tool> |
127 |
|
EOF_TOOLFILE |
128 |
|
|
129 |
< |
# rootcintex toolfile |
85 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
86 |
< |
<tool name="rootcintex" version="@TOOL_VERSION@"> |
87 |
< |
<info url="http://root.cern.ch/root/"/> |
88 |
< |
<lib name="Cintex"/> |
89 |
< |
<use name="ROOTRflx"/> |
90 |
< |
<use name="ROOTCore"/> |
91 |
< |
</tool> |
92 |
< |
EOF_TOOLFILE |
93 |
< |
|
94 |
< |
# rootinteractive toolfile (GQt/qt lib dependencies |
95 |
< |
# have been moved to rootqt.xml) |
129 |
> |
# rootinteractive toolfile |
130 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
131 |
|
<tool name="rootinteractive" version="@TOOL_VERSION@"> |
132 |
|
<info url="http://root.cern.ch/root/"/> |
99 |
– |
<lib name="Rint"/> |
133 |
|
<lib name="Gui"/> |
134 |
|
<use name="libjpg"/> |
135 |
|
<use name="libpng"/> |
136 |
|
<use name="rootgpad"/> |
137 |
< |
</tool> |
105 |
< |
EOF_TOOLFILE |
106 |
< |
|
107 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
108 |
< |
<tool name="rootqt" version="@TOOL_VERSION@"> |
109 |
< |
<info url="http://root.cern.ch/root/"/> |
110 |
< |
<lib name="GQt"/> |
111 |
< |
<use name="qt"/> |
137 |
> |
<use name="rootrint"/> |
138 |
|
</tool> |
139 |
|
EOF_TOOLFILE |
140 |
|
|
144 |
|
<info url="http://root.cern.ch/root/"/> |
145 |
|
<lib name="GenVector"/> |
146 |
|
<lib name="MathMore"/> |
147 |
< |
<use name="ROOTCore"/> |
147 |
> |
<use name="rootcore"/> |
148 |
|
<use name="gsl"/> |
149 |
|
</tool> |
150 |
|
EOF_TOOLFILE |
174 |
|
<lib name="Reflex"/> |
175 |
|
<client> |
176 |
|
<environment name="ROOTRFLX_BASE" default="@TOOL_ROOT@"/> |
151 |
– |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
152 |
– |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
177 |
|
</client> |
178 |
< |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
179 |
< |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
178 |
> |
<flags GENREFLEX_GCCXMLOPT="@GENREFLEX_GCCXMLOPT@"/> |
179 |
> |
<flags GENREFLEX_CPPFLAGS="-DCMS_DICT_IMPL -D_REENTRANT -DGNUSOURCE"/> |
180 |
> |
<flags GENREFLEX_ARGS="--deep"/> |
181 |
|
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
157 |
– |
<use name="sockets"/> |
182 |
|
<use name="gccxml"/> |
183 |
+ |
<use name="root_interface"/> |
184 |
|
</tool> |
185 |
|
EOF_TOOLFILE |
186 |
|
|
198 |
|
<tool name="rootmlp" version="@TOOL_VERSION@"> |
199 |
|
<info url="http://root.cern.ch/root/"/> |
200 |
|
<lib name="MLP"/> |
201 |
< |
<use name="RootGraphics"/> |
201 |
> |
<use name="rootgraphics"/> |
202 |
|
</tool> |
203 |
|
EOF_TOOLFILE |
204 |
|
|
207 |
|
<tool name="roottmva" version="@TOOL_VERSION@"> |
208 |
|
<info url="http://root.cern.ch/root/"/> |
209 |
|
<lib name="TMVA"/> |
210 |
< |
<use name="ROOTMLP"/> |
210 |
> |
<use name="rootmlp"/> |
211 |
|
<use name="rootminuit"/> |
212 |
|
</tool> |
213 |
|
EOF_TOOLFILE |
216 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
217 |
|
<tool name="rootthread" version="@TOOL_VERSION@"> |
218 |
|
<info url="http://root.cern.ch/root/"/> |
219 |
< |
<use name="ROOTCore"/> |
219 |
> |
<use name="rootcore"/> |
220 |
> |
</tool> |
221 |
> |
EOF_TOOLFILE |
222 |
> |
|
223 |
> |
# rootxml toolfile |
224 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml |
225 |
> |
<tool name="rootxml" version="@TOOL_VERSION@"> |
226 |
> |
<info url="http://root.cern.ch/root/"/> |
227 |
> |
<lib name="XMLParser"/> |
228 |
> |
<use name="rootcore"/> |
229 |
> |
</tool> |
230 |
> |
EOF_TOOLFILE |
231 |
> |
|
232 |
> |
# rootfoam toolfile |
233 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml |
234 |
> |
<tool name="rootfoam" version="@TOOL_VERSION@"> |
235 |
> |
<info url="http://root.cern.ch/root/"/> |
236 |
> |
<lib name="Foam"/> |
237 |
> |
<use name="roothistmatrix"/> |
238 |
> |
</tool> |
239 |
> |
EOF_TOOLFILE |
240 |
> |
|
241 |
> |
# rootcintex toolfile |
242 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
243 |
> |
<tool name="rootcintex" version="@TOOL_VERSION@"> |
244 |
> |
<info url="http://root.cern.ch/root/"/> |
245 |
> |
<lib name="Cintex"/> |
246 |
> |
<use name="rootrflx"/> |
247 |
> |
<use name="rootcint"/> |
248 |
|
</tool> |
249 |
|
EOF_TOOLFILE |
250 |
|
|
251 |
+ |
case %cmsos in |
252 |
+ |
*_ia32) |
253 |
+ |
GENREFLEX_GCCXMLOPT="-m32" |
254 |
+ |
;; |
255 |
+ |
*_amd64) |
256 |
+ |
GENREFLEX_GCCXMLOPT="-m64" |
257 |
+ |
;; |
258 |
+ |
esac |
259 |
+ |
export GENREFLEX_GCCXMLOPT |
260 |
+ |
|
261 |
|
## IMPORT scram-tools-post |