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.155 by elmer, Thu Apr 16 21:08:49 2009 UTC vs.
Revision 1.239 by elmer, Thu Feb 3 17:59:19 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines