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.204 by elmer, Tue Aug 17 13:11:37 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines