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.132 by elmer, Thu Jan 15 00:59:45 2009 UTC vs.
Revision 1.184 by muzaffar, Fri Dec 4 16:43:26 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00
1 > ### RPM lcg root 5.22.00d
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  
9 < Patch0:  root-5.18-00-libpng
9 > Patch0:  root-5.18-00-libpng
10   Patch1:  root-5.21-04-CINT-maxlongline
11 < Patch2:  root-5.22-00-TClass-Clone
12 < Patch3:  root-5.22-00-gendict
13 < Patch4:  root-5.22-00-RootSys
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 > Patch16: root-5.22-00d-genreflex_python26_popen3
26 > Patch17: root-5.22-00d-fireworks6
27 > Patch18: root-5.22-00d-linker-gnu-hash-style
28  
29   %define cpu %(echo %cmsplatf | cut -d_ -f2)
14 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
30  
31   Requires: gccxml gsl castor libjpg dcap pcre python
32  
33 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
34 < Requires: qt openssl mysql libpng zlib libungif
33 > %if "%online" != "true"
34 > Requires: qt openssl libpng zlib libungif xrootd
35   %else
36   %define skiplibtiff true
37   %endif
# Line 37 | Line 52 | Requires: libtiff
52   %patch3 -p1
53   %patch4 -p1
54  
55 + %patch5 -p1
56 + %patch6 -p1
57 + %patch7 -p1
58 + %patch8 -p1
59 + %patch9 -p1
60 +
61 + # patch10 is compiler version dependent, see below
62 + %patch11 -p1
63 + %patch12 -p1
64 + # patch13 is compiler version dependent, see below
65 +
66 + # work around patch issue...
67 + rm graf3d/gl/src/gl2ps.c
68 + %patch14 -p1
69 + #work around patch issues in patch14(?)
70 + rm graf3d/eve/inc/TEveLegoOverlay.h.orig
71 + rm graf3d/eve/src/TEveLegoOverlay.cxx
72 + rm graf3d/gl/inc/gl2ps.h.orig
73 + rm graf3d/gl/src/gl2ps.c.orig
74 + %patch15 -p1
75 + %patch16 -p1
76 + %patch17 -p1
77 +
78 + case %gccver in
79 +  4.3.*)
80 + %patch13 -p1
81 +  ;;
82 +  4.4.*)
83 + %patch10 -p1
84 +  ;;
85 + esac
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 + %patch18 -p1
92 +  ;;
93 + esac
94 +
95   %build
96 +
97   mkdir -p %i
98   export ROOTSYS=%_builddir/root
99 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
100  
101 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
102 < # Build without mysql, and use system qt.
46 < # Also skip xrootd and odbc for online case:
101 > %if "%online" == "true"
102 > # Use system qt. Also skip xrootd and odbc for online case:
103  
104 < EXTRA_CONFIG_ARGS="
49 <             --disable-mysql
104 > EXTRA_CONFIG_ARGS="--with-f77=/usr
105               --disable-xrootd
106               --disable-odbc
107 <             --enable-qt"
107 >             --disable-qt --disable-qtgsi"
108   %else
109 < EXTRA_CONFIG_ARGS="
110 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
109 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
110 >             --with-xrootd=$XROOTD_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="--with-f77=${GCC_ROOT}
62 <             --enable-table
117 > CONFIG_ARGS="--enable-table
118               --disable-builtin-pcre
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
69             --enable-qtgsi
124               --enable-mathmore
125               --enable-reflex  
126               --enable-cintex
127               --enable-minuit2
74             --enable-roofit
128               --disable-ldap
129               --disable-krb5
130               --with-gsl-incdir=${GSL_ROOT}/include
# Line 79 | Line 132 | CONFIG_ARGS="--with-f77=${GCC_ROOT}
132               --with-dcap-libdir=${DCAP_ROOT}/lib
133               --with-dcap-incdir=${DCAP_ROOT}/include
134               --disable-pgsql
135 +             --disable-mysql
136               --disable-xml ${EXTRA_CONFIG_ARGS}"
137  
138 < #case %gccver in
85 < #  4.*)
86 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
87 < #  ;;
88 < #esac
89 <
90 < case $(uname)-$(uname -p) in
138 > case $(uname)-$(uname -m) in
139    Linux-x86_64)
140 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
140 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
141    Linux-i*86)
142      ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
143    Darwin*)
144 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
144 >    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
145    Linux-ppc64*)
146      ./configure linux $CONFIG_ARGS --disable-rfio;;
147   esac
148  
149 < make  %makeprocesses
149 > case %cmsplatf in
150 >  osx*)
151 >   makeopts=
152 >  ;;
153 >  *)
154 >   makeopts="%makeprocesses"
155 >  ;;
156 > esac
157 >
158 > make $makeopts
159   make cintdlls
160 +
161   %install
162   # Override installers if we are using GNU fileutils cp.  On OS X
163   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 121 | Line 179 | cp -r cint/reflex/python/genreflex $ROOT
179   # SCRAM ToolBox toolfile
180   mkdir -p %i/etc/scram.d
181   # rootcore toolfile
182 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
183 < <doc type=BuildSystem::ToolDoc version=1.0>
184 < <Tool name=rootcore version=%v>
185 < <info url="http://root.cern.ch/root/"></info>
186 < <lib name=Cint>
187 < <lib name=Core>
188 < <lib name=RIO>
189 < <lib name=Net>
190 < <lib name=Tree>
191 < <Client>
192 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
193 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
194 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
195 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
196 < </Client>
197 < <use name=sockets>
198 < <use name=pcre>
199 < <use name=zlib>
200 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
201 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
202 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
203 < </Tool>
182 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
183 >  <tool name="rootcore" version="%v">
184 >    <info url="http://root.cern.ch/root/"/>
185 >    <lib name="Tree"/>
186 >    <lib name="Net"/>
187 >    <lib name="Thread"/>
188 >    <lib name="MathCore"/>
189 >    <lib name="RIO"/>
190 >    <lib name="Core"/>
191 >    <lib name="Cint"/>
192 >    <client>
193 >      <environment name="ROOTCORE_BASE" default="%i"/>
194 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
195 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
196 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
197 >    </client>
198 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
199 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
200 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
201 >    <use name="sockets"/>
202 >    <use name="pcre"/>
203 >    <use name="zlib"/>
204 >  </tool>
205   EOF_TOOLFILE
206  
207   # root toolfile, alias for rootphysics. Using rootphysics is preferred.
208 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
209 < <doc type=BuildSystem::ToolDoc version=1.0>
210 < <Tool name=root version=%v>
211 < <info url="http://root.cern.ch/root/"></info>
212 < <use name=rootphysics>
154 < </Tool>
208 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
209 >  <tool name="root" version="%v">
210 >    <info url="http://root.cern.ch/root/"/>
211 >    <use name="rootphysics"/>
212 >  </tool>
213   EOF_TOOLFILE
214  
215   # roothistmatrix toolfile
216 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
217 < <doc type=BuildSystem::ToolDoc version=1.0>
218 < <Tool name=roothistmatrix version=%v>
219 < <info url="http://root.cern.ch/root/"></info>
220 < <lib name=Hist>
221 < <lib name=Matrix>
222 < <use name=ROOTCore>
223 < </Tool>
216 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
217 >  <tool name="roothistmatrix" version="%v">
218 >    <info url="http://root.cern.ch/root/"/>
219 >    <lib name="Hist"/>
220 >    <lib name="Matrix"/>
221 >    <use name="ROOTCore"/>
222 >  </tool>
223 > EOF_TOOLFILE
224 >
225 > # rootgpad toolfile
226 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
227 >  <tool name="rootgpad" version="%v">
228 >    <info url="http://root.cern.ch/root/"/>
229 >    <lib name="Gpad"/>
230 >    <lib name="Graf"/>
231 >    <use name="roothistmatrix"/>
232 >  </tool>
233   EOF_TOOLFILE
234  
235   # rootphysics toolfile
236 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
237 < <doc type=BuildSystem::ToolDoc version=1.0>
238 < <Tool name=rootphysics version=%v>
239 < <info url="http://root.cern.ch/root/"></info>
240 < <lib name=Physics>
241 < <use name=roothistmatrix>
175 < </Tool>
236 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
237 >  <tool name="rootphysics" version="%v">
238 >    <info url="http://root.cern.ch/root/"/>
239 >    <lib name="Physics"/>
240 >    <use name="roothistmatrix"/>
241 >  </tool>
242   EOF_TOOLFILE
243  
244   # rootgraphics toolfile, identical to old "root" toolfile
245 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
246 < <doc type=BuildSystem::ToolDoc version=1.0>
247 < <Tool name=rootgraphics version=%v>
248 < <info url="http://root.cern.ch/root/"></info>
249 < <lib name=TreePlayer>
250 < <lib name=Gpad>
251 < <lib name=Graf3d>
252 < <lib name=Graf>
187 < <lib name=Hist>
188 < <lib name=Matrix>
189 < <lib name=Physics>
190 < <lib name=Postscript>
191 < <use name=ROOTCore>
192 < </Tool>
245 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
246 >  <tool name="rootgraphics" version="%v">
247 >    <info url="http://root.cern.ch/root/"/>
248 >    <lib name="TreePlayer"/>
249 >    <lib name="Graf3d"/>
250 >    <lib name="Postscript"/>
251 >    <use name="rootgpad"/>
252 >  </tool>
253   EOF_TOOLFILE
254  
255   # rootcintex toolfile
256 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
257 < <doc type=BuildSystem::ToolDoc version=1.0>
258 < <Tool name=rootcintex version=%v>
259 < <info url="http://root.cern.ch/root/"></info>
260 < <lib name=Cintex>
261 < <use name=ROOTRflx>
262 < <use name=ROOTCore>
263 < </Tool>
264 < EOF_TOOLFILE
265 <
266 < # rootinteractive toolfile
267 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
268 < <doc type=BuildSystem::ToolDoc version=1.0>
269 < <Tool name=rootinteractive version=%v>
270 < <info url="http://root.cern.ch/root/"></info>
271 < <lib name=Rint>
272 < <lib name=GQt>
273 < <use name=qt>
274 < <use name=libjpg>
275 < <use name=libpng>
276 < <use name=ROOT>
277 < </Tool>
256 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
257 >  <tool name="rootcintex" version="%v">
258 >    <info url="http://root.cern.ch/root/"/>
259 >    <lib name="Cintex"/>
260 >    <use name="ROOTRflx"/>
261 >    <use name="ROOTCore"/>
262 >  </tool>
263 > EOF_TOOLFILE
264 >
265 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
266 > # have been removed for the moment)
267 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
268 >  <tool name="rootinteractive" version="%v">
269 >    <info url="http://root.cern.ch/root/"/>
270 >    <lib name="Rint"/>
271 >    <lib name="GQt"/>
272 >    <lib name="Gui"/>
273 >    <use name="qt"/>
274 >    <use name="libjpg"/>
275 >    <use name="libpng"/>
276 >    <use name="rootgpad"/>
277 >  </tool>
278   EOF_TOOLFILE
279  
280   # rootmath toolfile
281 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
282 < <doc type=BuildSystem::ToolDoc version=1.0>
283 < <Tool name=rootmath version=%v>
284 < <info url="http://root.cern.ch/root/"></info>
285 < <lib name=MathCore>
286 < <lib name=MathMore>
287 < <lib name=GenVector>
288 < <use name=ROOTCore>
229 < <use name=gsl>
230 < </Tool>
281 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
282 >  <tool name="rootmath" version="%v">
283 >    <info url="http://root.cern.ch/root/"/>
284 >    <lib name="GenVector"/>
285 >    <lib name="MathMore"/>
286 >    <use name="ROOTCore"/>
287 >    <use name="gsl"/>
288 >  </tool>
289   EOF_TOOLFILE
290  
291   # rootminuit toolfile
292 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
293 < <doc type=BuildSystem::ToolDoc version=1.0>
294 < <Tool name=rootminuit version=%v>
295 < <info url="http://root.cern.ch/root/"></info>
296 < <lib name=Minuit>
297 < <use name=ROOT>
240 < </Tool>
292 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
293 >  <tool name="rootminuit" version="%v">
294 >    <info url="http://root.cern.ch/root/"/>
295 >    <lib name="Minuit"/>
296 >    <use name="rootgpad"/>
297 >  </tool>
298   EOF_TOOLFILE
299  
300   # rootminuit2 toolfile
301 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
302 < <doc type=BuildSystem::ToolDoc version=1.0>
303 < <Tool name=rootminuit2 version=%v>
304 < <info url="http://root.cern.ch/root/"></info>
305 < <lib name=Minuit2>
306 < <use name=ROOT>
250 < </Tool>
301 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
302 >  <tool name="rootminuit2" version="%v">
303 >    <info url="http://root.cern.ch/root/"/>
304 >    <lib name="Minuit2"/>
305 >    <use name="rootgpad"/>
306 >  </tool>
307   EOF_TOOLFILE
308  
309   # rootrflx toolfile
310 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
311 < <doc type=BuildSystem::ToolDoc version=1.0>
312 < <Tool name=rootrflx version=%v>
313 < <info url="http://root.cern.ch/root/"></info>
314 < <lib name=Reflex>
315 < <Client>
316 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
317 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
318 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
319 < </Client>
320 < <use name=sockets>
321 < <use name=gccxml>
322 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
323 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
324 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
269 < </Tool>
310 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
311 >  <tool name="rootrflx" version="%v">
312 >    <info url="http://root.cern.ch/root/"/>
313 >    <lib name="Reflex"/>
314 >    <client>
315 >      <environment name="ROOTRFLX_BASE" default="%i"/>
316 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
317 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
318 >    </client>
319 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
320 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
321 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
322 >    <use name="sockets"/>
323 >    <use name="gccxml"/>
324 >  </tool>
325   EOF_TOOLFILE
326  
327   # roothtml toolfile
328 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
329 < <doc type=BuildSystem::ToolDoc version=1.0>
330 < <Tool name=roothtml version=%v>
331 < <info url="http://root.cern.ch/root/"></info>
332 < <lib name=Html>
333 < <use name=ROOT>
279 < </Tool>
280 < EOF_TOOLFILE
281 <
282 < # rootroofit toolfile
283 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
284 < <doc type=BuildSystem::ToolDoc version=1.0>
285 < <Tool name=rootroofit version=%v>
286 < <info url="http://root.cern.ch/root/"></info>
287 < <lib name=RooFitCore>
288 < <lib name=RooFit>
289 < <use name=ROOTMinuit>
290 < <use name=ROOTHtml>
291 < </Tool>
328 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
329 >  <tool name="roothtml" version="%v">
330 >    <info url="http://root.cern.ch/root/"/>
331 >    <lib name="Html"/>
332 >    <use name="rootgpad"/>
333 >  </tool>
334   EOF_TOOLFILE
335  
336   # rootmlp toolfile
337 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
338 < <doc type=BuildSystem::ToolDoc version=1.0>
339 < <Tool name=rootmlp version=%v>
340 < <info url="http://root.cern.ch/root/"></info>
341 < <lib name=MLP>
342 < <use name=ROOT>
301 < </Tool>
337 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
338 >  <tool name="rootmlp" version="%v">
339 >    <info url="http://root.cern.ch/root/"/>
340 >    <lib name="MLP"/>
341 >    <use name="RootGraphics"/>
342 >  </tool>
343   EOF_TOOLFILE
344  
345   # roottmva toolfile
346 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
347 < <doc type=BuildSystem::ToolDoc version=1.0>
348 < <Tool name=roottmva version=%v>
349 < <info url="http://root.cern.ch/root/"></info>
350 < <lib name=TMVA>
351 < <use name=ROOTMLP>
352 < </Tool>
346 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
347 >  <tool name="roottmva" version="%v">
348 >    <info url="http://root.cern.ch/root/"/>
349 >    <lib name="TMVA"/>
350 >    <use name="ROOTMLP"/>
351 >    <use name="rootminuit"/>
352 >  </tool>
353   EOF_TOOLFILE
354  
355   # rootthread toolfile
356 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
357 < <doc type=BuildSystem::ToolDoc version=1.0>
358 < <Tool name=rootthread version=%v>
359 < <info url="http://root.cern.ch/root/"></info>
360 < <lib name=Thread>
320 < <use name=ROOTCore>
321 < </Tool>
356 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
357 >  <tool name="rootthread" version="%v">
358 >    <info url="http://root.cern.ch/root/"/>
359 >    <use name="ROOTCore"/>
360 >  </tool>
361   EOF_TOOLFILE
362  
363   %post
364 < %{relocateConfig}etc/scram.d/root
326 < %{relocateConfig}etc/scram.d/rootcore
327 < %{relocateConfig}etc/scram.d/roothistmatrix
328 < %{relocateConfig}etc/scram.d/rootphysics
329 < %{relocateConfig}etc/scram.d/rootgraphics
330 < %{relocateConfig}etc/scram.d/rootcintex
331 < %{relocateConfig}etc/scram.d/rootinteractive
332 < %{relocateConfig}etc/scram.d/rootmath
333 < %{relocateConfig}etc/scram.d/rootminuit
334 < %{relocateConfig}etc/scram.d/rootminuit2
335 < %{relocateConfig}etc/scram.d/rootrflx
336 < %{relocateConfig}etc/scram.d/roothtml
337 < %{relocateConfig}etc/scram.d/rootroofit
338 < %{relocateConfig}etc/scram.d/rootmlp
339 < %{relocateConfig}etc/scram.d/roottmva
340 < %{relocateConfig}etc/scram.d/rootthread
364 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines