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.132 by elmer, Thu Jan 15 00:59:45 2009 UTC vs.
Revision 1.246 by elmer, Wed Feb 23 13:04:06 2011 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 <
7 < Patch0:  root-5.18-00-libpng
8 < Patch1:  root-5.21-04-CINT-maxlongline
9 < Patch2:  root-5.22-00-TClass-Clone
10 < Patch3:  root-5.22-00-gendict
11 < Patch4:  root-5.22-00-RootSys
12 <
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-r37582-tmva
25 > Patch14: root-5.27-06b-r37405
26 > Patch15: root-5.27-06b-r37556
27 > Patch16: root-5.27-06-fireworks10
28 > Patch17: root-5.27-06-TTreeClonerTopLevel
29 > Patch18: root-5.27-06b-r37947
30 > Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
31 > Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
32 > Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
33 > Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
34 > Patch23: root-5.27-06b-r37210
35 > Patch24: root-5.27-06b-r38023
36 > Patch25: root-5.27-06b-r36708
37 > Patch26: root-5.27-06b-r38126-r38156
38 >
39   %define cpu %(echo %cmsplatf | cut -d_ -f2)
14 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
40  
41 < Requires: gccxml gsl castor libjpg dcap pcre python
41 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
42  
43 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
44 < Requires: qt openssl mysql libpng zlib libungif
45 < %else
46 < %define skiplibtiff true
43 > %if "%ismac" != "true"
44 > Requires: castor dcap
45 > %endif
46 >
47 > %if "%online" != "true"
48 > Requires: openssl zlib xrootd
49   %endif
50  
51 < %if "%cpu" == "amd64"
52 < %define skiplibtiff true
51 > %if "%ismac" == "true"
52 > Requires: gfortran-macosx
53   %endif
54  
55 < %if "%skiplibtiff" != "true"
56 < Requires: libtiff
55 > %if "%online" != "true"
56 > %if "%ismac" != "true"
57 > Requires: qt
58 > %endif
59   %endif
60  
61   %prep
# Line 34 | Line 63 | Requires: libtiff
63   %patch0 -p1
64   %patch1 -p1
65   %patch2 -p1
66 < %patch3 -p1
66 > # patch3 is OS version dependent, see below
67   %patch4 -p1
68 + %patch5 -p1
69 + %patch6 -p1
70 + %patch7 -p1
71 + %patch8 -p1
72 + %patch9 -p1
73 + %patch10 -p1
74 + %patch11 -p1
75 + %patch12 -p1
76 + %patch13 -p1
77 + %patch14 -p1
78 + %patch15 -p1
79 + %patch16 -p1
80 + %patch17 -p0
81 + %patch18 -p1
82 + %patch19 -p0
83 + %patch20 -p1
84 + %patch21 -p1
85 + %patch22 -p1
86 + %patch23 -p1
87 + %patch24 -p1
88 + %patch25 -p1
89 + %patch26 -p1
90 +
91 + # The following patch can only be applied on SLC5 or later (extra linker
92 + # options only available with the SLC5 binutils)
93 + case %cmsplatf in
94 +  slc5_* | slc5onl_* )
95 + %patch3 -p1
96 +  ;;
97 + esac
98 +
99 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
100 + # (It tries to run install_name_tool on them.)
101 + rm -fR tutorials/fitsio
102  
103   %build
104 +
105   mkdir -p %i
106 + export LIBJPG_ROOT
107   export ROOTSYS=%_builddir/root
108 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
109  
110 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
111 < # Build without mysql, and use system qt.
46 < # Also skip xrootd and odbc for online case:
110 > %if "%online" == "true"
111 > # Use system qt. Also skip xrootd and odbc for online case:
112  
113 < EXTRA_CONFIG_ARGS="
49 <             --disable-mysql
50 <             --disable-xrootd
113 > EXTRA_CONFIG_ARGS="--with-f77=/usr
114               --disable-odbc
115 <             --enable-qt"
115 >             --disable-qt --disable-qtgsi --disable-astiff"
116   %else
117 < EXTRA_CONFIG_ARGS="
118 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
117 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
118 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
119               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
120               --with-ssl-incdir=${OPENSSL_ROOT}/include
121 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
121 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
122 >             --enable-qtgsi"
123   %endif
124  
125 < CONFIG_ARGS="--with-f77=${GCC_ROOT}
62 <             --enable-table
125 > CONFIG_ARGS="--enable-table
126               --disable-builtin-pcre
127               --disable-builtin-freetype
128               --disable-builtin-zlib
129               --with-gccxml=${GCCXML_ROOT}
130 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
130 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
131               --enable-explicitlink
69             --enable-qtgsi
132               --enable-mathmore
133               --enable-reflex  
134               --enable-cintex
135               --enable-minuit2
136 <             --enable-roofit
136 >             --enable-fftw3
137 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
138 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
139               --disable-ldap
140               --disable-krb5
141 +             --with-xrootd=${XROOTD_ROOT}
142               --with-gsl-incdir=${GSL_ROOT}/include
143               --with-gsl-libdir=${GSL_ROOT}/lib
144               --with-dcap-libdir=${DCAP_ROOT}/lib
145               --with-dcap-incdir=${DCAP_ROOT}/include
146               --disable-pgsql
147 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
147 >             --disable-mysql
148 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
149  
150 < #case %gccver in
151 < #  4.*)
152 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
153 < #  ;;
154 < #esac
155 <
156 < case $(uname)-$(uname -p) in
157 <  Linux-x86_64)
158 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
159 <  Linux-i*86)
160 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
161 <  Darwin*)
162 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
163 <  Linux-ppc64*)
150 > case %cmsos in
151 >  slc*_amd64)
152 >    ./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 ;;
153 >  slc*_ia32)
154 >    ./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 ;;
155 >  osx*)
156 >    case %cmsplatf in
157 >    *_ia32_* )
158 >      comparch=i386
159 >      macconfig=macosx
160 >      ;;
161 >    *_amd64_* )
162 >      comparch=x86_64
163 >      macconfig=macosx64
164 >      ;;
165 >    * )
166 >      comparch=ppc
167 >      macconfig=macosx
168 >      ;;
169 >    esac
170 >    export CC=`which gcc` CXX=`which g++`
171 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
172 >  slc*_ppc64*)
173      ./configure linux $CONFIG_ARGS --disable-rfio;;
174   esac
175  
176 < make  %makeprocesses
176 > makeopts="%makeprocesses"
177 >
178 > make $makeopts
179   make cintdlls
180 +
181   %install
182   # Override installers if we are using GNU fileutils cp.  On OS X
183   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 116 | Line 194 | export ROOTSYS=%i
194   make INSTALL="$cp" INSTALLDATA="$cp" install
195   mkdir -p $ROOTSYS/lib/python
196   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
197 < #
197 > # This file confuses rpm's find-requires because it starts with
198 > # a """ and it thinks is the shebang.
199 > rm -f %i/tutorials/pyroot/mrt.py
200  
201   # SCRAM ToolBox toolfile
202   mkdir -p %i/etc/scram.d
203   # rootcore toolfile
204 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
205 < <doc type=BuildSystem::ToolDoc version=1.0>
206 < <Tool name=rootcore version=%v>
207 < <info url="http://root.cern.ch/root/"></info>
208 < <lib name=Cint>
209 < <lib name=Core>
210 < <lib name=RIO>
211 < <lib name=Net>
212 < <lib name=Tree>
213 < <Client>
214 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
215 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
216 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
217 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
218 < </Client>
219 < <use name=sockets>
220 < <use name=pcre>
221 < <use name=zlib>
222 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
223 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
224 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
225 < </Tool>
204 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
205 >  <tool name="rootcore" version="%v">
206 >    <info url="http://root.cern.ch/root/"/>
207 >    <lib name="Tree"/>
208 >    <lib name="Net"/>
209 >    <lib name="Thread"/>
210 >    <lib name="MathCore"/>
211 >    <lib name="RIO"/>
212 >    <lib name="Core"/>
213 >    <lib name="Cint"/>
214 >    <client>
215 >      <environment name="ROOTCORE_BASE" default="%i"/>
216 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
217 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
218 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
219 >    </client>
220 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
221 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
222 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
223 >    <use name="sockets"/>
224 >    <use name="pcre"/>
225 >    <use name="zlib"/>
226 >  </tool>
227   EOF_TOOLFILE
228  
229   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
230 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
231 < <doc type=BuildSystem::ToolDoc version=1.0>
232 < <Tool name=root version=%v>
233 < <info url="http://root.cern.ch/root/"></info>
234 < <use name=rootphysics>
154 < </Tool>
230 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
231 >  <tool name="root" version="%v">
232 >    <info url="http://root.cern.ch/root/"/>
233 >    <use name="rootphysics"/>
234 >  </tool>
235   EOF_TOOLFILE
236  
237   # roothistmatrix toolfile
238 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
239 < <doc type=BuildSystem::ToolDoc version=1.0>
240 < <Tool name=roothistmatrix version=%v>
241 < <info url="http://root.cern.ch/root/"></info>
242 < <lib name=Hist>
243 < <lib name=Matrix>
244 < <use name=ROOTCore>
245 < </Tool>
238 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
239 >  <tool name="roothistmatrix" version="%v">
240 >    <info url="http://root.cern.ch/root/"/>
241 >    <lib name="Hist"/>
242 >    <lib name="Matrix"/>
243 >    <use name="ROOTCore"/>
244 >  </tool>
245 > EOF_TOOLFILE
246 >
247 > # rootgpad toolfile
248 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
249 >  <tool name="rootgpad" version="%v">
250 >    <info url="http://root.cern.ch/root/"/>
251 >    <lib name="Gpad"/>
252 >    <lib name="Graf"/>
253 >    <use name="roothistmatrix"/>
254 >  </tool>
255   EOF_TOOLFILE
256  
257   # rootphysics toolfile
258 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
259 < <doc type=BuildSystem::ToolDoc version=1.0>
260 < <Tool name=rootphysics version=%v>
261 < <info url="http://root.cern.ch/root/"></info>
262 < <lib name=Physics>
263 < <use name=roothistmatrix>
175 < </Tool>
258 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
259 >  <tool name="rootphysics" version="%v">
260 >    <info url="http://root.cern.ch/root/"/>
261 >    <lib name="Physics"/>
262 >    <use name="roothistmatrix"/>
263 >  </tool>
264   EOF_TOOLFILE
265  
266   # rootgraphics toolfile, identical to old "root" toolfile
267 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
268 < <doc type=BuildSystem::ToolDoc version=1.0>
269 < <Tool name=rootgraphics version=%v>
270 < <info url="http://root.cern.ch/root/"></info>
271 < <lib name=TreePlayer>
272 < <lib name=Gpad>
273 < <lib name=Graf3d>
274 < <lib name=Graf>
187 < <lib name=Hist>
188 < <lib name=Matrix>
189 < <lib name=Physics>
190 < <lib name=Postscript>
191 < <use name=ROOTCore>
192 < </Tool>
267 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
268 >  <tool name="rootgraphics" version="%v">
269 >    <info url="http://root.cern.ch/root/"/>
270 >    <lib name="TreePlayer"/>
271 >    <lib name="Graf3d"/>
272 >    <lib name="Postscript"/>
273 >    <use name="rootgpad"/>
274 >  </tool>
275   EOF_TOOLFILE
276  
277   # rootcintex toolfile
278 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
279 < <doc type=BuildSystem::ToolDoc version=1.0>
280 < <Tool name=rootcintex version=%v>
281 < <info url="http://root.cern.ch/root/"></info>
282 < <lib name=Cintex>
283 < <use name=ROOTRflx>
284 < <use name=ROOTCore>
285 < </Tool>
286 < EOF_TOOLFILE
287 <
288 < # rootinteractive toolfile
289 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
290 < <doc type=BuildSystem::ToolDoc version=1.0>
291 < <Tool name=rootinteractive version=%v>
292 < <info url="http://root.cern.ch/root/"></info>
293 < <lib name=Rint>
294 < <lib name=GQt>
295 < <use name=qt>
296 < <use name=libjpg>
297 < <use name=libpng>
298 < <use name=ROOT>
299 < </Tool>
278 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
279 >  <tool name="rootcintex" version="%v">
280 >    <info url="http://root.cern.ch/root/"/>
281 >    <lib name="Cintex"/>
282 >    <use name="ROOTRflx"/>
283 >    <use name="ROOTCore"/>
284 >  </tool>
285 > EOF_TOOLFILE
286 >
287 > # rootinteractive toolfile (GQt/qt lib dependencies
288 > # have been moved to rootqt.xml)
289 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
290 >  <tool name="rootinteractive" version="%v">
291 >    <info url="http://root.cern.ch/root/"/>
292 >    <lib name="Rint"/>
293 >    <lib name="Gui"/>
294 >    <use name="libjpg"/>
295 >    <use name="libpng"/>
296 >    <use name="rootgpad"/>
297 >  </tool>
298 > EOF_TOOLFILE
299 >
300 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
301 >  <tool name="rootqt" version="%v">
302 >    <info url="http://root.cern.ch/root/"/>
303 >    <lib name="GQt"/>
304 >    <use name="qt"/>
305 >  </tool>
306   EOF_TOOLFILE
307  
308   # rootmath toolfile
309 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
310 < <doc type=BuildSystem::ToolDoc version=1.0>
311 < <Tool name=rootmath version=%v>
312 < <info url="http://root.cern.ch/root/"></info>
313 < <lib name=MathCore>
314 < <lib name=MathMore>
315 < <lib name=GenVector>
316 < <use name=ROOTCore>
229 < <use name=gsl>
230 < </Tool>
309 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
310 >  <tool name="rootmath" version="%v">
311 >    <info url="http://root.cern.ch/root/"/>
312 >    <lib name="GenVector"/>
313 >    <lib name="MathMore"/>
314 >    <use name="ROOTCore"/>
315 >    <use name="gsl"/>
316 >  </tool>
317   EOF_TOOLFILE
318  
319   # rootminuit toolfile
320 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
321 < <doc type=BuildSystem::ToolDoc version=1.0>
322 < <Tool name=rootminuit version=%v>
323 < <info url="http://root.cern.ch/root/"></info>
324 < <lib name=Minuit>
325 < <use name=ROOT>
240 < </Tool>
320 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
321 >  <tool name="rootminuit" version="%v">
322 >    <info url="http://root.cern.ch/root/"/>
323 >    <lib name="Minuit"/>
324 >    <use name="rootgpad"/>
325 >  </tool>
326   EOF_TOOLFILE
327  
328   # rootminuit2 toolfile
329 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
330 < <doc type=BuildSystem::ToolDoc version=1.0>
331 < <Tool name=rootminuit2 version=%v>
332 < <info url="http://root.cern.ch/root/"></info>
333 < <lib name=Minuit2>
334 < <use name=ROOT>
250 < </Tool>
329 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
330 >  <tool name="rootminuit2" version="%v">
331 >    <info url="http://root.cern.ch/root/"/>
332 >    <lib name="Minuit2"/>
333 >    <use name="rootgpad"/>
334 >  </tool>
335   EOF_TOOLFILE
336  
337   # rootrflx toolfile
338 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
339 < <doc type=BuildSystem::ToolDoc version=1.0>
340 < <Tool name=rootrflx version=%v>
341 < <info url="http://root.cern.ch/root/"></info>
342 < <lib name=Reflex>
343 < <Client>
344 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
345 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
346 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
347 < </Client>
348 < <use name=sockets>
349 < <use name=gccxml>
350 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
351 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
352 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
269 < </Tool>
338 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
339 >  <tool name="rootrflx" version="%v">
340 >    <info url="http://root.cern.ch/root/"/>
341 >    <lib name="Reflex"/>
342 >    <client>
343 >      <environment name="ROOTRFLX_BASE" default="%i"/>
344 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
345 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
346 >    </client>
347 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
348 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
349 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
350 >    <use name="sockets"/>
351 >    <use name="gccxml"/>
352 >  </tool>
353   EOF_TOOLFILE
354  
355   # roothtml toolfile
356 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
357 < <doc type=BuildSystem::ToolDoc version=1.0>
358 < <Tool name=roothtml version=%v>
359 < <info url="http://root.cern.ch/root/"></info>
360 < <lib name=Html>
361 < <use name=ROOT>
279 < </Tool>
280 < EOF_TOOLFILE
281 <
282 < # rootroofit toolfile
283 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
284 < <doc type=BuildSystem::ToolDoc version=1.0>
285 < <Tool name=rootroofit version=%v>
286 < <info url="http://root.cern.ch/root/"></info>
287 < <lib name=RooFitCore>
288 < <lib name=RooFit>
289 < <use name=ROOTMinuit>
290 < <use name=ROOTHtml>
291 < </Tool>
356 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
357 >  <tool name="roothtml" version="%v">
358 >    <info url="http://root.cern.ch/root/"/>
359 >    <lib name="Html"/>
360 >    <use name="rootgpad"/>
361 >  </tool>
362   EOF_TOOLFILE
363  
364   # rootmlp toolfile
365 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
366 < <doc type=BuildSystem::ToolDoc version=1.0>
367 < <Tool name=rootmlp version=%v>
368 < <info url="http://root.cern.ch/root/"></info>
369 < <lib name=MLP>
370 < <use name=ROOT>
301 < </Tool>
365 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
366 >  <tool name="rootmlp" version="%v">
367 >    <info url="http://root.cern.ch/root/"/>
368 >    <lib name="MLP"/>
369 >    <use name="RootGraphics"/>
370 >  </tool>
371   EOF_TOOLFILE
372  
373   # roottmva toolfile
374 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
375 < <doc type=BuildSystem::ToolDoc version=1.0>
376 < <Tool name=roottmva version=%v>
377 < <info url="http://root.cern.ch/root/"></info>
378 < <lib name=TMVA>
379 < <use name=ROOTMLP>
380 < </Tool>
374 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
375 >  <tool name="roottmva" version="%v">
376 >    <info url="http://root.cern.ch/root/"/>
377 >    <lib name="TMVA"/>
378 >    <use name="ROOTMLP"/>
379 >    <use name="rootminuit"/>
380 >  </tool>
381   EOF_TOOLFILE
382  
383   # rootthread toolfile
384 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
385 < <doc type=BuildSystem::ToolDoc version=1.0>
386 < <Tool name=rootthread version=%v>
387 < <info url="http://root.cern.ch/root/"></info>
388 < <lib name=Thread>
389 < <use name=ROOTCore>
390 < </Tool>
384 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
385 >  <tool name="rootthread" version="%v">
386 >    <info url="http://root.cern.ch/root/"/>
387 >    <use name="ROOTCore"/>
388 >  </tool>
389 > EOF_TOOLFILE
390 >
391 > # rootxml toolfile
392 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
393 >  <tool name="rootxml" version="%v">
394 >    <info url="http://root.cern.ch/root/"/>
395 >    <lib name="XMLParser"/>
396 >    <use name="ROOTCore"/>
397 >  </tool>
398 > EOF_TOOLFILE
399 >
400 > # rootfoam toolfile
401 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
402 >  <tool name="rootfoam" version="%v">
403 >    <info url="http://root.cern.ch/root/"/>
404 >    <lib name="Foam"/>
405 >    <use name="roothistmatrix"/>
406 >  </tool>
407   EOF_TOOLFILE
408  
409   %post
410 < %{relocateConfig}etc/scram.d/root
411 < %{relocateConfig}etc/scram.d/rootcore
327 < %{relocateConfig}etc/scram.d/roothistmatrix
328 < %{relocateConfig}etc/scram.d/rootphysics
329 < %{relocateConfig}etc/scram.d/rootgraphics
330 < %{relocateConfig}etc/scram.d/rootcintex
331 < %{relocateConfig}etc/scram.d/rootinteractive
332 < %{relocateConfig}etc/scram.d/rootmath
333 < %{relocateConfig}etc/scram.d/rootminuit
334 < %{relocateConfig}etc/scram.d/rootminuit2
335 < %{relocateConfig}etc/scram.d/rootrflx
336 < %{relocateConfig}etc/scram.d/roothtml
337 < %{relocateConfig}etc/scram.d/rootroofit
338 < %{relocateConfig}etc/scram.d/rootmlp
339 < %{relocateConfig}etc/scram.d/roottmva
340 < %{relocateConfig}etc/scram.d/rootthread
410 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
411 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines