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.132 by elmer, Thu Jan 15 00:59:45 2009 UTC vs.
Revision 1.222 by elmer, Mon Dec 6 06:22:49 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00
1 > ### RPM lcg root 5.27.06b
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-TClass-Clone
12 < Patch3:  root-5.22-00-gendict
13 < Patch4:  root-5.22-00-RootSys
9 > Patch0: root-5.27-06-externals
10 > Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
11 > Patch2: root-5.22-00a-roofit-silence-static-printout
12 > Patch3: root-5.22-00d-linker-gnu-hash-style
13 > Patch4: root-5.22-00d-TBranchElement-dropped-data-member
14 > Patch5: root-5.27-06-fireworks9
15 > Patch6: root-5.27-06b-gdb-backtrace
16 > Patch7: root-5.27-06-tmva-DecisionTreeNode
17 > Patch8: root-5.27-06b-r36567
18 > Patch9: root-5.27-06b-r36572
19 > Patch10: root-5.27-06b-r36707
20 > Patch11: root-5.27-06b-r36594
21 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
22 > Patch13: root-5.27-06b-tmva_Event_dynamic_hack
23  
24   %define cpu %(echo %cmsplatf | cut -d_ -f2)
14 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
25  
26 < Requires: gccxml gsl castor libjpg dcap pcre python
27 <
28 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
19 < Requires: qt openssl mysql libpng zlib libungif
20 < %else
21 < %define skiplibtiff true
22 < %endif
23 <
24 < %if "%cpu" == "amd64"
25 < %define skiplibtiff true
26 < %endif
27 <
28 < %if "%skiplibtiff" != "true"
29 < Requires: libtiff
26 > Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3
27 > %if "%online" != "true"
28 > Requires: qt openssl libpng zlib libungif libtiff
29   %endif
30  
31   %prep
# Line 34 | Line 33 | Requires: libtiff
33   %patch0 -p1
34   %patch1 -p1
35   %patch2 -p1
36 < %patch3 -p1
36 > # patch3 is OS version dependent, see below
37   %patch4 -p1
38 + %patch5 -p1
39 + %patch6 -p1
40 + %patch7 -p1
41 + %patch8 -p1
42 + %patch9 -p1
43 + %patch10 -p1
44 + %patch11 -p1
45 + %patch12 -p1
46 + %patch13 -p1
47 +
48 + # The following patch can only be applied on SLC5 or later (extra linker
49 + # options only available with the SLC5 binutils)
50 + case %cmsplatf in
51 +  slc5_* | slc5onl_* )
52 + %patch3 -p1
53 +  ;;
54 + esac
55  
56   %build
57 +
58   mkdir -p %i
59 + export LIBJPG_ROOT
60   export ROOTSYS=%_builddir/root
61 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
62  
63 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
64 < # Build without mysql, and use system qt.
46 < # Also skip xrootd and odbc for online case:
63 > %if "%online" == "true"
64 > # Use system qt. Also skip xrootd and odbc for online case:
65  
66 < EXTRA_CONFIG_ARGS="
49 <             --disable-mysql
50 <             --disable-xrootd
66 > EXTRA_CONFIG_ARGS="--with-f77=/usr
67               --disable-odbc
68 <             --enable-qt"
68 >             --disable-qt --disable-qtgsi --disable-astiff"
69   %else
70 < EXTRA_CONFIG_ARGS="
71 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
70 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
71 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
72               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
73               --with-ssl-incdir=${OPENSSL_ROOT}/include
74 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
74 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
75 >             --enable-qtgsi"
76   %endif
77  
78 < CONFIG_ARGS="--with-f77=${GCC_ROOT}
62 <             --enable-table
78 > CONFIG_ARGS="--enable-table
79               --disable-builtin-pcre
80               --disable-builtin-freetype
81               --disable-builtin-zlib
82               --with-gccxml=${GCCXML_ROOT}
83 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
83 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
84               --enable-explicitlink
69             --enable-qtgsi
85               --enable-mathmore
86               --enable-reflex  
87               --enable-cintex
88               --enable-minuit2
89 <             --enable-roofit
89 >             --enable-fftw3
90 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
91 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
92               --disable-ldap
93               --disable-krb5
94 +             --with-xrootd=${XROOTD_ROOT}
95               --with-gsl-incdir=${GSL_ROOT}/include
96               --with-gsl-libdir=${GSL_ROOT}/lib
97               --with-dcap-libdir=${DCAP_ROOT}/lib
98               --with-dcap-incdir=${DCAP_ROOT}/include
99               --disable-pgsql
100 +             --disable-mysql
101               --disable-xml ${EXTRA_CONFIG_ARGS}"
102  
103 < #case %gccver in
85 < #  4.*)
86 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
87 < #  ;;
88 < #esac
89 <
90 < case $(uname)-$(uname -p) in
103 > case $(uname)-$(uname -m) in
104    Linux-x86_64)
105 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
105 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;;
106    Linux-i*86)
107 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
107 >    ./configure linux  $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;;
108    Darwin*)
109 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
109 >    case %cmsplatf in
110 >    *_ia32_* )
111 >      comparch=i386 ;;
112 >    *_amd64_* )
113 >      comparch=x86_64 ;;
114 >    * )
115 >      comparch=ppc ;;
116 >    esac
117 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
118 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
119    Linux-ppc64*)
120      ./configure linux $CONFIG_ARGS --disable-rfio;;
121   esac
122  
123 < make  %makeprocesses
123 > case %cmsplatf in
124 >  osx*)
125 >   makeopts=
126 >  ;;
127 >  *)
128 >   makeopts="%makeprocesses"
129 >  ;;
130 > esac
131 >
132 > make $makeopts
133   make cintdlls
134 +
135   %install
136   # Override installers if we are using GNU fileutils cp.  On OS X
137   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 116 | Line 148 | export ROOTSYS=%i
148   make INSTALL="$cp" INSTALLDATA="$cp" install
149   mkdir -p $ROOTSYS/lib/python
150   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
119 #
151  
152   # SCRAM ToolBox toolfile
153   mkdir -p %i/etc/scram.d
154   # rootcore toolfile
155 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
156 < <doc type=BuildSystem::ToolDoc version=1.0>
157 < <Tool name=rootcore version=%v>
158 < <info url="http://root.cern.ch/root/"></info>
159 < <lib name=Cint>
160 < <lib name=Core>
161 < <lib name=RIO>
162 < <lib name=Net>
163 < <lib name=Tree>
164 < <Client>
165 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
166 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
167 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
168 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
169 < </Client>
170 < <use name=sockets>
171 < <use name=pcre>
172 < <use name=zlib>
173 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
174 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
175 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
176 < </Tool>
155 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
156 >  <tool name="rootcore" version="%v">
157 >    <info url="http://root.cern.ch/root/"/>
158 >    <lib name="Tree"/>
159 >    <lib name="Net"/>
160 >    <lib name="Thread"/>
161 >    <lib name="MathCore"/>
162 >    <lib name="RIO"/>
163 >    <lib name="Core"/>
164 >    <lib name="Cint"/>
165 >    <client>
166 >      <environment name="ROOTCORE_BASE" default="%i"/>
167 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
168 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
169 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
170 >    </client>
171 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
172 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
173 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
174 >    <use name="sockets"/>
175 >    <use name="pcre"/>
176 >    <use name="zlib"/>
177 >  </tool>
178   EOF_TOOLFILE
179  
180   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
181 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
182 < <doc type=BuildSystem::ToolDoc version=1.0>
183 < <Tool name=root version=%v>
184 < <info url="http://root.cern.ch/root/"></info>
185 < <use name=rootphysics>
154 < </Tool>
181 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
182 >  <tool name="root" version="%v">
183 >    <info url="http://root.cern.ch/root/"/>
184 >    <use name="rootphysics"/>
185 >  </tool>
186   EOF_TOOLFILE
187  
188   # roothistmatrix toolfile
189 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
190 < <doc type=BuildSystem::ToolDoc version=1.0>
191 < <Tool name=roothistmatrix version=%v>
192 < <info url="http://root.cern.ch/root/"></info>
193 < <lib name=Hist>
194 < <lib name=Matrix>
195 < <use name=ROOTCore>
196 < </Tool>
189 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
190 >  <tool name="roothistmatrix" version="%v">
191 >    <info url="http://root.cern.ch/root/"/>
192 >    <lib name="Hist"/>
193 >    <lib name="Matrix"/>
194 >    <use name="ROOTCore"/>
195 >  </tool>
196 > EOF_TOOLFILE
197 >
198 > # rootgpad toolfile
199 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
200 >  <tool name="rootgpad" version="%v">
201 >    <info url="http://root.cern.ch/root/"/>
202 >    <lib name="Gpad"/>
203 >    <lib name="Graf"/>
204 >    <use name="roothistmatrix"/>
205 >  </tool>
206   EOF_TOOLFILE
207  
208   # rootphysics toolfile
209 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
210 < <doc type=BuildSystem::ToolDoc version=1.0>
211 < <Tool name=rootphysics version=%v>
212 < <info url="http://root.cern.ch/root/"></info>
213 < <lib name=Physics>
214 < <use name=roothistmatrix>
175 < </Tool>
209 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
210 >  <tool name="rootphysics" version="%v">
211 >    <info url="http://root.cern.ch/root/"/>
212 >    <lib name="Physics"/>
213 >    <use name="roothistmatrix"/>
214 >  </tool>
215   EOF_TOOLFILE
216  
217   # rootgraphics toolfile, identical to old "root" toolfile
218 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
219 < <doc type=BuildSystem::ToolDoc version=1.0>
220 < <Tool name=rootgraphics version=%v>
221 < <info url="http://root.cern.ch/root/"></info>
222 < <lib name=TreePlayer>
223 < <lib name=Gpad>
224 < <lib name=Graf3d>
225 < <lib name=Graf>
187 < <lib name=Hist>
188 < <lib name=Matrix>
189 < <lib name=Physics>
190 < <lib name=Postscript>
191 < <use name=ROOTCore>
192 < </Tool>
218 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
219 >  <tool name="rootgraphics" version="%v">
220 >    <info url="http://root.cern.ch/root/"/>
221 >    <lib name="TreePlayer"/>
222 >    <lib name="Graf3d"/>
223 >    <lib name="Postscript"/>
224 >    <use name="rootgpad"/>
225 >  </tool>
226   EOF_TOOLFILE
227  
228   # rootcintex toolfile
229 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
230 < <doc type=BuildSystem::ToolDoc version=1.0>
231 < <Tool name=rootcintex version=%v>
232 < <info url="http://root.cern.ch/root/"></info>
233 < <lib name=Cintex>
234 < <use name=ROOTRflx>
235 < <use name=ROOTCore>
236 < </Tool>
237 < EOF_TOOLFILE
238 <
239 < # rootinteractive toolfile
240 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
241 < <doc type=BuildSystem::ToolDoc version=1.0>
242 < <Tool name=rootinteractive version=%v>
243 < <info url="http://root.cern.ch/root/"></info>
244 < <lib name=Rint>
245 < <lib name=GQt>
246 < <use name=qt>
247 < <use name=libjpg>
248 < <use name=libpng>
249 < <use name=ROOT>
250 < </Tool>
229 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
230 >  <tool name="rootcintex" version="%v">
231 >    <info url="http://root.cern.ch/root/"/>
232 >    <lib name="Cintex"/>
233 >    <use name="ROOTRflx"/>
234 >    <use name="ROOTCore"/>
235 >  </tool>
236 > EOF_TOOLFILE
237 >
238 > # rootinteractive toolfile (GQt/qt lib dependencies
239 > # have been moved to rootqt.xml)
240 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
241 >  <tool name="rootinteractive" version="%v">
242 >    <info url="http://root.cern.ch/root/"/>
243 >    <lib name="Rint"/>
244 >    <lib name="Gui"/>
245 >    <use name="libjpg"/>
246 >    <use name="libpng"/>
247 >    <use name="rootgpad"/>
248 >  </tool>
249 > EOF_TOOLFILE
250 >
251 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
252 >  <tool name="rootqt" version="%v">
253 >    <info url="http://root.cern.ch/root/"/>
254 >    <lib name="GQt"/>
255 >    <use name="qt"/>
256 >  </tool>
257   EOF_TOOLFILE
258  
259   # rootmath toolfile
260 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
261 < <doc type=BuildSystem::ToolDoc version=1.0>
262 < <Tool name=rootmath version=%v>
263 < <info url="http://root.cern.ch/root/"></info>
264 < <lib name=MathCore>
265 < <lib name=MathMore>
266 < <lib name=GenVector>
267 < <use name=ROOTCore>
229 < <use name=gsl>
230 < </Tool>
260 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
261 >  <tool name="rootmath" version="%v">
262 >    <info url="http://root.cern.ch/root/"/>
263 >    <lib name="GenVector"/>
264 >    <lib name="MathMore"/>
265 >    <use name="ROOTCore"/>
266 >    <use name="gsl"/>
267 >  </tool>
268   EOF_TOOLFILE
269  
270   # rootminuit toolfile
271 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
272 < <doc type=BuildSystem::ToolDoc version=1.0>
273 < <Tool name=rootminuit version=%v>
274 < <info url="http://root.cern.ch/root/"></info>
275 < <lib name=Minuit>
276 < <use name=ROOT>
240 < </Tool>
271 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
272 >  <tool name="rootminuit" version="%v">
273 >    <info url="http://root.cern.ch/root/"/>
274 >    <lib name="Minuit"/>
275 >    <use name="rootgpad"/>
276 >  </tool>
277   EOF_TOOLFILE
278  
279   # rootminuit2 toolfile
280 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
281 < <doc type=BuildSystem::ToolDoc version=1.0>
282 < <Tool name=rootminuit2 version=%v>
283 < <info url="http://root.cern.ch/root/"></info>
284 < <lib name=Minuit2>
285 < <use name=ROOT>
250 < </Tool>
280 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
281 >  <tool name="rootminuit2" version="%v">
282 >    <info url="http://root.cern.ch/root/"/>
283 >    <lib name="Minuit2"/>
284 >    <use name="rootgpad"/>
285 >  </tool>
286   EOF_TOOLFILE
287  
288   # rootrflx toolfile
289 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
290 < <doc type=BuildSystem::ToolDoc version=1.0>
291 < <Tool name=rootrflx version=%v>
292 < <info url="http://root.cern.ch/root/"></info>
293 < <lib name=Reflex>
294 < <Client>
295 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
296 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
297 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
298 < </Client>
299 < <use name=sockets>
300 < <use name=gccxml>
301 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
302 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
303 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
269 < </Tool>
289 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
290 >  <tool name="rootrflx" version="%v">
291 >    <info url="http://root.cern.ch/root/"/>
292 >    <lib name="Reflex"/>
293 >    <client>
294 >      <environment name="ROOTRFLX_BASE" default="%i"/>
295 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
296 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
297 >    </client>
298 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
299 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
300 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
301 >    <use name="sockets"/>
302 >    <use name="gccxml"/>
303 >  </tool>
304   EOF_TOOLFILE
305  
306   # roothtml toolfile
307 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
308 < <doc type=BuildSystem::ToolDoc version=1.0>
309 < <Tool name=roothtml version=%v>
310 < <info url="http://root.cern.ch/root/"></info>
311 < <lib name=Html>
312 < <use name=ROOT>
279 < </Tool>
280 < EOF_TOOLFILE
281 <
282 < # rootroofit toolfile
283 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
284 < <doc type=BuildSystem::ToolDoc version=1.0>
285 < <Tool name=rootroofit version=%v>
286 < <info url="http://root.cern.ch/root/"></info>
287 < <lib name=RooFitCore>
288 < <lib name=RooFit>
289 < <use name=ROOTMinuit>
290 < <use name=ROOTHtml>
291 < </Tool>
307 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
308 >  <tool name="roothtml" version="%v">
309 >    <info url="http://root.cern.ch/root/"/>
310 >    <lib name="Html"/>
311 >    <use name="rootgpad"/>
312 >  </tool>
313   EOF_TOOLFILE
314  
315   # rootmlp toolfile
316 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
317 < <doc type=BuildSystem::ToolDoc version=1.0>
318 < <Tool name=rootmlp version=%v>
319 < <info url="http://root.cern.ch/root/"></info>
320 < <lib name=MLP>
321 < <use name=ROOT>
301 < </Tool>
316 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
317 >  <tool name="rootmlp" version="%v">
318 >    <info url="http://root.cern.ch/root/"/>
319 >    <lib name="MLP"/>
320 >    <use name="RootGraphics"/>
321 >  </tool>
322   EOF_TOOLFILE
323  
324   # roottmva toolfile
325 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
326 < <doc type=BuildSystem::ToolDoc version=1.0>
327 < <Tool name=roottmva version=%v>
328 < <info url="http://root.cern.ch/root/"></info>
329 < <lib name=TMVA>
330 < <use name=ROOTMLP>
331 < </Tool>
325 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
326 >  <tool name="roottmva" version="%v">
327 >    <info url="http://root.cern.ch/root/"/>
328 >    <lib name="TMVA"/>
329 >    <use name="ROOTMLP"/>
330 >    <use name="rootminuit"/>
331 >  </tool>
332   EOF_TOOLFILE
333  
334   # rootthread toolfile
335 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
336 < <doc type=BuildSystem::ToolDoc version=1.0>
337 < <Tool name=rootthread version=%v>
338 < <info url="http://root.cern.ch/root/"></info>
339 < <lib name=Thread>
320 < <use name=ROOTCore>
321 < </Tool>
335 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
336 >  <tool name="rootthread" version="%v">
337 >    <info url="http://root.cern.ch/root/"/>
338 >    <use name="ROOTCore"/>
339 >  </tool>
340   EOF_TOOLFILE
341  
342   %post
343 < %{relocateConfig}etc/scram.d/root
344 < %{relocateConfig}etc/scram.d/rootcore
327 < %{relocateConfig}etc/scram.d/roothistmatrix
328 < %{relocateConfig}etc/scram.d/rootphysics
329 < %{relocateConfig}etc/scram.d/rootgraphics
330 < %{relocateConfig}etc/scram.d/rootcintex
331 < %{relocateConfig}etc/scram.d/rootinteractive
332 < %{relocateConfig}etc/scram.d/rootmath
333 < %{relocateConfig}etc/scram.d/rootminuit
334 < %{relocateConfig}etc/scram.d/rootminuit2
335 < %{relocateConfig}etc/scram.d/rootrflx
336 < %{relocateConfig}etc/scram.d/roothtml
337 < %{relocateConfig}etc/scram.d/rootroofit
338 < %{relocateConfig}etc/scram.d/rootmlp
339 < %{relocateConfig}etc/scram.d/roottmva
340 < %{relocateConfig}etc/scram.d/rootthread
343 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
344 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines