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 |
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 |
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) |
27 |
– |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
30 |
|
|
31 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
32 |
|
|
33 |
|
%if "%online" != "true" |
34 |
< |
Requires: qt openssl mysql libpng zlib libungif xrootd |
34 |
> |
Requires: qt openssl libpng zlib libungif xrootd |
35 |
|
%else |
36 |
|
%define skiplibtiff true |
37 |
|
%endif |
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.*) |
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 "%online" == "true" |
102 |
< |
# Build without mysql, and use system qt. |
90 |
< |
# Also skip xrootd and odbc for online case: |
102 |
> |
# Use system qt. Also skip xrootd and odbc for online case: |
103 |
|
|
104 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
93 |
– |
--disable-mysql |
105 |
|
--disable-xrootd |
106 |
|
--disable-odbc |
107 |
|
--disable-qt --disable-qtgsi" |
108 |
|
%else |
109 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
110 |
|
--with-xrootd=$XROOTD_ROOT |
100 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
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 |
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 |
124 |
|
--enable-mathmore |
125 |
|
--enable-reflex |
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 |
128 |
< |
# 4.*) |
129 |
< |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
130 |
< |
# ;; |
131 |
< |
#esac |
132 |
< |
|
133 |
< |
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;; |
141 |
|
Linux-i*86) |
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=Tree> |
187 |
< |
<lib name=Net> |
188 |
< |
<lib name=Thread> |
189 |
< |
<lib name=MathCore> |
190 |
< |
<lib name=RIO> |
191 |
< |
<lib name=Core> |
192 |
< |
<lib name=Cint> |
193 |
< |
<Client> |
194 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
195 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
196 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
197 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
198 |
< |
</Client> |
199 |
< |
<use name=sockets> |
200 |
< |
<use name=pcre> |
201 |
< |
<use name=zlib> |
202 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
203 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
204 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
200 |
< |
</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> |
209 |
< |
</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> |
220 |
< |
</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 |
227 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
228 |
< |
<Tool name=rootgpad version=%v> |
229 |
< |
<info url="http://root.cern.ch/root/"></info> |
230 |
< |
<lib name=Gpad> |
231 |
< |
<lib name=Graf> |
232 |
< |
<use name=roothistmatrix> |
231 |
< |
</Tool> |
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> |
241 |
< |
</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=Graf3d> |
251 |
< |
<lib name=Postscript> |
252 |
< |
<use name=rootgpad> |
253 |
< |
</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> |
264 |
< |
</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 |
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 |
< |
<lib name=Gui> |
274 |
< |
<use name=qt> |
275 |
< |
<use name=libjpg> |
276 |
< |
<use name=libpng> |
277 |
< |
<use name=rootgpad> |
280 |
< |
</Tool> |
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=GenVector> |
286 |
< |
<lib name=MathMore> |
287 |
< |
<use name=ROOTCore> |
288 |
< |
<use name=gsl> |
292 |
< |
</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=rootgpad> |
302 |
< |
</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=rootgpad> |
312 |
< |
</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"> |
331 |
< |
</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=rootgpad> |
341 |
< |
</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=RootGraphics> |
351 |
< |
</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 |
< |
<use name=rootminuit> |
362 |
< |
</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 |
< |
<use name=ROOTCore> |
371 |
< |
</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 |
376 |
< |
%{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 |
364 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |