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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines