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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines