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.169 by elmer, Tue Jul 7 15:06:48 2009 UTC vs.
Revision 1.244 by elmer, Wed Feb 9 23:54:50 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   %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-00a-CINTFunctional
14 < Patch5:  root-5.22-00a-TClass
15 < Patch6:  root-5.22-00a-fireworks-graf3d-gui
16 < Patch7:  root-5.22-00a-Reflex-Class
17 < Patch8:  root-5.22-00a-Cintex
18 < Patch9:  root-5.22-00a-roofit-silence-static-printout
19 < Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up
20 < Patch11: root-5.22-00a-th1
21 < Patch12: root-5.22-00a-smatrix
22 < Patch13: root-5.22-00a-fireworks1
23 < Patch14: root-5.22-00a-Reflex-gendict_selclass
24 < Patch15: root-5.22-00a-MatrixInversion
25 < Patch16: root-5.22-00a-gcc44
26 < Patch17: root-5.22-00a-fireworks2
27 < Patch18: root-5.22-00a-fireworks3
28 < Patch19: root-5.22-00a-TBranchElement
29 < Patch20: root-5.22-00a-tmplt
30 < Patch21: root-5.22-00a-TBranchElement_TStreamerInfo
31 < Patch22: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
32 <
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 >
37   %define cpu %(echo %cmsplatf | cut -d_ -f2)
34 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
38  
39 < Requires: gccxml gsl castor libjpg dcap pcre python
39 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
40 >
41 > %if "%ismac" != "true"
42 > Requires: castor dcap
43 > %endif
44  
45   %if "%online" != "true"
46 < Requires: qt openssl mysql libpng zlib libungif xrootd
40 < %else
41 < %define skiplibtiff true
46 > Requires: openssl zlib xrootd
47   %endif
48  
49 < %if "%cpu" == "amd64"
50 < %define skiplibtiff true
49 > %if "%ismac" == "true"
50 > Requires: gfortran-macosx
51   %endif
52  
53 < %if "%skiplibtiff" != "true"
54 < Requires: libtiff
53 > %if "%online" != "true"
54 > %if "%ismac" != "true"
55 > Requires: qt
56 > %endif
57   %endif
58  
59   %prep
# Line 54 | Line 61 | Requires: libtiff
61   %patch0 -p1
62   %patch1 -p1
63   %patch2 -p1
64 < %patch3 -p1
64 > # patch3 is OS version dependent, see below
65   %patch4 -p1
66   %patch5 -p1
67   %patch6 -p1
68 < %patch7 -p0
69 < %patch8 -p0
68 > %patch7 -p1
69 > %patch8 -p1
70   %patch9 -p1
71   %patch10 -p1
72   %patch11 -p1
73   %patch12 -p1
74   %patch13 -p1
75 < %patch14 -p0
76 < %patch15 -p0
77 < # patch16 is compiler version dependent, see below
78 < %patch17 -p1
75 > %patch14 -p1
76 > %patch15 -p1
77 > %patch16 -p1
78 > %patch17 -p0
79   %patch18 -p1
80   %patch19 -p0
81 < %patch20 -p0
82 < %patch21 -p0
76 < # work around patch issue...
77 < rm graf3d/gl/src/gl2ps.c
78 < # patch22 is compiler version dependent, see below
79 <
80 < case %gccver in
81 <  4.3.*)
81 > %patch20 -p1
82 > %patch21 -p1
83   %patch22 -p1
84 <  ;;
85 <  4.4.*)
86 < %patch16 -p1
84 > %patch23 -p1
85 > %patch24 -p1
86 >
87 > # The following patch can only be applied on SLC5 or later (extra linker
88 > # options only available with the SLC5 binutils)
89 > case %cmsplatf in
90 >  slc5_* | slc5onl_* )
91 > %patch3 -p1
92    ;;
93   esac
94 <
94 >
95 > # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
96 > # (It tries to run install_name_tool on them.)
97 > rm -fR tutorials/fitsio
98 >
99   %build
100  
101   mkdir -p %i
102 + export LIBJPG_ROOT
103   export ROOTSYS=%_builddir/root
104 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
105  
106   %if "%online" == "true"
107 < # Build without mysql, and use system qt.
96 < # Also skip xrootd and odbc for online case:
107 > # Use system qt. Also skip xrootd and odbc for online case:
108  
109   EXTRA_CONFIG_ARGS="--with-f77=/usr
99             --disable-mysql
100             --disable-xrootd
110               --disable-odbc
111 <             --disable-qt --disable-qtgsi"
111 >             --disable-qt --disable-qtgsi --disable-astiff"
112   %else
113 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
114   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
105             --with-xrootd=$XROOTD_ROOT
106             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
115               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
116               --with-ssl-incdir=${OPENSSL_ROOT}/include
117               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 115 | Line 123 | CONFIG_ARGS="--enable-table
123               --disable-builtin-freetype
124               --disable-builtin-zlib
125               --with-gccxml=${GCCXML_ROOT}
126 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
126 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
127               --enable-explicitlink
128               --enable-mathmore
129               --enable-reflex  
130               --enable-cintex
131               --enable-minuit2
132 <             --enable-roofit
132 >             --enable-fftw3
133 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
134 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
135               --disable-ldap
136               --disable-krb5
137 +             --with-xrootd=${XROOTD_ROOT}
138               --with-gsl-incdir=${GSL_ROOT}/include
139               --with-gsl-libdir=${GSL_ROOT}/lib
140               --with-dcap-libdir=${DCAP_ROOT}/lib
141               --with-dcap-incdir=${DCAP_ROOT}/include
142               --disable-pgsql
143 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
143 >             --disable-mysql
144 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
145  
146 < #case %gccver in
147 < #  4.*)
148 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
149 < #  ;;
150 < #esac
151 <
152 < case $(uname)-$(uname -p) in
153 <  Linux-x86_64)
154 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
155 <  Linux-i*86)
156 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
157 <  Darwin*)
158 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
159 <  Linux-ppc64*)
146 > case %cmsos in
147 >  slc*_amd64)
148 >    ./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 ;;
149 >  slc*_ia32)
150 >    ./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 ;;
151 >  osx*)
152 >    case %cmsplatf in
153 >    *_ia32_* )
154 >      comparch=i386
155 >      macconfig=macosx
156 >      ;;
157 >    *_amd64_* )
158 >      comparch=x86_64
159 >      macconfig=macosx64
160 >      ;;
161 >    * )
162 >      comparch=ppc
163 >      macconfig=macosx
164 >      ;;
165 >    esac
166 >    export CC=`which gcc` CXX=`which g++`
167 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
168 >  slc*_ppc64*)
169      ./configure linux $CONFIG_ARGS --disable-rfio;;
170   esac
171  
172 < case %cmsplatf in
173 <  osx*)
174 <   makeopts=
154 <  ;;
155 <  *)
156 <   makeopts="%makeprocesses"
157 <  ;;
158 < esac
159 <
160 < make $makeopts
172 > makeopts="%makeprocesses"
173 >
174 > make $makeopts
175   make cintdlls
176  
177   %install
# Line 176 | 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>
207 < </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>
216 < </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>
227 < </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>
238 < </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>
248 < </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>
260 < </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>
299 < </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>
309 < </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>
319 < </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">
338 < </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>
348 < </Tool>
349 < EOF_TOOLFILE
350 <
351 < # rootroofit toolfile
352 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
353 < <doc type=BuildSystem::ToolDoc version=1.0>
354 < <Tool name=rootroofit version=%v>
355 < <info url="http://root.cern.ch/root/"></info>
356 < <lib name=RooFit>
357 < <lib name=RooFitCore>
358 < <use name=ROOTMinuit>
359 < </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>
369 < </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>
380 < </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>
385 < </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 > # rootxml toolfile
388 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
389 >  <tool name="rootxml" version="%v">
390 >    <info url="http://root.cern.ch/root/"/>
391 >    <lib name="XMLParser"/>
392 >    <use name="ROOTCore"/>
393 >  </tool>
394 > EOF_TOOLFILE
395 >
396 > # rootfoam toolfile
397 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
398 >  <tool name="rootfoam" version="%v">
399 >    <info url="http://root.cern.ch/root/"/>
400 >    <lib name="Foam"/>
401 >    <use name="roothistmatrix"/>
402 >  </tool>
403   EOF_TOOLFILE
404  
405   %post
406 < %{relocateConfig}etc/scram.d/root
407 < %{relocateConfig}etc/scram.d/rootcore
395 < %{relocateConfig}etc/scram.d/roothistmatrix
396 < %{relocateConfig}etc/scram.d/rootphysics
397 < %{relocateConfig}etc/scram.d/rootgraphics
398 < %{relocateConfig}etc/scram.d/rootcintex
399 < %{relocateConfig}etc/scram.d/rootinteractive
400 < %{relocateConfig}etc/scram.d/rootmath
401 < %{relocateConfig}etc/scram.d/rootminuit
402 < %{relocateConfig}etc/scram.d/rootminuit2
403 < %{relocateConfig}etc/scram.d/rootrflx
404 < %{relocateConfig}etc/scram.d/roothtml
405 < %{relocateConfig}etc/scram.d/rootroofit
406 < %{relocateConfig}etc/scram.d/rootmlp
407 < %{relocateConfig}etc/scram.d/roottmva
408 < %{relocateConfig}etc/scram.d/rootthread
406 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
407 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines