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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines