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.241 by elmer, Wed Feb 9 14:10:29 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
20 <
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 >
35   %define cpu %(echo %cmsplatf | cut -d_ -f2)
22 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
36  
37 < Requires: gccxml gsl castor libjpg dcap pcre python
37 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
38  
39 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
40 < Requires: qt openssl mysql libpng zlib libungif xrootd
41 < %else
42 < %define skiplibtiff true
39 > %if "%ismac" != "true"
40 > Requires: castor dcap
41 > %endif
42 >
43 > %if "%online" != "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
58   %setup -n root
59   %patch0 -p1
60   %patch1 -p1
61 < %patch2 -p0
62 < %patch3 -p1
63 < %patch4 -p0
64 < %patch5 -p0
65 < %patch6 -p0
66 < %patch7 -p0
61 > %patch2 -p1
62 > # patch3 is OS version dependent, see below
63 > %patch4 -p1
64 > %patch5 -p1
65 > %patch6 -p1
66 > %patch7 -p1
67   %patch8 -p1
68 < %patch9 -p0
69 < %patch10 -p0
70 < %patch11 -p0
68 > %patch9 -p1
69 > %patch10 -p1
70 > %patch11 -p1
71   %patch12 -p1
72 + %patch13 -p1
73 + %patch14 -p1
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 + # 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 +
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 "%cmsplatf" == "slc4onl_ia32_gcc346"
103 < # Build without mysql, and use system qt.
62 < # Also skip xrootd and odbc for online case:
102 > %if "%online" == "true"
103 > # Use system qt. Also skip xrootd and odbc for online case:
104  
105 < EXTRA_CONFIG_ARGS="
65 <             --disable-mysql
66 <             --disable-xrootd
105 > EXTRA_CONFIG_ARGS="--with-f77=/usr
106               --disable-odbc
107 <             --enable-qt"
107 >             --disable-qt --disable-qtgsi --disable-astiff"
108   %else
109 < EXTRA_CONFIG_ARGS="
110 <             --with-xrootd=$XROOTD_ROOT
72 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
109 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
110 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
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"
113 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
114 >             --enable-qtgsi"
115   %endif
116  
117   CONFIG_ARGS="--enable-table
# Line 80 | Line 119 | CONFIG_ARGS="--enable-table
119               --disable-builtin-freetype
120               --disable-builtin-zlib
121               --with-gccxml=${GCCXML_ROOT}
122 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
122 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
123               --enable-explicitlink
85             --enable-qtgsi
86             --enable-mathcore
124               --enable-mathmore
125               --enable-reflex  
126               --enable-cintex
127               --enable-minuit2
128 <             --enable-roofit
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-mysql
140 +             --disable-oracle
141               --disable-xml ${EXTRA_CONFIG_ARGS}"
142  
143 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
144 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
145 < %endif
146 <
147 < case $(uname)-$(uname -p) in
148 <  Linux-x86_64)
149 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
150 <  Linux-i*86)
151 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
152 <  Darwin*)
153 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
154 <  Linux-ppc64*)
143 > case %cmsos in
144 >  slc*_amd64)
145 >    ./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 ;;
146 >  slc*_ia32)
147 >    ./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 ;;
148 >  osx*)
149 >    case %cmsplatf in
150 >    *_ia32_* )
151 >      comparch=i386
152 >      macconfig=macosx
153 >      ;;
154 >    *_amd64_* )
155 >      comparch=x86_64
156 >      macconfig=macosx64
157 >      ;;
158 >    * )
159 >      comparch=ppc
160 >      macconfig=macosx
161 >      ;;
162 >    esac
163 >    export CC=`which gcc` CXX=`which g++`
164 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
165 >  slc*_ppc64*)
166      ./configure linux $CONFIG_ARGS --disable-rfio;;
167   esac
168  
169 < make  %makeprocesses
169 > case %cmsplatf in
170 >  osx*)
171 >   makeopts=
172 >  ;;
173 >  *)
174 >   makeopts="%makeprocesses"
175 >  ;;
176 > esac
177 >
178 > make $makeopts
179   make cintdlls
180 +
181   %install
182   # Override installers if we are using GNU fileutils cp.  On OS X
183   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 130 | Line 193 | fi
193   export ROOTSYS=%i
194   make INSTALL="$cp" INSTALLDATA="$cp" install
195   mkdir -p $ROOTSYS/lib/python
196 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
197 < #
196 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
197 > # This file confuses rpm's find-requires because it starts with
198 > # a """ and it thinks is the shebang.
199 > rm -f %i/tutorials/pyroot/mrt.py
200  
201   # SCRAM ToolBox toolfile
202   mkdir -p %i/etc/scram.d
203   # rootcore toolfile
204 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
205 < <doc type=BuildSystem::ToolDoc version=1.0>
206 < <Tool name=rootcore version=%v>
207 < <info url="http://root.cern.ch/root/"></info>
208 < <lib name=Cint>
209 < <lib name=Core>
210 < <lib name=RIO>
211 < <lib name=Net>
212 < <lib name=Tree>
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>
225 < </Tool>
204 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
205 >  <tool name="rootcore" version="%v">
206 >    <info url="http://root.cern.ch/root/"/>
207 >    <lib name="Tree"/>
208 >    <lib name="Net"/>
209 >    <lib name="Thread"/>
210 >    <lib name="MathCore"/>
211 >    <lib name="RIO"/>
212 >    <lib name="Core"/>
213 >    <lib name="Cint"/>
214 >    <client>
215 >      <environment name="ROOTCORE_BASE" default="%i"/>
216 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
217 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
218 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
219 >    </client>
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"/>
223 >    <use name="sockets"/>
224 >    <use name="pcre"/>
225 >    <use name="zlib"/>
226 >  </tool>
227   EOF_TOOLFILE
228  
229   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
230 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
231 < <doc type=BuildSystem::ToolDoc version=1.0>
232 < <Tool name=root version=%v>
233 < <info url="http://root.cern.ch/root/"></info>
234 < <use name=rootphysics>
169 < </Tool>
230 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
231 >  <tool name="root" version="%v">
232 >    <info url="http://root.cern.ch/root/"/>
233 >    <use name="rootphysics"/>
234 >  </tool>
235   EOF_TOOLFILE
236  
237   # roothistmatrix toolfile
238 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
239 < <doc type=BuildSystem::ToolDoc version=1.0>
240 < <Tool name=roothistmatrix version=%v>
241 < <info url="http://root.cern.ch/root/"></info>
242 < <lib name=Hist>
243 < <lib name=Matrix>
244 < <use name=ROOTCore>
245 < </Tool>
238 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
239 >  <tool name="roothistmatrix" version="%v">
240 >    <info url="http://root.cern.ch/root/"/>
241 >    <lib name="Hist"/>
242 >    <lib name="Matrix"/>
243 >    <use name="ROOTCore"/>
244 >  </tool>
245 > EOF_TOOLFILE
246 >
247 > # rootgpad toolfile
248 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
249 >  <tool name="rootgpad" version="%v">
250 >    <info url="http://root.cern.ch/root/"/>
251 >    <lib name="Gpad"/>
252 >    <lib name="Graf"/>
253 >    <use name="roothistmatrix"/>
254 >  </tool>
255   EOF_TOOLFILE
256  
257   # rootphysics toolfile
258 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
259 < <doc type=BuildSystem::ToolDoc version=1.0>
260 < <Tool name=rootphysics version=%v>
261 < <info url="http://root.cern.ch/root/"></info>
262 < <lib name=Physics>
263 < <use name=roothistmatrix>
190 < </Tool>
258 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
259 >  <tool name="rootphysics" version="%v">
260 >    <info url="http://root.cern.ch/root/"/>
261 >    <lib name="Physics"/>
262 >    <use name="roothistmatrix"/>
263 >  </tool>
264   EOF_TOOLFILE
265  
266   # rootgraphics toolfile, identical to old "root" toolfile
267 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
268 < <doc type=BuildSystem::ToolDoc version=1.0>
269 < <Tool name=rootgraphics version=%v>
270 < <info url="http://root.cern.ch/root/"></info>
271 < <lib name=TreePlayer>
272 < <lib name=Gpad>
273 < <lib name=Graf3d>
274 < <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>
267 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
268 >  <tool name="rootgraphics" version="%v">
269 >    <info url="http://root.cern.ch/root/"/>
270 >    <lib name="TreePlayer"/>
271 >    <lib name="Graf3d"/>
272 >    <lib name="Postscript"/>
273 >    <use name="rootgpad"/>
274 >  </tool>
275   EOF_TOOLFILE
276  
277   # rootcintex toolfile
278 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
279 < <doc type=BuildSystem::ToolDoc version=1.0>
280 < <Tool name=rootcintex version=%v>
281 < <info url="http://root.cern.ch/root/"></info>
282 < <lib name=Cintex>
283 < <use name=ROOTRflx>
284 < <use name=ROOTCore>
285 < </Tool>
286 < EOF_TOOLFILE
287 <
288 < # rootinteractive toolfile
289 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
290 < <doc type=BuildSystem::ToolDoc version=1.0>
291 < <Tool name=rootinteractive version=%v>
292 < <info url="http://root.cern.ch/root/"></info>
293 < <lib name=Rint>
294 < <lib name=GQt>
295 < <use name=qt>
296 < <use name=libjpg>
297 < <use name=libpng>
298 < <use name=ROOT>
299 < </Tool>
278 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
279 >  <tool name="rootcintex" version="%v">
280 >    <info url="http://root.cern.ch/root/"/>
281 >    <lib name="Cintex"/>
282 >    <use name="ROOTRflx"/>
283 >    <use name="ROOTCore"/>
284 >  </tool>
285 > EOF_TOOLFILE
286 >
287 > # rootinteractive toolfile (GQt/qt lib dependencies
288 > # have been moved to rootqt.xml)
289 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
290 >  <tool name="rootinteractive" version="%v">
291 >    <info url="http://root.cern.ch/root/"/>
292 >    <lib name="Rint"/>
293 >    <lib name="Gui"/>
294 >    <use name="libjpg"/>
295 >    <use name="libpng"/>
296 >    <use name="rootgpad"/>
297 >  </tool>
298 > EOF_TOOLFILE
299 >
300 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
301 >  <tool name="rootqt" version="%v">
302 >    <info url="http://root.cern.ch/root/"/>
303 >    <lib name="GQt"/>
304 >    <use name="qt"/>
305 >  </tool>
306   EOF_TOOLFILE
307  
308   # rootmath toolfile
309 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
310 < <doc type=BuildSystem::ToolDoc version=1.0>
311 < <Tool name=rootmath version=%v>
312 < <info url="http://root.cern.ch/root/"></info>
313 < <lib name=MathCore>
314 < <lib name=MathMore>
315 < <use name=ROOTCore>
316 < <use name=gsl>
244 < </Tool>
309 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
310 >  <tool name="rootmath" version="%v">
311 >    <info url="http://root.cern.ch/root/"/>
312 >    <lib name="GenVector"/>
313 >    <lib name="MathMore"/>
314 >    <use name="ROOTCore"/>
315 >    <use name="gsl"/>
316 >  </tool>
317   EOF_TOOLFILE
318  
319   # rootminuit toolfile
320 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
321 < <doc type=BuildSystem::ToolDoc version=1.0>
322 < <Tool name=rootminuit version=%v>
323 < <info url="http://root.cern.ch/root/"></info>
324 < <lib name=Minuit>
325 < <use name=ROOT>
254 < </Tool>
320 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
321 >  <tool name="rootminuit" version="%v">
322 >    <info url="http://root.cern.ch/root/"/>
323 >    <lib name="Minuit"/>
324 >    <use name="rootgpad"/>
325 >  </tool>
326   EOF_TOOLFILE
327  
328   # rootminuit2 toolfile
329 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
330 < <doc type=BuildSystem::ToolDoc version=1.0>
331 < <Tool name=rootminuit2 version=%v>
332 < <info url="http://root.cern.ch/root/"></info>
333 < <lib name=Minuit2>
334 < <use name=ROOT>
264 < </Tool>
329 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
330 >  <tool name="rootminuit2" version="%v">
331 >    <info url="http://root.cern.ch/root/"/>
332 >    <lib name="Minuit2"/>
333 >    <use name="rootgpad"/>
334 >  </tool>
335   EOF_TOOLFILE
336  
337   # rootrflx toolfile
338 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
339 < <doc type=BuildSystem::ToolDoc version=1.0>
340 < <Tool name=rootrflx version=%v>
341 < <info url="http://root.cern.ch/root/"></info>
342 < <lib name=Reflex>
343 < <Client>
344 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
345 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
346 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
347 < </Client>
348 < <use name=sockets>
349 < <use name=gccxml>
350 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
351 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
352 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
283 < </Tool>
338 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
339 >  <tool name="rootrflx" version="%v">
340 >    <info url="http://root.cern.ch/root/"/>
341 >    <lib name="Reflex"/>
342 >    <client>
343 >      <environment name="ROOTRFLX_BASE" default="%i"/>
344 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
345 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
346 >    </client>
347 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
348 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
349 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
350 >    <use name="sockets"/>
351 >    <use name="gccxml"/>
352 >  </tool>
353   EOF_TOOLFILE
354  
355   # roothtml toolfile
356 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
357 < <doc type=BuildSystem::ToolDoc version=1.0>
358 < <Tool name=roothtml version=%v>
359 < <info url="http://root.cern.ch/root/"></info>
360 < <lib name=Html>
361 < <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>
356 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
357 >  <tool name="roothtml" version="%v">
358 >    <info url="http://root.cern.ch/root/"/>
359 >    <lib name="Html"/>
360 >    <use name="rootgpad"/>
361 >  </tool>
362   EOF_TOOLFILE
363  
364   # rootmlp toolfile
365 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
366 < <doc type=BuildSystem::ToolDoc version=1.0>
367 < <Tool name=rootmlp version=%v>
368 < <info url="http://root.cern.ch/root/"></info>
369 < <lib name=MLP>
370 < <use name=ROOT>
315 < </Tool>
365 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
366 >  <tool name="rootmlp" version="%v">
367 >    <info url="http://root.cern.ch/root/"/>
368 >    <lib name="MLP"/>
369 >    <use name="RootGraphics"/>
370 >  </tool>
371   EOF_TOOLFILE
372  
373   # roottmva toolfile
374 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
375 < <doc type=BuildSystem::ToolDoc version=1.0>
376 < <Tool name=roottmva version=%v>
377 < <info url="http://root.cern.ch/root/"></info>
378 < <lib name=TMVA>
379 < <use name=ROOTMLP>
380 < </Tool>
374 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
375 >  <tool name="roottmva" version="%v">
376 >    <info url="http://root.cern.ch/root/"/>
377 >    <lib name="TMVA"/>
378 >    <use name="ROOTMLP"/>
379 >    <use name="rootminuit"/>
380 >  </tool>
381   EOF_TOOLFILE
382  
383   # rootthread toolfile
384 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
385 < <doc type=BuildSystem::ToolDoc version=1.0>
386 < <Tool name=rootthread version=%v>
387 < <info url="http://root.cern.ch/root/"></info>
388 < <lib name=Thread>
334 < <use name=ROOTCore>
335 < </Tool>
384 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
385 >  <tool name="rootthread" version="%v">
386 >    <info url="http://root.cern.ch/root/"/>
387 >    <use name="ROOTCore"/>
388 >  </tool>
389   EOF_TOOLFILE
390  
391   %post
392 < %{relocateConfig}etc/scram.d/root
393 < %{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
392 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
393 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines