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.233 by elmer, Fri Jan 21 10:07:47 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines