ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root.spec
(Generate patch)

Comparing COMP/CMSDIST/root.spec (file contents):
Revision 1.244 by elmer, Wed Feb 9 23:54:50 2011 UTC vs.
Revision 1.255 by elmer, Wed Mar 9 12:40:59 2011 UTC

# Line 5 | Line 5
5   Source: ftp://root.cern.ch/%n/%{n}_v%{realversion}.source.tar.gz
6   %define closingbrace )
7   %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
8 < %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e
9 < cho false;; esac)
8 > %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace echo false;; esac)
9  
10   Patch0: root-5.27-06-externals
11   Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
# Line 33 | Line 32 | Patch21: root-5.27-06b-TEfficiency-backp
32   Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
33   Patch23: root-5.27-06b-r37210
34   Patch24: root-5.27-06b-r38023
35 + Patch25: root-5.27-06b-r36708
36 + Patch26: root-5.27-06b-r38126-r38156
37 + Patch27: root-5.27-06b-r38210
38 + Patch28: root-5.27-06b-r38248-r38252-r38259-r38264-r38265-r38267
39 + Patch29: root-5.27-06b-gcc46
40 + Patch30: root-5.27-06b-r38325
41  
42   %define cpu %(echo %cmsplatf | cut -d_ -f2)
43  
# Line 83 | Line 88 | Requires: qt
88   %patch22 -p1
89   %patch23 -p1
90   %patch24 -p1
91 + %patch25 -p1
92 + %patch26 -p1
93 + %patch27 -p1
94 + %patch28 -p1
95 + %patch29 -p1
96 + %patch30 -p1
97  
98   # The following patch can only be applied on SLC5 or later (extra linker
99   # options only available with the SLC5 binutils)
# Line 194 | Line 205 | cp -r cint/reflex/python/genreflex $ROOT
205   # a """ and it thinks is the shebang.
206   rm -f %i/tutorials/pyroot/mrt.py
207  
197 # SCRAM ToolBox toolfile
198 mkdir -p %i/etc/scram.d
199 # rootcore toolfile
200 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
201  <tool name="rootcore" version="%v">
202    <info url="http://root.cern.ch/root/"/>
203    <lib name="Tree"/>
204    <lib name="Net"/>
205    <lib name="Thread"/>
206    <lib name="MathCore"/>
207    <lib name="RIO"/>
208    <lib name="Core"/>
209    <lib name="Cint"/>
210    <client>
211      <environment name="ROOTCORE_BASE" default="%i"/>
212      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
213      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
214      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
215    </client>
216    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
217    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
218    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
219    <use name="sockets"/>
220    <use name="pcre"/>
221    <use name="zlib"/>
222  </tool>
223 EOF_TOOLFILE
224
225 # root toolfile, alias for rootphysics. Using rootphysics is preferred.
226 cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
227  <tool name="root" version="%v">
228    <info url="http://root.cern.ch/root/"/>
229    <use name="rootphysics"/>
230  </tool>
231 EOF_TOOLFILE
232
233 # roothistmatrix toolfile
234 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
235  <tool name="roothistmatrix" version="%v">
236    <info url="http://root.cern.ch/root/"/>
237    <lib name="Hist"/>
238    <lib name="Matrix"/>
239    <use name="ROOTCore"/>
240  </tool>
241 EOF_TOOLFILE
242
243 # rootgpad toolfile
244 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
245  <tool name="rootgpad" version="%v">
246    <info url="http://root.cern.ch/root/"/>
247    <lib name="Gpad"/>
248    <lib name="Graf"/>
249    <use name="roothistmatrix"/>
250  </tool>
251 EOF_TOOLFILE
252
253 # rootphysics toolfile
254 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
255  <tool name="rootphysics" version="%v">
256    <info url="http://root.cern.ch/root/"/>
257    <lib name="Physics"/>
258    <use name="roothistmatrix"/>
259  </tool>
260 EOF_TOOLFILE
261
262 # rootgraphics toolfile, identical to old "root" toolfile
263 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
264  <tool name="rootgraphics" version="%v">
265    <info url="http://root.cern.ch/root/"/>
266    <lib name="TreePlayer"/>
267    <lib name="Graf3d"/>
268    <lib name="Postscript"/>
269    <use name="rootgpad"/>
270  </tool>
271 EOF_TOOLFILE
272
273 # rootcintex toolfile
274 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
275  <tool name="rootcintex" version="%v">
276    <info url="http://root.cern.ch/root/"/>
277    <lib name="Cintex"/>
278    <use name="ROOTRflx"/>
279    <use name="ROOTCore"/>
280  </tool>
281 EOF_TOOLFILE
282
283 # rootinteractive toolfile (GQt/qt lib dependencies
284 # have been moved to rootqt.xml)
285 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
286  <tool name="rootinteractive" version="%v">
287    <info url="http://root.cern.ch/root/"/>
288    <lib name="Rint"/>
289    <lib name="Gui"/>
290    <use name="libjpg"/>
291    <use name="libpng"/>
292    <use name="rootgpad"/>
293  </tool>
294 EOF_TOOLFILE
295
296 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
297  <tool name="rootqt" version="%v">
298    <info url="http://root.cern.ch/root/"/>
299    <lib name="GQt"/>
300    <use name="qt"/>
301  </tool>
302 EOF_TOOLFILE
303
304 # rootmath toolfile
305 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
306  <tool name="rootmath" version="%v">
307    <info url="http://root.cern.ch/root/"/>
308    <lib name="GenVector"/>
309    <lib name="MathMore"/>
310    <use name="ROOTCore"/>
311    <use name="gsl"/>
312  </tool>
313 EOF_TOOLFILE
314
315 # rootminuit toolfile
316 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
317  <tool name="rootminuit" version="%v">
318    <info url="http://root.cern.ch/root/"/>
319    <lib name="Minuit"/>
320    <use name="rootgpad"/>
321  </tool>
322 EOF_TOOLFILE
323
324 # rootminuit2 toolfile
325 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
326  <tool name="rootminuit2" version="%v">
327    <info url="http://root.cern.ch/root/"/>
328    <lib name="Minuit2"/>
329    <use name="rootgpad"/>
330  </tool>
331 EOF_TOOLFILE
332
333 # rootrflx toolfile
334 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
335  <tool name="rootrflx" version="%v">
336    <info url="http://root.cern.ch/root/"/>
337    <lib name="Reflex"/>
338    <client>
339      <environment name="ROOTRFLX_BASE" default="%i"/>
340      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
341      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
342    </client>
343    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
344    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
345    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
346    <use name="sockets"/>
347    <use name="gccxml"/>
348  </tool>
349 EOF_TOOLFILE
350
351 # roothtml toolfile
352 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
353  <tool name="roothtml" version="%v">
354    <info url="http://root.cern.ch/root/"/>
355    <lib name="Html"/>
356    <use name="rootgpad"/>
357  </tool>
358 EOF_TOOLFILE
359
360 # rootmlp toolfile
361 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
362  <tool name="rootmlp" version="%v">
363    <info url="http://root.cern.ch/root/"/>
364    <lib name="MLP"/>
365    <use name="RootGraphics"/>
366  </tool>
367 EOF_TOOLFILE
368
369 # roottmva toolfile
370 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
371  <tool name="roottmva" version="%v">
372    <info url="http://root.cern.ch/root/"/>
373    <lib name="TMVA"/>
374    <use name="ROOTMLP"/>
375    <use name="rootminuit"/>
376  </tool>
377 EOF_TOOLFILE
378
379 # rootthread toolfile
380 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
381  <tool name="rootthread" version="%v">
382    <info url="http://root.cern.ch/root/"/>
383    <use name="ROOTCore"/>
384  </tool>
385 EOF_TOOLFILE
386
387 # rootxml toolfile
388 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
389  <tool name="rootxml" version="%v">
390    <info url="http://root.cern.ch/root/"/>
391    <lib name="XMLParser"/>
392    <use name="ROOTCore"/>
393  </tool>
394 EOF_TOOLFILE
395
396 # rootfoam toolfile
397 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
398  <tool name="rootfoam" version="%v">
399    <info url="http://root.cern.ch/root/"/>
400    <lib name="Foam"/>
401    <use name="roothistmatrix"/>
402  </tool>
403 EOF_TOOLFILE
404
405 %post
406 perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
208  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines