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