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.93 by elmer, Fri Jan 18 21:22:01 2008 UTC vs.
Revision 1.223 by elmer, Mon Dec 13 23:30:30 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00-CMS19
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 false;; esac)
8  
9 < Patch0: root-5.18-00-libpng
10 < Patch1: root-5.18-00-CINT-maxlongline
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 > Patch14: root-5.27-06b-r37405
24 > Patch15: root-5.27-06b-r37556
25  
26   %define cpu %(echo %cmsplatf | cut -d_ -f2)
11 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
12 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
27  
28 < %if "%cpu" != "amd64"
29 < Requires: libtiff
28 > Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3
29 > %if "%online" != "true"
30 > Requires: qt openssl libpng zlib libungif libtiff
31   %endif
32  
33   %prep
34   %setup -n root
35   %patch0 -p1
36   %patch1 -p1
37 + %patch2 -p1
38 + # patch3 is OS version dependent, see below
39 + %patch4 -p1
40 + %patch5 -p1
41 + %patch6 -p1
42 + %patch7 -p1
43 + %patch8 -p1
44 + %patch9 -p1
45 + %patch10 -p1
46 + %patch11 -p1
47 + %patch12 -p1
48 + %patch13 -p1
49 + %patch14 -p1
50 + %patch15 -p1
51 +
52 + # The following patch can only be applied on SLC5 or later (extra linker
53 + # options only available with the SLC5 binutils)
54 + case %cmsplatf in
55 +  slc5_* | slc5onl_* )
56 + %patch3 -p1
57 +  ;;
58 + esac
59  
60   %build
61 +
62   mkdir -p %i
63 + export LIBJPG_ROOT
64   export ROOTSYS=%_builddir/root
65 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
66 +
67 + %if "%online" == "true"
68 + # Use system qt. Also skip xrootd and odbc for online case:
69 +
70 + EXTRA_CONFIG_ARGS="--with-f77=/usr
71 +             --disable-odbc
72 +             --disable-qt --disable-qtgsi --disable-astiff"
73 + %else
74 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
75 + EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
76 +             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
77 +             --with-ssl-incdir=${OPENSSL_ROOT}/include
78 +             --with-ssl-libdir=${OPENSSL_ROOT}/lib
79 +             --enable-qtgsi"
80 + %endif
81 +
82   CONFIG_ARGS="--enable-table
83               --disable-builtin-pcre
84               --disable-builtin-freetype
85               --disable-builtin-zlib
86               --with-gccxml=${GCCXML_ROOT}
87 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
32 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
87 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
88               --enable-explicitlink
34             --enable-qtgsi
35             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
36             --enable-mathcore
89               --enable-mathmore
90               --enable-reflex  
91               --enable-cintex
92               --enable-minuit2
93 <             --enable-roofit
93 >             --enable-fftw3
94 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
95 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
96               --disable-ldap
97               --disable-krb5
98 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
45 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
98 >             --with-xrootd=${XROOTD_ROOT}
99               --with-gsl-incdir=${GSL_ROOT}/include
100               --with-gsl-libdir=${GSL_ROOT}/lib
101               --with-dcap-libdir=${DCAP_ROOT}/lib
102               --with-dcap-incdir=${DCAP_ROOT}/include
50             --with-xrootd=$XROOTD_ROOT
103               --disable-pgsql
104 <             --disable-xml"
105 <
54 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
55 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
56 < %endif
104 >             --disable-mysql
105 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
106  
107 < case $(uname)-$(uname -p) in
107 > case $(uname)-$(uname -m) in
108    Linux-x86_64)
109 <    ./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
109 >    ./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 ;;
110    Linux-i*86)
111 <    ./configure linux  $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
111 >    ./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 ;;
112    Darwin*)
113 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
113 >    case %cmsplatf in
114 >    *_ia32_* )
115 >      comparch=i386 ;;
116 >    *_amd64_* )
117 >      comparch=x86_64 ;;
118 >    * )
119 >      comparch=ppc ;;
120 >    esac
121 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
122 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
123    Linux-ppc64*)
124      ./configure linux $CONFIG_ARGS --disable-rfio;;
125   esac
126  
127 < make  %makeprocesses
127 > case %cmsplatf in
128 >  osx*)
129 >   makeopts=
130 >  ;;
131 >  *)
132 >   makeopts="%makeprocesses"
133 >  ;;
134 > esac
135 >
136 > make $makeopts
137   make cintdlls
138 +
139   %install
140   # Override installers if we are using GNU fileutils cp.  On OS X
141   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 83 | Line 151 | fi
151   export ROOTSYS=%i
152   make INSTALL="$cp" INSTALLDATA="$cp" install
153   mkdir -p $ROOTSYS/lib/python
154 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
87 < #
154 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
155  
156   # SCRAM ToolBox toolfile
157   mkdir -p %i/etc/scram.d
158   # rootcore toolfile
159 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
160 < <doc type=BuildSystem::ToolDoc version=1.0>
161 < <Tool name=rootcore version=%v>
162 < <info url="http://root.cern.ch/root/"></info>
163 < <lib name=Cint>
164 < <lib name=Core>
165 < <lib name=RIO>
166 < <lib name=Net>
167 < <lib name=Tree>
168 < <Client>
169 < <Environment name=ROOTCORE_BASE default="%i"></Environment>
170 < <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
171 < <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
172 < <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
173 < </Client>
174 < <use name=sockets>
175 < <use name=pcre>
176 < <use name=zlib>
177 < <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
178 < <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
179 < <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
180 < </Tool>
181 < EOF_TOOLFILE
182 <
183 < # root toolfile
184 < cat << \EOF_TOOLFILE >%i/etc/scram.d/root
185 < <doc type=BuildSystem::ToolDoc version=1.0>
186 < <Tool name=root version=%v>
187 < <info url="http://root.cern.ch/root/"></info>
188 < <lib name=TreePlayer>
189 < <lib name=Gpad>
190 < <lib name=Graf3d>
191 < <lib name=Graf>
192 < <lib name=Hist>
193 < <lib name=Matrix>
194 < <lib name=Physics>
195 < <lib name=Postscript>
196 < <use name=ROOTCore>
197 < </Tool>
159 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
160 >  <tool name="rootcore" version="%v">
161 >    <info url="http://root.cern.ch/root/"/>
162 >    <lib name="Tree"/>
163 >    <lib name="Net"/>
164 >    <lib name="Thread"/>
165 >    <lib name="MathCore"/>
166 >    <lib name="RIO"/>
167 >    <lib name="Core"/>
168 >    <lib name="Cint"/>
169 >    <client>
170 >      <environment name="ROOTCORE_BASE" default="%i"/>
171 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
172 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
173 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
174 >    </client>
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"/>
178 >    <use name="sockets"/>
179 >    <use name="pcre"/>
180 >    <use name="zlib"/>
181 >  </tool>
182 > EOF_TOOLFILE
183 >
184 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
185 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
186 >  <tool name="root" version="%v">
187 >    <info url="http://root.cern.ch/root/"/>
188 >    <use name="rootphysics"/>
189 >  </tool>
190 > EOF_TOOLFILE
191 >
192 > # roothistmatrix toolfile
193 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
194 >  <tool name="roothistmatrix" version="%v">
195 >    <info url="http://root.cern.ch/root/"/>
196 >    <lib name="Hist"/>
197 >    <lib name="Matrix"/>
198 >    <use name="ROOTCore"/>
199 >  </tool>
200 > EOF_TOOLFILE
201 >
202 > # rootgpad toolfile
203 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
204 >  <tool name="rootgpad" version="%v">
205 >    <info url="http://root.cern.ch/root/"/>
206 >    <lib name="Gpad"/>
207 >    <lib name="Graf"/>
208 >    <use name="roothistmatrix"/>
209 >  </tool>
210 > EOF_TOOLFILE
211 >
212 > # rootphysics toolfile
213 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
214 >  <tool name="rootphysics" version="%v">
215 >    <info url="http://root.cern.ch/root/"/>
216 >    <lib name="Physics"/>
217 >    <use name="roothistmatrix"/>
218 >  </tool>
219 > EOF_TOOLFILE
220 >
221 > # rootgraphics toolfile, identical to old "root" toolfile
222 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
223 >  <tool name="rootgraphics" version="%v">
224 >    <info url="http://root.cern.ch/root/"/>
225 >    <lib name="TreePlayer"/>
226 >    <lib name="Graf3d"/>
227 >    <lib name="Postscript"/>
228 >    <use name="rootgpad"/>
229 >  </tool>
230   EOF_TOOLFILE
231  
232   # rootcintex toolfile
233 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
234 < <doc type=BuildSystem::ToolDoc version=1.0>
235 < <Tool name=rootcintex version=%v>
236 < <info url="http://root.cern.ch/root/"></info>
237 < <lib name=Cintex>
238 < <use name=ROOTRflx>
239 < <use name=ROOTCore>
240 < </Tool>
241 < EOF_TOOLFILE
242 <
243 < # rootinteractive toolfile
244 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
245 < <doc type=BuildSystem::ToolDoc version=1.0>
246 < <Tool name=rootinteractive version=%v>
247 < <info url="http://root.cern.ch/root/"></info>
248 < <lib name=Rint>
249 < <lib name=GQt>
250 < <use name=qt>
251 < <use name=libjpg>
252 < <use name=libpng>
253 < <use name=ROOT>
254 < </Tool>
233 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
234 >  <tool name="rootcintex" version="%v">
235 >    <info url="http://root.cern.ch/root/"/>
236 >    <lib name="Cintex"/>
237 >    <use name="ROOTRflx"/>
238 >    <use name="ROOTCore"/>
239 >  </tool>
240 > EOF_TOOLFILE
241 >
242 > # rootinteractive toolfile (GQt/qt lib dependencies
243 > # have been moved to rootqt.xml)
244 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
245 >  <tool name="rootinteractive" version="%v">
246 >    <info url="http://root.cern.ch/root/"/>
247 >    <lib name="Rint"/>
248 >    <lib name="Gui"/>
249 >    <use name="libjpg"/>
250 >    <use name="libpng"/>
251 >    <use name="rootgpad"/>
252 >  </tool>
253 > EOF_TOOLFILE
254 >
255 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
256 >  <tool name="rootqt" version="%v">
257 >    <info url="http://root.cern.ch/root/"/>
258 >    <lib name="GQt"/>
259 >    <use name="qt"/>
260 >  </tool>
261   EOF_TOOLFILE
262  
263   # rootmath toolfile
264 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
265 < <doc type=BuildSystem::ToolDoc version=1.0>
266 < <Tool name=rootmath version=%v>
267 < <info url="http://root.cern.ch/root/"></info>
268 < <lib name=MathCore>
269 < <lib name=MathMore>
270 < <use name=ROOTCore>
271 < <use name=gsl>
167 < </Tool>
264 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
265 >  <tool name="rootmath" version="%v">
266 >    <info url="http://root.cern.ch/root/"/>
267 >    <lib name="GenVector"/>
268 >    <lib name="MathMore"/>
269 >    <use name="ROOTCore"/>
270 >    <use name="gsl"/>
271 >  </tool>
272   EOF_TOOLFILE
273  
274   # rootminuit toolfile
275 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
276 < <doc type=BuildSystem::ToolDoc version=1.0>
277 < <Tool name=rootminuit version=%v>
278 < <info url="http://root.cern.ch/root/"></info>
279 < <lib name=Minuit>
280 < <use name=ROOT>
177 < </Tool>
275 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
276 >  <tool name="rootminuit" version="%v">
277 >    <info url="http://root.cern.ch/root/"/>
278 >    <lib name="Minuit"/>
279 >    <use name="rootgpad"/>
280 >  </tool>
281   EOF_TOOLFILE
282  
283   # rootminuit2 toolfile
284 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
285 < <doc type=BuildSystem::ToolDoc version=1.0>
286 < <Tool name=rootminuit2 version=%v>
287 < <info url="http://root.cern.ch/root/"></info>
288 < <lib name=Minuit2>
289 < <use name=ROOT>
187 < </Tool>
284 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
285 >  <tool name="rootminuit2" version="%v">
286 >    <info url="http://root.cern.ch/root/"/>
287 >    <lib name="Minuit2"/>
288 >    <use name="rootgpad"/>
289 >  </tool>
290   EOF_TOOLFILE
291  
292   # rootrflx toolfile
293 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
294 < <doc type=BuildSystem::ToolDoc version=1.0>
295 < <Tool name=rootrflx version=%v>
296 < <info url="http://root.cern.ch/root/"></info>
297 < <lib name=Reflex>
298 < <Client>
299 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
300 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
301 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
302 < </Client>
303 < <use name=sockets>
304 < <use name=gccxml>
305 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
306 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
307 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
206 < </Tool>
293 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
294 >  <tool name="rootrflx" version="%v">
295 >    <info url="http://root.cern.ch/root/"/>
296 >    <lib name="Reflex"/>
297 >    <client>
298 >      <environment name="ROOTRFLX_BASE" default="%i"/>
299 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
300 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
301 >    </client>
302 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
303 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
304 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
305 >    <use name="sockets"/>
306 >    <use name="gccxml"/>
307 >  </tool>
308   EOF_TOOLFILE
309  
310   # roothtml toolfile
311 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
312 < <doc type=BuildSystem::ToolDoc version=1.0>
313 < <Tool name=roothtml version=%v>
314 < <info url="http://root.cern.ch/root/"></info>
315 < <lib name=Html>
316 < <use name=ROOT>
216 < </Tool>
217 < EOF_TOOLFILE
218 <
219 < # rootroofit toolfile
220 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
221 < <doc type=BuildSystem::ToolDoc version=1.0>
222 < <Tool name=rootroofit version=%v>
223 < <info url="http://root.cern.ch/root/"></info>
224 < <lib name=RooFitCore>
225 < <lib name=RooFit>
226 < <use name=ROOTMinuit>
227 < <use name=ROOTHtml>
228 < </Tool>
311 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
312 >  <tool name="roothtml" version="%v">
313 >    <info url="http://root.cern.ch/root/"/>
314 >    <lib name="Html"/>
315 >    <use name="rootgpad"/>
316 >  </tool>
317   EOF_TOOLFILE
318  
319   # rootmlp toolfile
320 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
321 < <doc type=BuildSystem::ToolDoc version=1.0>
322 < <Tool name=rootmlp version=%v>
323 < <info url="http://root.cern.ch/root/"></info>
324 < <lib name=MLP>
325 < <use name=ROOT>
238 < </Tool>
320 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
321 >  <tool name="rootmlp" version="%v">
322 >    <info url="http://root.cern.ch/root/"/>
323 >    <lib name="MLP"/>
324 >    <use name="RootGraphics"/>
325 >  </tool>
326   EOF_TOOLFILE
327  
328   # roottmva toolfile
329 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
330 < <doc type=BuildSystem::ToolDoc version=1.0>
331 < <Tool name=roottmva version=%v>
332 < <info url="http://root.cern.ch/root/"></info>
333 < <lib name=TMVA>
334 < <use name=ROOTMLP>
335 < </Tool>
329 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
330 >  <tool name="roottmva" version="%v">
331 >    <info url="http://root.cern.ch/root/"/>
332 >    <lib name="TMVA"/>
333 >    <use name="ROOTMLP"/>
334 >    <use name="rootminuit"/>
335 >  </tool>
336   EOF_TOOLFILE
337  
338   # rootthread toolfile
339 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
340 < <doc type=BuildSystem::ToolDoc version=1.0>
341 < <Tool name=rootthread version=%v>
342 < <info url="http://root.cern.ch/root/"></info>
343 < <lib name=Thread>
257 < <use name=ROOTCore>
258 < </Tool>
339 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
340 >  <tool name="rootthread" version="%v">
341 >    <info url="http://root.cern.ch/root/"/>
342 >    <use name="ROOTCore"/>
343 >  </tool>
344   EOF_TOOLFILE
345  
346   %post
347 < %{relocateConfig}etc/scram.d/root
348 < %{relocateConfig}etc/scram.d/rootcore
264 < %{relocateConfig}etc/scram.d/rootcintex
265 < %{relocateConfig}etc/scram.d/rootinteractive
266 < %{relocateConfig}etc/scram.d/rootmath
267 < %{relocateConfig}etc/scram.d/rootminuit
268 < %{relocateConfig}etc/scram.d/rootminuit2
269 < %{relocateConfig}etc/scram.d/rootrflx
270 < %{relocateConfig}etc/scram.d/roothtml
271 < %{relocateConfig}etc/scram.d/rootroofit
272 < %{relocateConfig}etc/scram.d/rootmlp
273 < %{relocateConfig}etc/scram.d/roottmva
274 < %{relocateConfig}etc/scram.d/rootthread
347 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
348 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines