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.155 by elmer, Thu Apr 16 21:08:49 2009 UTC vs.
Revision 1.202 by muzaffar, Wed Aug 11 13:03:12 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00a
1 > ### RPM lcg root 5.22.00d
2   ## INITENV +PATH PYTHONPATH %i/lib/python
3 < ## INITENV SET ROOTSYS %i
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  
9 < Patch0:  root-5.18-00-libpng
10 < Patch1:  root-5.21-04-CINT-maxlongline
11 < Patch2:  root-5.22-00-TMVA-shut-the-hell-up-for-once
12 < Patch3:  root-5.22-00a-TMVA-shut-the-hell-up-again
13 < Patch4:  root-5.22-00a-CINTFunctional
14 < Patch5:  root-5.22-00a-TClass
15 < Patch6:  root-5.22-00a-fireworks-graf3d-gui
16 < Patch7:  root-5.22-00a-Reflex-Class
17 < Patch8:  root-5.22-00a-Cintex
18 < Patch9:  root-5.22-00a-roofit-silence-static-printout
19 < Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up
9 > Patch0: root-5.18-00-libpng
10 > Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
11 > Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
12 > Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
13 > Patch4: root-5.22-00d-fireworks-graf3d-gui
14 > Patch5: root-5.22-00a-roofit-silence-static-printout
15 > Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
16 > Patch7: root-5.22-00a-th1
17 > Patch8: root-5.22-00d-makelib-ldl
18 > Patch9: root-5.22-00a-fireworks1
19 > Patch10: root-5.22-00a-gcc44
20 > Patch11: root-5.22-00a-fireworks2
21 > Patch12: root-5.22-00a-fireworks3
22 > Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
23 > Patch14: root-5.22-00a-fireworks4
24 > Patch15: root-5.22-00d-fireworks5
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 > Patch21: root-5.22-00d-fireworks7
31 > Patch22: root-5.22-00d-TMath-Vavilov
32 > Patch23: root-5.22-00d-TBranchElement-dropped-data-member
33 > Patch24: root-5.22-00d-fireworks8
34 > Patch25: root-5.22-00d-fix-python-shebang
35 > Patch26: root-5.22-00d-RootsysOnMac
36  
37   %define cpu %(echo %cmsplatf | cut -d_ -f2)
20 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
38  
39   Requires: gccxml gsl castor libjpg dcap pcre python
40  
41 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
42 < Requires: qt openssl mysql libpng zlib libungif xrootd
41 > %if "%online" != "true"
42 > Requires: qt openssl libpng zlib libungif xrootd
43   %else
44   %define skiplibtiff true
45   %endif
# Line 42 | Line 59 | Requires: libtiff
59   %patch2 -p1
60   %patch3 -p1
61   %patch4 -p1
62 +
63   %patch5 -p1
64   %patch6 -p1
65 < %patch7 -p0
66 < %patch8 -p0
65 > %patch7 -p1
66 > %patch8 -p1
67   %patch9 -p1
68 +
69 + # patch10 is compiler version dependent, see below
70 + %patch11 -p1
71 + %patch12 -p1
72 + # patch13 is compiler version dependent, see below
73 +
74 + # work around patch issue...
75 + rm graf3d/gl/src/gl2ps.c
76 + %patch14 -p1
77 + #work around patch issues in patch14(?)
78 + rm graf3d/eve/inc/TEveLegoOverlay.h.orig
79 + rm graf3d/eve/src/TEveLegoOverlay.cxx
80 + rm graf3d/gl/inc/gl2ps.h.orig
81 + rm graf3d/gl/src/gl2ps.c.orig
82 + %patch15 -p1
83 + %patch16 -p1
84 + %patch17 -p1
85 + %patch19 -p1
86 + %patch20 -p1
87 + %patch21 -p1
88 + %patch22 -p1
89 + %patch23 -p1
90 + %patch24 -p1
91 + %patch25 -p1
92 + %patch26 -p1
93 +
94 + case %gccver in
95 +  4.3.*)
96 + %patch13 -p1
97 +  ;;
98 +  4.4.*)
99   %patch10 -p1
100 +  ;;
101 + esac
102 +
103 + # The following patch can only be applied on SLC5 or later (extra linker
104 + # options only available with the SLC5 binutils)
105 + case %cmsplatf in
106 +  slc5_* | slc5onl_* )
107 + %patch18 -p1
108 +  ;;
109 + esac
110  
111   %build
112 +
113   mkdir -p %i
114   export ROOTSYS=%_builddir/root
115 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
116  
117 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
118 < # Build without mysql, and use system qt.
58 < # Also skip xrootd and odbc for online case:
117 > %if "%online" == "true"
118 > # Use system qt. Also skip xrootd and odbc for online case:
119  
120 < EXTRA_CONFIG_ARGS="
61 <             --disable-mysql
120 > EXTRA_CONFIG_ARGS="--with-f77=/usr
121               --disable-xrootd
122               --disable-odbc
123 <             --enable-qt"
123 >             --disable-qt --disable-qtgsi"
124   %else
125 < EXTRA_CONFIG_ARGS="
125 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
126               --with-xrootd=$XROOTD_ROOT
68             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
127               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
128               --with-ssl-incdir=${OPENSSL_ROOT}/include
129 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
129 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
130 >             --enable-qtgsi"
131   %endif
132  
133 < CONFIG_ARGS="--with-f77=${GCC_ROOT}
75 <             --enable-table
133 > CONFIG_ARGS="--enable-table
134               --disable-builtin-pcre
135               --disable-builtin-freetype
136               --disable-builtin-zlib
137               --with-gccxml=${GCCXML_ROOT}
138 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
138 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
139               --enable-explicitlink
82             --enable-qtgsi
140               --enable-mathmore
141               --enable-reflex  
142               --enable-cintex
143               --enable-minuit2
87             --enable-roofit
144               --disable-ldap
145               --disable-krb5
146               --with-gsl-incdir=${GSL_ROOT}/include
# Line 92 | Line 148 | CONFIG_ARGS="--with-f77=${GCC_ROOT}
148               --with-dcap-libdir=${DCAP_ROOT}/lib
149               --with-dcap-incdir=${DCAP_ROOT}/include
150               --disable-pgsql
151 +             --disable-mysql
152               --disable-xml ${EXTRA_CONFIG_ARGS}"
153  
154 < #case %gccver in
98 < #  4.*)
99 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
100 < #  ;;
101 < #esac
102 <
103 < case $(uname)-$(uname -p) in
154 > case $(uname)-$(uname -m) in
155    Linux-x86_64)
156      ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
157    Linux-i*86)
158      ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
159    Darwin*)
160 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
160 >    case %cmsplatf in
161 >    *_ia32_* )
162 >      comparch=i386 ;;
163 >    *_amd64_* )
164 >      comparch=x86_64 ;;
165 >    * )
166 >      comparch=ppc ;;
167 >    esac
168 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
169 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
170    Linux-ppc64*)
171      ./configure linux $CONFIG_ARGS --disable-rfio;;
172   esac
# Line 144 | Line 204 | cp -r cint/reflex/python/genreflex $ROOT
204   # SCRAM ToolBox toolfile
205   mkdir -p %i/etc/scram.d
206   # rootcore toolfile
207 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
208 < <doc type=BuildSystem::ToolDoc version=1.0>
209 < <Tool name=rootcore version=%v>
210 < <info url="http://root.cern.ch/root/"></info>
211 < <lib name=Tree>
212 < <lib name=Net>
213 < <lib name=Thread>
214 < <lib name=MathCore>
215 < <lib name=RIO>
216 < <lib name=Core>
217 < <lib name=Cint>
218 < <Client>
219 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
220 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
221 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
222 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
223 < </Client>
224 < <use name=sockets>
225 < <use name=pcre>
226 < <use name=zlib>
227 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
228 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
229 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
170 < </Tool>
207 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
208 >  <tool name="rootcore" version="%v">
209 >    <info url="http://root.cern.ch/root/"/>
210 >    <lib name="Tree"/>
211 >    <lib name="Net"/>
212 >    <lib name="Thread"/>
213 >    <lib name="MathCore"/>
214 >    <lib name="RIO"/>
215 >    <lib name="Core"/>
216 >    <lib name="Cint"/>
217 >    <client>
218 >      <environment name="ROOTCORE_BASE" default="%i"/>
219 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
220 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
221 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
222 >    </client>
223 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
224 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
225 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
226 >    <use name="sockets"/>
227 >    <use name="pcre"/>
228 >    <use name="zlib"/>
229 >  </tool>
230   EOF_TOOLFILE
231  
232   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
233 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
234 < <doc type=BuildSystem::ToolDoc version=1.0>
235 < <Tool name=root version=%v>
236 < <info url="http://root.cern.ch/root/"></info>
237 < <use name=rootphysics>
179 < </Tool>
233 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
234 >  <tool name="root" version="%v">
235 >    <info url="http://root.cern.ch/root/"/>
236 >    <use name="rootphysics"/>
237 >  </tool>
238   EOF_TOOLFILE
239  
240   # roothistmatrix toolfile
241 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
242 < <doc type=BuildSystem::ToolDoc version=1.0>
243 < <Tool name=roothistmatrix version=%v>
244 < <info url="http://root.cern.ch/root/"></info>
245 < <lib name=Gpad>
246 < <lib name=Graf>
247 < <lib name=Hist>
248 < <lib name=Matrix>
249 < <use name=ROOTCore>
250 < </Tool>
241 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
242 >  <tool name="roothistmatrix" version="%v">
243 >    <info url="http://root.cern.ch/root/"/>
244 >    <lib name="Hist"/>
245 >    <lib name="Matrix"/>
246 >    <use name="ROOTCore"/>
247 >  </tool>
248 > EOF_TOOLFILE
249 >
250 > # rootgpad toolfile
251 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
252 >  <tool name="rootgpad" version="%v">
253 >    <info url="http://root.cern.ch/root/"/>
254 >    <lib name="Gpad"/>
255 >    <lib name="Graf"/>
256 >    <use name="roothistmatrix"/>
257 >  </tool>
258   EOF_TOOLFILE
259  
260   # rootphysics toolfile
261 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
262 < <doc type=BuildSystem::ToolDoc version=1.0>
263 < <Tool name=rootphysics version=%v>
264 < <info url="http://root.cern.ch/root/"></info>
265 < <lib name=Physics>
266 < <use name=roothistmatrix>
202 < </Tool>
261 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
262 >  <tool name="rootphysics" version="%v">
263 >    <info url="http://root.cern.ch/root/"/>
264 >    <lib name="Physics"/>
265 >    <use name="roothistmatrix"/>
266 >  </tool>
267   EOF_TOOLFILE
268  
269   # rootgraphics toolfile, identical to old "root" toolfile
270 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
271 < <doc type=BuildSystem::ToolDoc version=1.0>
272 < <Tool name=rootgraphics version=%v>
273 < <info url="http://root.cern.ch/root/"></info>
274 < <lib name=TreePlayer>
275 < <lib name=Graf3d>
276 < <lib name=Postscript>
277 < <use name=ROOTPhysics>
214 < </Tool>
270 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
271 >  <tool name="rootgraphics" version="%v">
272 >    <info url="http://root.cern.ch/root/"/>
273 >    <lib name="TreePlayer"/>
274 >    <lib name="Graf3d"/>
275 >    <lib name="Postscript"/>
276 >    <use name="rootgpad"/>
277 >  </tool>
278   EOF_TOOLFILE
279  
280   # rootcintex toolfile
281 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
282 < <doc type=BuildSystem::ToolDoc version=1.0>
283 < <Tool name=rootcintex version=%v>
284 < <info url="http://root.cern.ch/root/"></info>
285 < <lib name=Cintex>
286 < <use name=ROOTRflx>
287 < <use name=ROOTCore>
288 < </Tool>
289 < EOF_TOOLFILE
290 <
291 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
292 < # have been removed for the moment)
293 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
294 < <doc type=BuildSystem::ToolDoc version=1.0>
295 < <Tool name=rootinteractive version=%v>
296 < <info url="http://root.cern.ch/root/"></info>
297 < <lib name=Rint>
298 < <lib name=GQt>
299 < <lib name=Gui>
300 < <use name=qt>
301 < <use name=libjpg>
302 < <use name=libpng>
303 < <use name=ROOT>
304 < </Tool>
281 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
282 >  <tool name="rootcintex" version="%v">
283 >    <info url="http://root.cern.ch/root/"/>
284 >    <lib name="Cintex"/>
285 >    <use name="ROOTRflx"/>
286 >    <use name="ROOTCore"/>
287 >  </tool>
288 > EOF_TOOLFILE
289 >
290 > # rootinteractive toolfile (GQt/qt lib dependencies
291 > # have been moved to rootqt.xml)
292 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
293 >  <tool name="rootinteractive" version="%v">
294 >    <info url="http://root.cern.ch/root/"/>
295 >    <lib name="Rint"/>
296 >    <lib name="Gui"/>
297 >    <use name="libjpg"/>
298 >    <use name="libpng"/>
299 >    <use name="rootgpad"/>
300 >  </tool>
301 > EOF_TOOLFILE
302 >
303 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
304 >  <tool name="rootqt" version="%v">
305 >    <info url="http://root.cern.ch/root/"/>
306 >    <lib name="GQt"/>
307 >    <use name="qt"/>
308 >  </tool>
309   EOF_TOOLFILE
310  
311   # rootmath toolfile
312 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
313 < <doc type=BuildSystem::ToolDoc version=1.0>
314 < <Tool name=rootmath version=%v>
315 < <info url="http://root.cern.ch/root/"></info>
316 < <lib name=GenVector>
317 < <lib name=MathMore>
318 < <use name=ROOTCore>
319 < <use name=gsl>
253 < </Tool>
312 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
313 >  <tool name="rootmath" version="%v">
314 >    <info url="http://root.cern.ch/root/"/>
315 >    <lib name="GenVector"/>
316 >    <lib name="MathMore"/>
317 >    <use name="ROOTCore"/>
318 >    <use name="gsl"/>
319 >  </tool>
320   EOF_TOOLFILE
321  
322   # rootminuit toolfile
323 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
324 < <doc type=BuildSystem::ToolDoc version=1.0>
325 < <Tool name=rootminuit version=%v>
326 < <info url="http://root.cern.ch/root/"></info>
327 < <lib name=Minuit>
328 < <use name=ROOT>
263 < </Tool>
323 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
324 >  <tool name="rootminuit" version="%v">
325 >    <info url="http://root.cern.ch/root/"/>
326 >    <lib name="Minuit"/>
327 >    <use name="rootgpad"/>
328 >  </tool>
329   EOF_TOOLFILE
330  
331   # rootminuit2 toolfile
332 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
333 < <doc type=BuildSystem::ToolDoc version=1.0>
334 < <Tool name=rootminuit2 version=%v>
335 < <info url="http://root.cern.ch/root/"></info>
336 < <lib name=Minuit2>
337 < <use name=ROOT>
273 < </Tool>
332 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
333 >  <tool name="rootminuit2" version="%v">
334 >    <info url="http://root.cern.ch/root/"/>
335 >    <lib name="Minuit2"/>
336 >    <use name="rootgpad"/>
337 >  </tool>
338   EOF_TOOLFILE
339  
340   # rootrflx toolfile
341 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
342 < <doc type=BuildSystem::ToolDoc version=1.0>
343 < <Tool name=rootrflx version=%v>
344 < <info url="http://root.cern.ch/root/"></info>
345 < <lib name=Reflex>
346 < <Client>
347 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
348 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
349 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
350 < </Client>
351 < <use name=sockets>
352 < <use name=gccxml>
353 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
354 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
355 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
292 < </Tool>
341 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
342 >  <tool name="rootrflx" version="%v">
343 >    <info url="http://root.cern.ch/root/"/>
344 >    <lib name="Reflex"/>
345 >    <client>
346 >      <environment name="ROOTRFLX_BASE" default="%i"/>
347 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
348 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
349 >    </client>
350 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
351 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
352 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
353 >    <use name="sockets"/>
354 >    <use name="gccxml"/>
355 >  </tool>
356   EOF_TOOLFILE
357  
358   # roothtml toolfile
359 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
360 < <doc type=BuildSystem::ToolDoc version=1.0>
361 < <Tool name=roothtml version=%v>
362 < <info url="http://root.cern.ch/root/"></info>
363 < <lib name=Html>
364 < <use name=RootHistMatrix>
302 < </Tool>
303 < EOF_TOOLFILE
304 <
305 < # rootroofit toolfile
306 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
307 < <doc type=BuildSystem::ToolDoc version=1.0>
308 < <Tool name=rootroofit version=%v>
309 < <info url="http://root.cern.ch/root/"></info>
310 < <lib name=RooFit>
311 < <lib name=RooFitCore>
312 < <use name=ROOTMinuit>
313 < <use name=ROOTHtml>
314 < </Tool>
359 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
360 >  <tool name="roothtml" version="%v">
361 >    <info url="http://root.cern.ch/root/"/>
362 >    <lib name="Html"/>
363 >    <use name="rootgpad"/>
364 >  </tool>
365   EOF_TOOLFILE
366  
367   # rootmlp toolfile
368 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
369 < <doc type=BuildSystem::ToolDoc version=1.0>
370 < <Tool name=rootmlp version=%v>
371 < <info url="http://root.cern.ch/root/"></info>
372 < <lib name=MLP>
373 < <use name=RootGraphics>
324 < </Tool>
368 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
369 >  <tool name="rootmlp" version="%v">
370 >    <info url="http://root.cern.ch/root/"/>
371 >    <lib name="MLP"/>
372 >    <use name="RootGraphics"/>
373 >  </tool>
374   EOF_TOOLFILE
375  
376   # roottmva toolfile
377 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
378 < <doc type=BuildSystem::ToolDoc version=1.0>
379 < <Tool name=roottmva version=%v>
380 < <info url="http://root.cern.ch/root/"></info>
381 < <lib name=TMVA>
382 < <use name=ROOTMLP>
383 < </Tool>
377 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
378 >  <tool name="roottmva" version="%v">
379 >    <info url="http://root.cern.ch/root/"/>
380 >    <lib name="TMVA"/>
381 >    <use name="ROOTMLP"/>
382 >    <use name="rootminuit"/>
383 >  </tool>
384   EOF_TOOLFILE
385  
386   # rootthread toolfile
387 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
388 < <doc type=BuildSystem::ToolDoc version=1.0>
389 < <Tool name=rootthread version=%v>
390 < <info url="http://root.cern.ch/root/"></info>
391 < <use name=ROOTCore>
343 < </Tool>
387 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
388 >  <tool name="rootthread" version="%v">
389 >    <info url="http://root.cern.ch/root/"/>
390 >    <use name="ROOTCore"/>
391 >  </tool>
392   EOF_TOOLFILE
393  
394   %post
395 < %{relocateConfig}etc/scram.d/root
348 < %{relocateConfig}etc/scram.d/rootcore
349 < %{relocateConfig}etc/scram.d/roothistmatrix
350 < %{relocateConfig}etc/scram.d/rootphysics
351 < %{relocateConfig}etc/scram.d/rootgraphics
352 < %{relocateConfig}etc/scram.d/rootcintex
353 < %{relocateConfig}etc/scram.d/rootinteractive
354 < %{relocateConfig}etc/scram.d/rootmath
355 < %{relocateConfig}etc/scram.d/rootminuit
356 < %{relocateConfig}etc/scram.d/rootminuit2
357 < %{relocateConfig}etc/scram.d/rootrflx
358 < %{relocateConfig}etc/scram.d/roothtml
359 < %{relocateConfig}etc/scram.d/rootroofit
360 < %{relocateConfig}etc/scram.d/rootmlp
361 < %{relocateConfig}etc/scram.d/roottmva
362 < %{relocateConfig}etc/scram.d/rootthread
395 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines