25 |
|
Patch16: root-5.22-00d-genreflex_python26_popen3 |
26 |
|
Patch17: root-5.22-00d-fireworks6 |
27 |
|
Patch18: root-5.22-00d-linker-gnu-hash-style |
28 |
+ |
Patch19: root-5.22-00d-TFile-version3-Init |
29 |
+ |
Patch20: root-5.22-00d-cint-namespace |
30 |
|
|
31 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
32 |
|
|
76 |
|
%patch15 -p1 |
77 |
|
%patch16 -p1 |
78 |
|
%patch17 -p1 |
79 |
+ |
%patch19 -p1 |
80 |
+ |
%patch20 -p1 |
81 |
|
|
82 |
|
case %gccver in |
83 |
|
4.3.*) |
95 |
|
%patch18 -p1 |
96 |
|
;; |
97 |
|
esac |
98 |
< |
|
98 |
> |
|
99 |
|
%build |
100 |
|
|
101 |
|
mkdir -p %i |
183 |
|
# SCRAM ToolBox toolfile |
184 |
|
mkdir -p %i/etc/scram.d |
185 |
|
# rootcore toolfile |
186 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
187 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
188 |
< |
<Tool name=rootcore version=%v> |
189 |
< |
<info url="http://root.cern.ch/root/"></info> |
190 |
< |
<lib name=Tree> |
191 |
< |
<lib name=Net> |
192 |
< |
<lib name=Thread> |
193 |
< |
<lib name=MathCore> |
194 |
< |
<lib name=RIO> |
195 |
< |
<lib name=Core> |
196 |
< |
<lib name=Cint> |
197 |
< |
<Client> |
198 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
199 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
200 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
201 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
202 |
< |
</Client> |
203 |
< |
<use name=sockets> |
204 |
< |
<use name=pcre> |
205 |
< |
<use name=zlib> |
206 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
207 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
208 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
205 |
< |
</Tool> |
186 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
187 |
> |
<tool name="rootcore" version="%v"> |
188 |
> |
<info url="http://root.cern.ch/root/"/> |
189 |
> |
<lib name="Tree"/> |
190 |
> |
<lib name="Net"/> |
191 |
> |
<lib name="Thread"/> |
192 |
> |
<lib name="MathCore"/> |
193 |
> |
<lib name="RIO"/> |
194 |
> |
<lib name="Core"/> |
195 |
> |
<lib name="Cint"/> |
196 |
> |
<client> |
197 |
> |
<environment name="ROOTCORE_BASE" default="%i"/> |
198 |
> |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
199 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
200 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
201 |
> |
</client> |
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 |
> |
<use name="sockets"/> |
206 |
> |
<use name="pcre"/> |
207 |
> |
<use name="zlib"/> |
208 |
> |
</tool> |
209 |
|
EOF_TOOLFILE |
210 |
|
|
211 |
|
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
212 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
213 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
214 |
< |
<Tool name=root version=%v> |
215 |
< |
<info url="http://root.cern.ch/root/"></info> |
216 |
< |
<use name=rootphysics> |
214 |
< |
</Tool> |
212 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
213 |
> |
<tool name="root" version="%v"> |
214 |
> |
<info url="http://root.cern.ch/root/"/> |
215 |
> |
<use name="rootphysics"/> |
216 |
> |
</tool> |
217 |
|
EOF_TOOLFILE |
218 |
|
|
219 |
|
# roothistmatrix toolfile |
220 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
221 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
222 |
< |
<Tool name=roothistmatrix version=%v> |
223 |
< |
<info url="http://root.cern.ch/root/"></info> |
224 |
< |
<lib name=Hist> |
225 |
< |
<lib name=Matrix> |
226 |
< |
<use name=ROOTCore> |
225 |
< |
</Tool> |
220 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
221 |
> |
<tool name="roothistmatrix" version="%v"> |
222 |
> |
<info url="http://root.cern.ch/root/"/> |
223 |
> |
<lib name="Hist"/> |
224 |
> |
<lib name="Matrix"/> |
225 |
> |
<use name="ROOTCore"/> |
226 |
> |
</tool> |
227 |
|
EOF_TOOLFILE |
228 |
|
|
229 |
|
# rootgpad toolfile |
230 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
231 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
232 |
< |
<Tool name=rootgpad version=%v> |
233 |
< |
<info url="http://root.cern.ch/root/"></info> |
234 |
< |
<lib name=Gpad> |
235 |
< |
<lib name=Graf> |
236 |
< |
<use name=roothistmatrix> |
236 |
< |
</Tool> |
230 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
231 |
> |
<tool name="rootgpad" version="%v"> |
232 |
> |
<info url="http://root.cern.ch/root/"/> |
233 |
> |
<lib name="Gpad"/> |
234 |
> |
<lib name="Graf"/> |
235 |
> |
<use name="roothistmatrix"/> |
236 |
> |
</tool> |
237 |
|
EOF_TOOLFILE |
238 |
|
|
239 |
|
# rootphysics toolfile |
240 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
241 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
242 |
< |
<Tool name=rootphysics version=%v> |
243 |
< |
<info url="http://root.cern.ch/root/"></info> |
244 |
< |
<lib name=Physics> |
245 |
< |
<use name=roothistmatrix> |
246 |
< |
</Tool> |
240 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
241 |
> |
<tool name="rootphysics" version="%v"> |
242 |
> |
<info url="http://root.cern.ch/root/"/> |
243 |
> |
<lib name="Physics"/> |
244 |
> |
<use name="roothistmatrix"/> |
245 |
> |
</tool> |
246 |
|
EOF_TOOLFILE |
247 |
|
|
248 |
|
# rootgraphics toolfile, identical to old "root" toolfile |
249 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
250 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
251 |
< |
<Tool name=rootgraphics version=%v> |
252 |
< |
<info url="http://root.cern.ch/root/"></info> |
253 |
< |
<lib name=TreePlayer> |
254 |
< |
<lib name=Graf3d> |
255 |
< |
<lib name=Postscript> |
256 |
< |
<use name=rootgpad> |
258 |
< |
</Tool> |
249 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
250 |
> |
<tool name="rootgraphics" version="%v"> |
251 |
> |
<info url="http://root.cern.ch/root/"/> |
252 |
> |
<lib name="TreePlayer"/> |
253 |
> |
<lib name="Graf3d"/> |
254 |
> |
<lib name="Postscript"/> |
255 |
> |
<use name="rootgpad"/> |
256 |
> |
</tool> |
257 |
|
EOF_TOOLFILE |
258 |
|
|
259 |
|
# rootcintex toolfile |
260 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
261 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
262 |
< |
<Tool name=rootcintex version=%v> |
263 |
< |
<info url="http://root.cern.ch/root/"></info> |
264 |
< |
<lib name=Cintex> |
265 |
< |
<use name=ROOTRflx> |
266 |
< |
<use name=ROOTCore> |
267 |
< |
</Tool> |
268 |
< |
EOF_TOOLFILE |
269 |
< |
|
270 |
< |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
271 |
< |
# have been removed for the moment) |
272 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
273 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
274 |
< |
<Tool name=rootinteractive version=%v> |
275 |
< |
<info url="http://root.cern.ch/root/"></info> |
276 |
< |
<lib name=Rint> |
277 |
< |
<lib name=GQt> |
278 |
< |
<lib name=Gui> |
279 |
< |
<use name=qt> |
280 |
< |
<use name=libjpg> |
281 |
< |
<use name=libpng> |
282 |
< |
<use name=rootgpad> |
283 |
< |
</Tool> |
260 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
261 |
> |
<tool name="rootcintex" version="%v"> |
262 |
> |
<info url="http://root.cern.ch/root/"/> |
263 |
> |
<lib name="Cintex"/> |
264 |
> |
<use name="ROOTRflx"/> |
265 |
> |
<use name="ROOTCore"/> |
266 |
> |
</tool> |
267 |
> |
EOF_TOOLFILE |
268 |
> |
|
269 |
> |
# rootinteractive toolfile (GQt/qt lib dependencies |
270 |
> |
# have been moved to rootqt.xml) |
271 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
272 |
> |
<tool name="rootinteractive" version="%v"> |
273 |
> |
<info url="http://root.cern.ch/root/"/> |
274 |
> |
<lib name="Rint"/> |
275 |
> |
<lib name="Gui"/> |
276 |
> |
<use name="libjpg"/> |
277 |
> |
<use name="libpng"/> |
278 |
> |
<use name="rootgpad"/> |
279 |
> |
</tool> |
280 |
> |
EOF_TOOLFILE |
281 |
> |
|
282 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
283 |
> |
<tool name="rootqt" version="%v"> |
284 |
> |
<info url="http://root.cern.ch/root/"/> |
285 |
> |
<lib name="GQt"/> |
286 |
> |
<use name="qt"/> |
287 |
> |
</tool> |
288 |
|
EOF_TOOLFILE |
289 |
|
|
290 |
|
# rootmath toolfile |
291 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
292 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
293 |
< |
<Tool name=rootmath version=%v> |
294 |
< |
<info url="http://root.cern.ch/root/"></info> |
295 |
< |
<lib name=GenVector> |
296 |
< |
<lib name=MathMore> |
297 |
< |
<use name=ROOTCore> |
298 |
< |
<use name=gsl> |
297 |
< |
</Tool> |
291 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
292 |
> |
<tool name="rootmath" version="%v"> |
293 |
> |
<info url="http://root.cern.ch/root/"/> |
294 |
> |
<lib name="GenVector"/> |
295 |
> |
<lib name="MathMore"/> |
296 |
> |
<use name="ROOTCore"/> |
297 |
> |
<use name="gsl"/> |
298 |
> |
</tool> |
299 |
|
EOF_TOOLFILE |
300 |
|
|
301 |
|
# rootminuit toolfile |
302 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
303 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
304 |
< |
<Tool name=rootminuit version=%v> |
305 |
< |
<info url="http://root.cern.ch/root/"></info> |
306 |
< |
<lib name=Minuit> |
307 |
< |
<use name=rootgpad> |
307 |
< |
</Tool> |
302 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
303 |
> |
<tool name="rootminuit" version="%v"> |
304 |
> |
<info url="http://root.cern.ch/root/"/> |
305 |
> |
<lib name="Minuit"/> |
306 |
> |
<use name="rootgpad"/> |
307 |
> |
</tool> |
308 |
|
EOF_TOOLFILE |
309 |
|
|
310 |
|
# rootminuit2 toolfile |
311 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
312 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
313 |
< |
<Tool name=rootminuit2 version=%v> |
314 |
< |
<info url="http://root.cern.ch/root/"></info> |
315 |
< |
<lib name=Minuit2> |
316 |
< |
<use name=rootgpad> |
317 |
< |
</Tool> |
311 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
312 |
> |
<tool name="rootminuit2" version="%v"> |
313 |
> |
<info url="http://root.cern.ch/root/"/> |
314 |
> |
<lib name="Minuit2"/> |
315 |
> |
<use name="rootgpad"/> |
316 |
> |
</tool> |
317 |
|
EOF_TOOLFILE |
318 |
|
|
319 |
|
# rootrflx toolfile |
320 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
321 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
322 |
< |
<Tool name=rootrflx version=%v> |
323 |
< |
<info url="http://root.cern.ch/root/"></info> |
324 |
< |
<lib name=Reflex> |
325 |
< |
<Client> |
326 |
< |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
327 |
< |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
328 |
< |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
329 |
< |
</Client> |
330 |
< |
<use name=sockets> |
331 |
< |
<use name=gccxml> |
332 |
< |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
333 |
< |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
334 |
< |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
336 |
< |
</Tool> |
320 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
321 |
> |
<tool name="rootrflx" version="%v"> |
322 |
> |
<info url="http://root.cern.ch/root/"/> |
323 |
> |
<lib name="Reflex"/> |
324 |
> |
<client> |
325 |
> |
<environment name="ROOTRFLX_BASE" default="%i"/> |
326 |
> |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
327 |
> |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
328 |
> |
</client> |
329 |
> |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
330 |
> |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
331 |
> |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
332 |
> |
<use name="sockets"/> |
333 |
> |
<use name="gccxml"/> |
334 |
> |
</tool> |
335 |
|
EOF_TOOLFILE |
336 |
|
|
337 |
|
# roothtml toolfile |
338 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
339 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
340 |
< |
<Tool name=roothtml version=%v> |
341 |
< |
<info url="http://root.cern.ch/root/"></info> |
342 |
< |
<lib name=Html> |
343 |
< |
<use name=rootgpad> |
346 |
< |
</Tool> |
338 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
339 |
> |
<tool name="roothtml" version="%v"> |
340 |
> |
<info url="http://root.cern.ch/root/"/> |
341 |
> |
<lib name="Html"/> |
342 |
> |
<use name="rootgpad"/> |
343 |
> |
</tool> |
344 |
|
EOF_TOOLFILE |
345 |
|
|
346 |
|
# rootmlp toolfile |
347 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
348 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
349 |
< |
<Tool name=rootmlp version=%v> |
350 |
< |
<info url="http://root.cern.ch/root/"></info> |
351 |
< |
<lib name=MLP> |
352 |
< |
<use name=RootGraphics> |
356 |
< |
</Tool> |
347 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
348 |
> |
<tool name="rootmlp" version="%v"> |
349 |
> |
<info url="http://root.cern.ch/root/"/> |
350 |
> |
<lib name="MLP"/> |
351 |
> |
<use name="RootGraphics"/> |
352 |
> |
</tool> |
353 |
|
EOF_TOOLFILE |
354 |
|
|
355 |
|
# roottmva toolfile |
356 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
357 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
358 |
< |
<Tool name=roottmva version=%v> |
359 |
< |
<info url="http://root.cern.ch/root/"></info> |
360 |
< |
<lib name=TMVA> |
361 |
< |
<use name=ROOTMLP> |
362 |
< |
<use name=rootminuit> |
367 |
< |
</Tool> |
356 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
357 |
> |
<tool name="roottmva" version="%v"> |
358 |
> |
<info url="http://root.cern.ch/root/"/> |
359 |
> |
<lib name="TMVA"/> |
360 |
> |
<use name="ROOTMLP"/> |
361 |
> |
<use name="rootminuit"/> |
362 |
> |
</tool> |
363 |
|
EOF_TOOLFILE |
364 |
|
|
365 |
|
# rootthread toolfile |
366 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
367 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
368 |
< |
<Tool name=rootthread version=%v> |
369 |
< |
<info url="http://root.cern.ch/root/"></info> |
370 |
< |
<use name=ROOTCore> |
376 |
< |
</Tool> |
366 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
367 |
> |
<tool name="rootthread" version="%v"> |
368 |
> |
<info url="http://root.cern.ch/root/"/> |
369 |
> |
<use name="ROOTCore"/> |
370 |
> |
</tool> |
371 |
|
EOF_TOOLFILE |
372 |
|
|
373 |
|
%post |
374 |
< |
%{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 |
374 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |