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.241 by elmer, Wed Feb 9 14:10:29 2011 UTC vs.
Revision 1.267 by muzaffar, Fri Jun 10 15:44:32 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.27.06b
1 > ### RPM lcg root 5.28.00d
2   ## INITENV +PATH PYTHONPATH %i/lib/python
3   ## INITENV SET ROOTSYS %i  
4   #Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %realversion | tr . -)&module=root&output=/%{n}_v%{realversion}.source.tar.gz
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
12 < Patch2: root-5.22-00a-roofit-silence-static-printout
13 < Patch3: root-5.22-00d-linker-gnu-hash-style
14 < Patch4: root-5.22-00d-TBranchElement-dropped-data-member
15 < Patch5: root-5.27-06-fireworks9
16 < Patch6: root-5.27-06b-gdb-backtrace
17 < Patch7: root-5.27-06-tmva-DecisionTreeNode
18 < Patch8: root-5.27-06b-r36567
19 < Patch9: root-5.27-06b-r36572
20 < Patch10: root-5.27-06b-r36707
21 < Patch11: root-5.27-06b-r36594
23 < Patch12: root-5.27-06b-tmva-MethodBase-initvar
24 < Patch13: root-5.27-06b-r37582-tmva
25 < Patch14: root-5.27-06b-r37405
26 < Patch15: root-5.27-06b-r37556
27 < Patch16: root-5.27-06-fireworks10
28 < Patch17: root-5.27-06-TTreeClonerTopLevel
29 < Patch18: root-5.27-06b-r37947
30 < Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
31 < Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
32 < Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
33 < Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
10 > Patch0: root-5.28-00d-externals
11 > Patch1: root-5.28-00d-CINT-maxlongline-maxtypedef
12 > Patch2: root-5.28-00d-roofit-silence-static-printout
13 > Patch3: root-5.28-00d-linker-gnu-hash-style
14 > Patch4: root-5.28-00d-TBranchElement-dropped-data-member
15 > Patch5: root-5.28-00d-r37582-tmva
16 > Patch6: root-5.28-00d-TTreeCache-r37919
17 > Patch7: root-5.28-00d-r38248-r38259-r38264-r38265-r38267
18 > Patch8: root-5.28-00d-fireworks1
19 > Patch9: root-5.28-00d-r39155
20 > Patch10: root-5.28-00d-r39525
21 > Patch11: root-5.28-00d-r39657
22  
23   %define cpu %(echo %cmsplatf | cut -d_ -f2)
24  
# Line 48 | Line 36 | Requires: openssl zlib xrootd
36   Requires: gfortran-macosx
37   %endif
38  
51 %if "%online" != "true"
52 %if "%ismac" != "true"
53 Requires: qt
54 %endif
55 %endif
56
39   %prep
40   %setup -n root
41   %patch0 -p1
# Line 67 | Line 49 | Requires: qt
49   %patch8 -p1
50   %patch9 -p1
51   %patch10 -p1
52 < %patch11 -p1
71 < %patch12 -p1
72 < %patch13 -p1
73 < %patch14 -p1
74 < %patch15 -p1
75 < %patch16 -p1
76 < %patch17 -p0
77 < %patch18 -p1
78 < %patch19 -p0
79 < %patch20 -p1
80 < %patch21 -p1
81 < %patch22 -p1
52 > %patch11 -p0
53  
54   # The following patch can only be applied on SLC5 or later (extra linker
55   # options only available with the SLC5 binutils)
# Line 100 | Line 71 | export ROOTSYS=%_builddir/root
71   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
72  
73   %if "%online" == "true"
74 < # Use system qt. Also skip xrootd and odbc for online case:
74 > # Also skip xrootd and odbc for online case:
75  
76   EXTRA_CONFIG_ARGS="--with-f77=/usr
77 <             --disable-odbc
107 <             --disable-qt --disable-qtgsi --disable-astiff"
77 >             --disable-odbc --disable-astiff"
78   %else
79   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
80   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
111             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
81               --with-ssl-incdir=${OPENSSL_ROOT}/include
82 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
114 <             --enable-qtgsi"
82 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
83   %endif
84  
85   CONFIG_ARGS="--enable-table
# Line 137 | Line 105 | CONFIG_ARGS="--enable-table
105               --with-dcap-incdir=${DCAP_ROOT}/include
106               --disable-pgsql
107               --disable-mysql
108 <             --disable-oracle
109 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
108 >             --disable-qt --disable-qtgsi
109 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
110  
111   case %cmsos in
112    slc*_amd64)
# Line 166 | Line 134 | case %cmsos in
134      ./configure linux $CONFIG_ARGS --disable-rfio;;
135   esac
136  
137 < case %cmsplatf in
170 <  osx*)
171 <   makeopts=
172 <  ;;
173 <  *)
174 <   makeopts="%makeprocesses"
175 <  ;;
176 < esac
137 > makeopts="%makeprocesses"
138  
139   make $makeopts
179 make cintdlls
140  
141   %install
142   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 198 | Line 158 | cp -r cint/reflex/python/genreflex $ROOT
158   # a """ and it thinks is the shebang.
159   rm -f %i/tutorials/pyroot/mrt.py
160  
201 # SCRAM ToolBox toolfile
202 mkdir -p %i/etc/scram.d
203 # rootcore toolfile
204 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
205  <tool name="rootcore" version="%v">
206    <info url="http://root.cern.ch/root/"/>
207    <lib name="Tree"/>
208    <lib name="Net"/>
209    <lib name="Thread"/>
210    <lib name="MathCore"/>
211    <lib name="RIO"/>
212    <lib name="Core"/>
213    <lib name="Cint"/>
214    <client>
215      <environment name="ROOTCORE_BASE" default="%i"/>
216      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
217      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
218      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
219    </client>
220    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
221    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
222    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
223    <use name="sockets"/>
224    <use name="pcre"/>
225    <use name="zlib"/>
226  </tool>
227 EOF_TOOLFILE
228
229 # root toolfile, alias for rootphysics. Using rootphysics is preferred.
230 cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
231  <tool name="root" version="%v">
232    <info url="http://root.cern.ch/root/"/>
233    <use name="rootphysics"/>
234  </tool>
235 EOF_TOOLFILE
236
237 # roothistmatrix toolfile
238 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
239  <tool name="roothistmatrix" version="%v">
240    <info url="http://root.cern.ch/root/"/>
241    <lib name="Hist"/>
242    <lib name="Matrix"/>
243    <use name="ROOTCore"/>
244  </tool>
245 EOF_TOOLFILE
246
247 # rootgpad toolfile
248 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
249  <tool name="rootgpad" version="%v">
250    <info url="http://root.cern.ch/root/"/>
251    <lib name="Gpad"/>
252    <lib name="Graf"/>
253    <use name="roothistmatrix"/>
254  </tool>
255 EOF_TOOLFILE
256
257 # rootphysics toolfile
258 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
259  <tool name="rootphysics" version="%v">
260    <info url="http://root.cern.ch/root/"/>
261    <lib name="Physics"/>
262    <use name="roothistmatrix"/>
263  </tool>
264 EOF_TOOLFILE
265
266 # rootgraphics toolfile, identical to old "root" toolfile
267 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
268  <tool name="rootgraphics" version="%v">
269    <info url="http://root.cern.ch/root/"/>
270    <lib name="TreePlayer"/>
271    <lib name="Graf3d"/>
272    <lib name="Postscript"/>
273    <use name="rootgpad"/>
274  </tool>
275 EOF_TOOLFILE
276
277 # rootcintex toolfile
278 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
279  <tool name="rootcintex" version="%v">
280    <info url="http://root.cern.ch/root/"/>
281    <lib name="Cintex"/>
282    <use name="ROOTRflx"/>
283    <use name="ROOTCore"/>
284  </tool>
285 EOF_TOOLFILE
286
287 # rootinteractive toolfile (GQt/qt lib dependencies
288 # have been moved to rootqt.xml)
289 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
290  <tool name="rootinteractive" version="%v">
291    <info url="http://root.cern.ch/root/"/>
292    <lib name="Rint"/>
293    <lib name="Gui"/>
294    <use name="libjpg"/>
295    <use name="libpng"/>
296    <use name="rootgpad"/>
297  </tool>
298 EOF_TOOLFILE
299
300 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
301  <tool name="rootqt" version="%v">
302    <info url="http://root.cern.ch/root/"/>
303    <lib name="GQt"/>
304    <use name="qt"/>
305  </tool>
306 EOF_TOOLFILE
307
308 # rootmath toolfile
309 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
310  <tool name="rootmath" version="%v">
311    <info url="http://root.cern.ch/root/"/>
312    <lib name="GenVector"/>
313    <lib name="MathMore"/>
314    <use name="ROOTCore"/>
315    <use name="gsl"/>
316  </tool>
317 EOF_TOOLFILE
318
319 # rootminuit toolfile
320 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
321  <tool name="rootminuit" version="%v">
322    <info url="http://root.cern.ch/root/"/>
323    <lib name="Minuit"/>
324    <use name="rootgpad"/>
325  </tool>
326 EOF_TOOLFILE
327
328 # rootminuit2 toolfile
329 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
330  <tool name="rootminuit2" version="%v">
331    <info url="http://root.cern.ch/root/"/>
332    <lib name="Minuit2"/>
333    <use name="rootgpad"/>
334  </tool>
335 EOF_TOOLFILE
336
337 # rootrflx toolfile
338 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
339  <tool name="rootrflx" version="%v">
340    <info url="http://root.cern.ch/root/"/>
341    <lib name="Reflex"/>
342    <client>
343      <environment name="ROOTRFLX_BASE" default="%i"/>
344      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
345      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
346    </client>
347    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
348    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
349    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
350    <use name="sockets"/>
351    <use name="gccxml"/>
352  </tool>
353 EOF_TOOLFILE
354
355 # roothtml toolfile
356 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
357  <tool name="roothtml" version="%v">
358    <info url="http://root.cern.ch/root/"/>
359    <lib name="Html"/>
360    <use name="rootgpad"/>
361  </tool>
362 EOF_TOOLFILE
363
364 # rootmlp toolfile
365 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
366  <tool name="rootmlp" version="%v">
367    <info url="http://root.cern.ch/root/"/>
368    <lib name="MLP"/>
369    <use name="RootGraphics"/>
370  </tool>
371 EOF_TOOLFILE
372
373 # roottmva toolfile
374 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
375  <tool name="roottmva" version="%v">
376    <info url="http://root.cern.ch/root/"/>
377    <lib name="TMVA"/>
378    <use name="ROOTMLP"/>
379    <use name="rootminuit"/>
380  </tool>
381 EOF_TOOLFILE
382
383 # rootthread toolfile
384 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
385  <tool name="rootthread" version="%v">
386    <info url="http://root.cern.ch/root/"/>
387    <use name="ROOTCore"/>
388  </tool>
389 EOF_TOOLFILE
390
391 %post
392 perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
161  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines