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.128 by elmer, Tue Dec 16 01:51:29 2008 UTC vs.
Revision 1.217 by elmer, Tue Nov 2 20:53:44 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines