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.218 by elmer, Tue Nov 2 23:19:05 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines