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.222 by elmer, Mon Dec 6 06:22:49 2010 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)
7 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; 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
9 > Patch0: root-5.27-06-externals
10 > Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
11 > Patch2: root-5.22-00a-roofit-silence-static-printout
12 > Patch3: root-5.22-00d-linker-gnu-hash-style
13 > Patch4: root-5.22-00d-TBranchElement-dropped-data-member
14 > Patch5: root-5.27-06-fireworks9
15 > Patch6: root-5.27-06b-gdb-backtrace
16 > Patch7: root-5.27-06-tmva-DecisionTreeNode
17 > Patch8: root-5.27-06b-r36567
18 > Patch9: root-5.27-06b-r36572
19 > Patch10: root-5.27-06b-r36707
20 > Patch11: root-5.27-06b-r36594
21 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
22 > Patch13: root-5.27-06b-tmva_Event_dynamic_hack
23  
24   %define cpu %(echo %cmsplatf | cut -d_ -f2)
27 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
28
29 Requires: gccxml gsl castor libjpg dcap pcre python
25  
26 + Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3
27   %if "%online" != "true"
28 < Requires: qt openssl mysql libpng zlib libungif xrootd
33 < %else
34 < %define skiplibtiff true
35 < %endif
36 <
37 < %if "%cpu" == "amd64"
38 < %define skiplibtiff true
39 < %endif
40 <
41 < %if "%skiplibtiff" != "true"
42 < Requires: libtiff
28 > Requires: qt openssl libpng zlib libungif libtiff
29   %endif
30  
31   %prep
# Line 47 | Line 33 | Requires: libtiff
33   %patch0 -p1
34   %patch1 -p1
35   %patch2 -p1
36 < %patch3 -p1
36 > # patch3 is OS version dependent, see below
37   %patch4 -p1
52
38   %patch5 -p1
39   %patch6 -p1
40   %patch7 -p1
41   %patch8 -p1
42   %patch9 -p1
43 <
59 < # patch10 is compiler version dependent, see below
43 > %patch10 -p1
44   %patch11 -p1
45   %patch12 -p1
62 # patch13 is compiler version dependent, see below
63
64 # work around patch issue...
65 rm graf3d/gl/src/gl2ps.c
66 %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
74 case %gccver in
75  4.3.*)
46   %patch13 -p1
47 <  ;;
48 <  4.4.*)
49 < %patch10 -p1
47 >
48 > # The following patch can only be applied on SLC5 or later (extra linker
49 > # options only available with the SLC5 binutils)
50 > case %cmsplatf in
51 >  slc5_* | slc5onl_* )
52 > %patch3 -p1
53    ;;
54   esac
55 <
55 >
56   %build
57  
58   mkdir -p %i
59 + export LIBJPG_ROOT
60   export ROOTSYS=%_builddir/root
61 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
62  
63   %if "%online" == "true"
64 < # Build without mysql, and use system qt.
90 < # Also skip xrootd and odbc for online case:
64 > # Use system qt. Also skip xrootd and odbc for online case:
65  
66   EXTRA_CONFIG_ARGS="--with-f77=/usr
93             --disable-mysql
94             --disable-xrootd
67               --disable-odbc
68 <             --disable-qt --disable-qtgsi"
68 >             --disable-qt --disable-qtgsi --disable-astiff"
69   %else
70 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
71   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
72               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
73               --with-ssl-incdir=${OPENSSL_ROOT}/include
74               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 109 | Line 80 | CONFIG_ARGS="--enable-table
80               --disable-builtin-freetype
81               --disable-builtin-zlib
82               --with-gccxml=${GCCXML_ROOT}
83 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
83 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
84               --enable-explicitlink
85               --enable-mathmore
86               --enable-reflex  
87               --enable-cintex
88               --enable-minuit2
89 +             --enable-fftw3
90 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
91 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
92               --disable-ldap
93               --disable-krb5
94 +             --with-xrootd=${XROOTD_ROOT}
95               --with-gsl-incdir=${GSL_ROOT}/include
96               --with-gsl-libdir=${GSL_ROOT}/lib
97               --with-dcap-libdir=${DCAP_ROOT}/lib
98               --with-dcap-incdir=${DCAP_ROOT}/include
99               --disable-pgsql
100 +             --disable-mysql
101               --disable-xml ${EXTRA_CONFIG_ARGS}"
102  
103 < #case %gccver in
128 < #  4.*)
129 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
130 < #  ;;
131 < #esac
132 <
133 < case $(uname)-$(uname -p) in
103 > case $(uname)-$(uname -m) in
104    Linux-x86_64)
105 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
105 >    ./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 ;;
106    Linux-i*86)
107 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
107 >    ./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 ;;
108    Darwin*)
109 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
109 >    case %cmsplatf in
110 >    *_ia32_* )
111 >      comparch=i386 ;;
112 >    *_amd64_* )
113 >      comparch=x86_64 ;;
114 >    * )
115 >      comparch=ppc ;;
116 >    esac
117 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
118 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
119    Linux-ppc64*)
120      ./configure linux $CONFIG_ARGS --disable-rfio;;
121   esac
# Line 169 | Line 148 | export ROOTSYS=%i
148   make INSTALL="$cp" INSTALLDATA="$cp" install
149   mkdir -p $ROOTSYS/lib/python
150   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
172 #
151  
152   # SCRAM ToolBox toolfile
153   mkdir -p %i/etc/scram.d
154   # rootcore toolfile
155 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
156 < <doc type=BuildSystem::ToolDoc version=1.0>
157 < <Tool name=rootcore version=%v>
158 < <info url="http://root.cern.ch/root/"></info>
159 < <lib name=Tree>
160 < <lib name=Net>
161 < <lib name=Thread>
162 < <lib name=MathCore>
163 < <lib name=RIO>
164 < <lib name=Core>
165 < <lib name=Cint>
166 < <Client>
167 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
168 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
169 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
170 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
171 < </Client>
172 < <use name=sockets>
173 < <use name=pcre>
174 < <use name=zlib>
175 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
176 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
177 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
200 < </Tool>
155 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
156 >  <tool name="rootcore" version="%v">
157 >    <info url="http://root.cern.ch/root/"/>
158 >    <lib name="Tree"/>
159 >    <lib name="Net"/>
160 >    <lib name="Thread"/>
161 >    <lib name="MathCore"/>
162 >    <lib name="RIO"/>
163 >    <lib name="Core"/>
164 >    <lib name="Cint"/>
165 >    <client>
166 >      <environment name="ROOTCORE_BASE" default="%i"/>
167 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
168 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
169 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
170 >    </client>
171 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
172 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
173 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
174 >    <use name="sockets"/>
175 >    <use name="pcre"/>
176 >    <use name="zlib"/>
177 >  </tool>
178   EOF_TOOLFILE
179  
180   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
181 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
182 < <doc type=BuildSystem::ToolDoc version=1.0>
183 < <Tool name=root version=%v>
184 < <info url="http://root.cern.ch/root/"></info>
185 < <use name=rootphysics>
209 < </Tool>
181 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
182 >  <tool name="root" version="%v">
183 >    <info url="http://root.cern.ch/root/"/>
184 >    <use name="rootphysics"/>
185 >  </tool>
186   EOF_TOOLFILE
187  
188   # roothistmatrix toolfile
189 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
190 < <doc type=BuildSystem::ToolDoc version=1.0>
191 < <Tool name=roothistmatrix version=%v>
192 < <info url="http://root.cern.ch/root/"></info>
193 < <lib name=Hist>
194 < <lib name=Matrix>
195 < <use name=ROOTCore>
220 < </Tool>
189 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
190 >  <tool name="roothistmatrix" version="%v">
191 >    <info url="http://root.cern.ch/root/"/>
192 >    <lib name="Hist"/>
193 >    <lib name="Matrix"/>
194 >    <use name="ROOTCore"/>
195 >  </tool>
196   EOF_TOOLFILE
197  
198   # rootgpad toolfile
199 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad
200 < <doc type=BuildSystem::ToolDoc version=1.0>
201 < <Tool name=rootgpad version=%v>
202 < <info url="http://root.cern.ch/root/"></info>
203 < <lib name=Gpad>
204 < <lib name=Graf>
205 < <use name=roothistmatrix>
231 < </Tool>
199 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
200 >  <tool name="rootgpad" version="%v">
201 >    <info url="http://root.cern.ch/root/"/>
202 >    <lib name="Gpad"/>
203 >    <lib name="Graf"/>
204 >    <use name="roothistmatrix"/>
205 >  </tool>
206   EOF_TOOLFILE
207  
208   # rootphysics toolfile
209 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
210 < <doc type=BuildSystem::ToolDoc version=1.0>
211 < <Tool name=rootphysics version=%v>
212 < <info url="http://root.cern.ch/root/"></info>
213 < <lib name=Physics>
214 < <use name=roothistmatrix>
241 < </Tool>
209 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
210 >  <tool name="rootphysics" version="%v">
211 >    <info url="http://root.cern.ch/root/"/>
212 >    <lib name="Physics"/>
213 >    <use name="roothistmatrix"/>
214 >  </tool>
215   EOF_TOOLFILE
216  
217   # rootgraphics toolfile, identical to old "root" toolfile
218 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
219 < <doc type=BuildSystem::ToolDoc version=1.0>
220 < <Tool name=rootgraphics version=%v>
221 < <info url="http://root.cern.ch/root/"></info>
222 < <lib name=TreePlayer>
223 < <lib name=Graf3d>
224 < <lib name=Postscript>
225 < <use name=rootgpad>
253 < </Tool>
218 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
219 >  <tool name="rootgraphics" version="%v">
220 >    <info url="http://root.cern.ch/root/"/>
221 >    <lib name="TreePlayer"/>
222 >    <lib name="Graf3d"/>
223 >    <lib name="Postscript"/>
224 >    <use name="rootgpad"/>
225 >  </tool>
226   EOF_TOOLFILE
227  
228   # rootcintex toolfile
229 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
230 < <doc type=BuildSystem::ToolDoc version=1.0>
231 < <Tool name=rootcintex version=%v>
232 < <info url="http://root.cern.ch/root/"></info>
233 < <lib name=Cintex>
234 < <use name=ROOTRflx>
235 < <use name=ROOTCore>
236 < </Tool>
237 < EOF_TOOLFILE
238 <
239 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
240 < # have been removed for the moment)
241 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
242 < <doc type=BuildSystem::ToolDoc version=1.0>
243 < <Tool name=rootinteractive version=%v>
244 < <info url="http://root.cern.ch/root/"></info>
245 < <lib name=Rint>
246 < <lib name=GQt>
247 < <lib name=Gui>
248 < <use name=qt>
249 < <use name=libjpg>
250 < <use name=libpng>
251 < <use name=rootgpad>
252 < </Tool>
229 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
230 >  <tool name="rootcintex" version="%v">
231 >    <info url="http://root.cern.ch/root/"/>
232 >    <lib name="Cintex"/>
233 >    <use name="ROOTRflx"/>
234 >    <use name="ROOTCore"/>
235 >  </tool>
236 > EOF_TOOLFILE
237 >
238 > # rootinteractive toolfile (GQt/qt lib dependencies
239 > # have been moved to rootqt.xml)
240 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
241 >  <tool name="rootinteractive" version="%v">
242 >    <info url="http://root.cern.ch/root/"/>
243 >    <lib name="Rint"/>
244 >    <lib name="Gui"/>
245 >    <use name="libjpg"/>
246 >    <use name="libpng"/>
247 >    <use name="rootgpad"/>
248 >  </tool>
249 > EOF_TOOLFILE
250 >
251 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
252 >  <tool name="rootqt" version="%v">
253 >    <info url="http://root.cern.ch/root/"/>
254 >    <lib name="GQt"/>
255 >    <use name="qt"/>
256 >  </tool>
257   EOF_TOOLFILE
258  
259   # rootmath toolfile
260 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
261 < <doc type=BuildSystem::ToolDoc version=1.0>
262 < <Tool name=rootmath version=%v>
263 < <info url="http://root.cern.ch/root/"></info>
264 < <lib name=GenVector>
265 < <lib name=MathMore>
266 < <use name=ROOTCore>
267 < <use name=gsl>
292 < </Tool>
260 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
261 >  <tool name="rootmath" version="%v">
262 >    <info url="http://root.cern.ch/root/"/>
263 >    <lib name="GenVector"/>
264 >    <lib name="MathMore"/>
265 >    <use name="ROOTCore"/>
266 >    <use name="gsl"/>
267 >  </tool>
268   EOF_TOOLFILE
269  
270   # rootminuit toolfile
271 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
272 < <doc type=BuildSystem::ToolDoc version=1.0>
273 < <Tool name=rootminuit version=%v>
274 < <info url="http://root.cern.ch/root/"></info>
275 < <lib name=Minuit>
276 < <use name=rootgpad>
302 < </Tool>
271 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
272 >  <tool name="rootminuit" version="%v">
273 >    <info url="http://root.cern.ch/root/"/>
274 >    <lib name="Minuit"/>
275 >    <use name="rootgpad"/>
276 >  </tool>
277   EOF_TOOLFILE
278  
279   # rootminuit2 toolfile
280 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
281 < <doc type=BuildSystem::ToolDoc version=1.0>
282 < <Tool name=rootminuit2 version=%v>
283 < <info url="http://root.cern.ch/root/"></info>
284 < <lib name=Minuit2>
285 < <use name=rootgpad>
312 < </Tool>
280 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
281 >  <tool name="rootminuit2" version="%v">
282 >    <info url="http://root.cern.ch/root/"/>
283 >    <lib name="Minuit2"/>
284 >    <use name="rootgpad"/>
285 >  </tool>
286   EOF_TOOLFILE
287  
288   # rootrflx toolfile
289 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
290 < <doc type=BuildSystem::ToolDoc version=1.0>
291 < <Tool name=rootrflx version=%v>
292 < <info url="http://root.cern.ch/root/"></info>
293 < <lib name=Reflex>
294 < <Client>
295 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
296 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
297 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
298 < </Client>
299 < <use name=sockets>
300 < <use name=gccxml>
301 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
302 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
303 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
331 < </Tool>
289 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
290 >  <tool name="rootrflx" version="%v">
291 >    <info url="http://root.cern.ch/root/"/>
292 >    <lib name="Reflex"/>
293 >    <client>
294 >      <environment name="ROOTRFLX_BASE" default="%i"/>
295 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
296 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
297 >    </client>
298 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
299 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
300 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
301 >    <use name="sockets"/>
302 >    <use name="gccxml"/>
303 >  </tool>
304   EOF_TOOLFILE
305  
306   # roothtml toolfile
307 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
308 < <doc type=BuildSystem::ToolDoc version=1.0>
309 < <Tool name=roothtml version=%v>
310 < <info url="http://root.cern.ch/root/"></info>
311 < <lib name=Html>
312 < <use name=rootgpad>
341 < </Tool>
307 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
308 >  <tool name="roothtml" version="%v">
309 >    <info url="http://root.cern.ch/root/"/>
310 >    <lib name="Html"/>
311 >    <use name="rootgpad"/>
312 >  </tool>
313   EOF_TOOLFILE
314  
315   # rootmlp toolfile
316 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
317 < <doc type=BuildSystem::ToolDoc version=1.0>
318 < <Tool name=rootmlp version=%v>
319 < <info url="http://root.cern.ch/root/"></info>
320 < <lib name=MLP>
321 < <use name=RootGraphics>
351 < </Tool>
316 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
317 >  <tool name="rootmlp" version="%v">
318 >    <info url="http://root.cern.ch/root/"/>
319 >    <lib name="MLP"/>
320 >    <use name="RootGraphics"/>
321 >  </tool>
322   EOF_TOOLFILE
323  
324   # roottmva toolfile
325 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
326 < <doc type=BuildSystem::ToolDoc version=1.0>
327 < <Tool name=roottmva version=%v>
328 < <info url="http://root.cern.ch/root/"></info>
329 < <lib name=TMVA>
330 < <use name=ROOTMLP>
331 < <use name=rootminuit>
362 < </Tool>
325 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
326 >  <tool name="roottmva" version="%v">
327 >    <info url="http://root.cern.ch/root/"/>
328 >    <lib name="TMVA"/>
329 >    <use name="ROOTMLP"/>
330 >    <use name="rootminuit"/>
331 >  </tool>
332   EOF_TOOLFILE
333  
334   # rootthread toolfile
335 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
336 < <doc type=BuildSystem::ToolDoc version=1.0>
337 < <Tool name=rootthread version=%v>
338 < <info url="http://root.cern.ch/root/"></info>
339 < <use name=ROOTCore>
371 < </Tool>
335 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
336 >  <tool name="rootthread" version="%v">
337 >    <info url="http://root.cern.ch/root/"/>
338 >    <use name="ROOTCore"/>
339 >  </tool>
340   EOF_TOOLFILE
341  
342   %post
343 < %{relocateConfig}etc/scram.d/root
344 < %{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
343 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
344 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines