179 |
|
# SCRAM ToolBox toolfile |
180 |
|
mkdir -p %i/etc/scram.d |
181 |
|
# rootcore toolfile |
182 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
183 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
184 |
< |
<Tool name=rootcore version=%v> |
185 |
< |
<info url="http://root.cern.ch/root/"></info> |
186 |
< |
<lib name=Tree> |
187 |
< |
<lib name=Net> |
188 |
< |
<lib name=Thread> |
189 |
< |
<lib name=MathCore> |
190 |
< |
<lib name=RIO> |
191 |
< |
<lib name=Core> |
192 |
< |
<lib name=Cint> |
193 |
< |
<Client> |
194 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
195 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
196 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
197 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
198 |
< |
</Client> |
199 |
< |
<use name=sockets> |
200 |
< |
<use name=pcre> |
201 |
< |
<use name=zlib> |
202 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
203 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
204 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
205 |
< |
</Tool> |
182 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
183 |
> |
<tool name="rootcore" version="%v"> |
184 |
> |
<info url="http://root.cern.ch/root/"/> |
185 |
> |
<lib name="Tree"/> |
186 |
> |
<lib name="Net"/> |
187 |
> |
<lib name="Thread"/> |
188 |
> |
<lib name="MathCore"/> |
189 |
> |
<lib name="RIO"/> |
190 |
> |
<lib name="Core"/> |
191 |
> |
<lib name="Cint"/> |
192 |
> |
<client> |
193 |
> |
<environment name="ROOTCORE_BASE" default="%i"/> |
194 |
> |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
195 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
196 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
197 |
> |
</client> |
198 |
> |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
199 |
> |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
200 |
> |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
201 |
> |
<use name="sockets"/> |
202 |
> |
<use name="pcre"/> |
203 |
> |
<use name="zlib"/> |
204 |
> |
</tool> |
205 |
|
EOF_TOOLFILE |
206 |
|
|
207 |
|
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
208 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
209 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
210 |
< |
<Tool name=root version=%v> |
211 |
< |
<info url="http://root.cern.ch/root/"></info> |
212 |
< |
<use name=rootphysics> |
214 |
< |
</Tool> |
208 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
209 |
> |
<tool name="root" version="%v"> |
210 |
> |
<info url="http://root.cern.ch/root/"/> |
211 |
> |
<use name="rootphysics"/> |
212 |
> |
</tool> |
213 |
|
EOF_TOOLFILE |
214 |
|
|
215 |
|
# roothistmatrix toolfile |
216 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
217 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
218 |
< |
<Tool name=roothistmatrix version=%v> |
219 |
< |
<info url="http://root.cern.ch/root/"></info> |
220 |
< |
<lib name=Hist> |
221 |
< |
<lib name=Matrix> |
222 |
< |
<use name=ROOTCore> |
225 |
< |
</Tool> |
216 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
217 |
> |
<tool name="roothistmatrix" version="%v"> |
218 |
> |
<info url="http://root.cern.ch/root/"/> |
219 |
> |
<lib name="Hist"/> |
220 |
> |
<lib name="Matrix"/> |
221 |
> |
<use name="ROOTCore"/> |
222 |
> |
</tool> |
223 |
|
EOF_TOOLFILE |
224 |
|
|
225 |
|
# rootgpad toolfile |
226 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
227 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
228 |
< |
<Tool name=rootgpad version=%v> |
229 |
< |
<info url="http://root.cern.ch/root/"></info> |
230 |
< |
<lib name=Gpad> |
231 |
< |
<lib name=Graf> |
232 |
< |
<use name=roothistmatrix> |
236 |
< |
</Tool> |
226 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
227 |
> |
<tool name="rootgpad" version="%v"> |
228 |
> |
<info url="http://root.cern.ch/root/"/> |
229 |
> |
<lib name="Gpad"/> |
230 |
> |
<lib name="Graf"/> |
231 |
> |
<use name="roothistmatrix"/> |
232 |
> |
</tool> |
233 |
|
EOF_TOOLFILE |
234 |
|
|
235 |
|
# rootphysics toolfile |
236 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
237 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
238 |
< |
<Tool name=rootphysics version=%v> |
239 |
< |
<info url="http://root.cern.ch/root/"></info> |
240 |
< |
<lib name=Physics> |
241 |
< |
<use name=roothistmatrix> |
246 |
< |
</Tool> |
236 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
237 |
> |
<tool name="rootphysics" version="%v"> |
238 |
> |
<info url="http://root.cern.ch/root/"/> |
239 |
> |
<lib name="Physics"/> |
240 |
> |
<use name="roothistmatrix"/> |
241 |
> |
</tool> |
242 |
|
EOF_TOOLFILE |
243 |
|
|
244 |
|
# rootgraphics toolfile, identical to old "root" toolfile |
245 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
246 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
247 |
< |
<Tool name=rootgraphics version=%v> |
248 |
< |
<info url="http://root.cern.ch/root/"></info> |
249 |
< |
<lib name=TreePlayer> |
250 |
< |
<lib name=Graf3d> |
251 |
< |
<lib name=Postscript> |
252 |
< |
<use name=rootgpad> |
258 |
< |
</Tool> |
245 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
246 |
> |
<tool name="rootgraphics" version="%v"> |
247 |
> |
<info url="http://root.cern.ch/root/"/> |
248 |
> |
<lib name="TreePlayer"/> |
249 |
> |
<lib name="Graf3d"/> |
250 |
> |
<lib name="Postscript"/> |
251 |
> |
<use name="rootgpad"/> |
252 |
> |
</tool> |
253 |
|
EOF_TOOLFILE |
254 |
|
|
255 |
|
# rootcintex toolfile |
256 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
257 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
258 |
< |
<Tool name=rootcintex version=%v> |
259 |
< |
<info url="http://root.cern.ch/root/"></info> |
260 |
< |
<lib name=Cintex> |
261 |
< |
<use name=ROOTRflx> |
262 |
< |
<use name=ROOTCore> |
269 |
< |
</Tool> |
256 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
257 |
> |
<tool name="rootcintex" version="%v"> |
258 |
> |
<info url="http://root.cern.ch/root/"/> |
259 |
> |
<lib name="Cintex"/> |
260 |
> |
<use name="ROOTRflx"/> |
261 |
> |
<use name="ROOTCore"/> |
262 |
> |
</tool> |
263 |
|
EOF_TOOLFILE |
264 |
|
|
265 |
|
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
266 |
|
# have been removed for the moment) |
267 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
268 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
269 |
< |
<Tool name=rootinteractive version=%v> |
270 |
< |
<info url="http://root.cern.ch/root/"></info> |
271 |
< |
<lib name=Rint> |
272 |
< |
<lib name=GQt> |
273 |
< |
<lib name=Gui> |
274 |
< |
<use name=qt> |
275 |
< |
<use name=libjpg> |
276 |
< |
<use name=libpng> |
277 |
< |
<use name=rootgpad> |
285 |
< |
</Tool> |
267 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
268 |
> |
<tool name="rootinteractive" version="%v"> |
269 |
> |
<info url="http://root.cern.ch/root/"/> |
270 |
> |
<lib name="Rint"/> |
271 |
> |
<lib name="GQt"/> |
272 |
> |
<lib name="Gui"/> |
273 |
> |
<use name="qt"/> |
274 |
> |
<use name="libjpg"/> |
275 |
> |
<use name="libpng"/> |
276 |
> |
<use name="rootgpad"/> |
277 |
> |
</tool> |
278 |
|
EOF_TOOLFILE |
279 |
|
|
280 |
|
# rootmath toolfile |
281 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
282 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
283 |
< |
<Tool name=rootmath version=%v> |
284 |
< |
<info url="http://root.cern.ch/root/"></info> |
285 |
< |
<lib name=GenVector> |
286 |
< |
<lib name=MathMore> |
287 |
< |
<use name=ROOTCore> |
288 |
< |
<use name=gsl> |
297 |
< |
</Tool> |
281 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
282 |
> |
<tool name="rootmath" version="%v"> |
283 |
> |
<info url="http://root.cern.ch/root/"/> |
284 |
> |
<lib name="GenVector"/> |
285 |
> |
<lib name="MathMore"/> |
286 |
> |
<use name="ROOTCore"/> |
287 |
> |
<use name="gsl"/> |
288 |
> |
</tool> |
289 |
|
EOF_TOOLFILE |
290 |
|
|
291 |
|
# rootminuit toolfile |
292 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
293 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
294 |
< |
<Tool name=rootminuit version=%v> |
295 |
< |
<info url="http://root.cern.ch/root/"></info> |
296 |
< |
<lib name=Minuit> |
297 |
< |
<use name=rootgpad> |
307 |
< |
</Tool> |
292 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
293 |
> |
<tool name="rootminuit" version="%v"> |
294 |
> |
<info url="http://root.cern.ch/root/"/> |
295 |
> |
<lib name="Minuit"/> |
296 |
> |
<use name="rootgpad"/> |
297 |
> |
</tool> |
298 |
|
EOF_TOOLFILE |
299 |
|
|
300 |
|
# rootminuit2 toolfile |
301 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
302 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
303 |
< |
<Tool name=rootminuit2 version=%v> |
304 |
< |
<info url="http://root.cern.ch/root/"></info> |
305 |
< |
<lib name=Minuit2> |
306 |
< |
<use name=rootgpad> |
317 |
< |
</Tool> |
301 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
302 |
> |
<tool name="rootminuit2" version="%v"> |
303 |
> |
<info url="http://root.cern.ch/root/"/> |
304 |
> |
<lib name="Minuit2"/> |
305 |
> |
<use name="rootgpad"/> |
306 |
> |
</tool> |
307 |
|
EOF_TOOLFILE |
308 |
|
|
309 |
|
# rootrflx toolfile |
310 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
311 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
312 |
< |
<Tool name=rootrflx version=%v> |
313 |
< |
<info url="http://root.cern.ch/root/"></info> |
314 |
< |
<lib name=Reflex> |
315 |
< |
<Client> |
316 |
< |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
317 |
< |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
318 |
< |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
319 |
< |
</Client> |
320 |
< |
<use name=sockets> |
321 |
< |
<use name=gccxml> |
322 |
< |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
323 |
< |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
324 |
< |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
336 |
< |
</Tool> |
310 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
311 |
> |
<tool name="rootrflx" version="%v"> |
312 |
> |
<info url="http://root.cern.ch/root/"/> |
313 |
> |
<lib name="Reflex"/> |
314 |
> |
<client> |
315 |
> |
<environment name="ROOTRFLX_BASE" default="%i"/> |
316 |
> |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
317 |
> |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
318 |
> |
</client> |
319 |
> |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
320 |
> |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
321 |
> |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
322 |
> |
<use name="sockets"/> |
323 |
> |
<use name="gccxml"/> |
324 |
> |
</tool> |
325 |
|
EOF_TOOLFILE |
326 |
|
|
327 |
|
# roothtml toolfile |
328 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
329 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
330 |
< |
<Tool name=roothtml version=%v> |
331 |
< |
<info url="http://root.cern.ch/root/"></info> |
332 |
< |
<lib name=Html> |
333 |
< |
<use name=rootgpad> |
346 |
< |
</Tool> |
328 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
329 |
> |
<tool name="roothtml" version="%v"> |
330 |
> |
<info url="http://root.cern.ch/root/"/> |
331 |
> |
<lib name="Html"/> |
332 |
> |
<use name="rootgpad"/> |
333 |
> |
</tool> |
334 |
|
EOF_TOOLFILE |
335 |
|
|
336 |
|
# rootmlp toolfile |
337 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
338 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
339 |
< |
<Tool name=rootmlp version=%v> |
340 |
< |
<info url="http://root.cern.ch/root/"></info> |
341 |
< |
<lib name=MLP> |
342 |
< |
<use name=RootGraphics> |
356 |
< |
</Tool> |
337 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
338 |
> |
<tool name="rootmlp" version="%v"> |
339 |
> |
<info url="http://root.cern.ch/root/"/> |
340 |
> |
<lib name="MLP"/> |
341 |
> |
<use name="RootGraphics"/> |
342 |
> |
</tool> |
343 |
|
EOF_TOOLFILE |
344 |
|
|
345 |
|
# roottmva toolfile |
346 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
347 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
348 |
< |
<Tool name=roottmva version=%v> |
349 |
< |
<info url="http://root.cern.ch/root/"></info> |
350 |
< |
<lib name=TMVA> |
351 |
< |
<use name=ROOTMLP> |
352 |
< |
<use name=rootminuit> |
367 |
< |
</Tool> |
346 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
347 |
> |
<tool name="roottmva" version="%v"> |
348 |
> |
<info url="http://root.cern.ch/root/"/> |
349 |
> |
<lib name="TMVA"/> |
350 |
> |
<use name="ROOTMLP"/> |
351 |
> |
<use name="rootminuit"/> |
352 |
> |
</tool> |
353 |
|
EOF_TOOLFILE |
354 |
|
|
355 |
|
# rootthread toolfile |
356 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
357 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
358 |
< |
<Tool name=rootthread version=%v> |
359 |
< |
<info url="http://root.cern.ch/root/"></info> |
360 |
< |
<use name=ROOTCore> |
376 |
< |
</Tool> |
356 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
357 |
> |
<tool name="rootthread" version="%v"> |
358 |
> |
<info url="http://root.cern.ch/root/"/> |
359 |
> |
<use name="ROOTCore"/> |
360 |
> |
</tool> |
361 |
|
EOF_TOOLFILE |
362 |
|
|
363 |
|
%post |
364 |
< |
%{relocateConfig}etc/scram.d/root |
381 |
< |
%{relocateConfig}etc/scram.d/rootcore |
382 |
< |
%{relocateConfig}etc/scram.d/roothistmatrix |
383 |
< |
%{relocateConfig}etc/scram.d/rootphysics |
384 |
< |
%{relocateConfig}etc/scram.d/rootgraphics |
385 |
< |
%{relocateConfig}etc/scram.d/rootcintex |
386 |
< |
%{relocateConfig}etc/scram.d/rootinteractive |
387 |
< |
%{relocateConfig}etc/scram.d/rootmath |
388 |
< |
%{relocateConfig}etc/scram.d/rootminuit |
389 |
< |
%{relocateConfig}etc/scram.d/rootminuit2 |
390 |
< |
%{relocateConfig}etc/scram.d/rootrflx |
391 |
< |
%{relocateConfig}etc/scram.d/roothtml |
392 |
< |
%{relocateConfig}etc/scram.d/rootmlp |
393 |
< |
%{relocateConfig}etc/scram.d/roottmva |
394 |
< |
%{relocateConfig}etc/scram.d/rootthread |
364 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |