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.180 by elmer, Tue Nov 3 14:17:05 2009 UTC vs.
Revision 1.243 by elmer, Wed Feb 9 23:09:04 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines