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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines