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.107 by dlange, Sat Mar 8 02:24:13 2008 UTC vs.
Revision 1.225 by elmer, Sat Dec 18 07:13:14 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines