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) |
8 |
|
|
9 |
|
Patch0: root-5.18-00-libpng |
10 |
|
Patch1: root-5.21-04-CINT-maxlongline |
17 |
|
Patch8: root-5.22-00a-Cintex |
18 |
|
Patch9: root-5.22-00a-roofit-silence-static-printout |
19 |
|
Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up |
20 |
+ |
Patch11: root-5.22-00a-th1 |
21 |
+ |
Patch12: root-5.22-00a-smatrix |
22 |
+ |
Patch13: root-5.22-00a-fireworks1 |
23 |
+ |
Patch14: root-5.22-00a-Reflex-gendict_selclass |
24 |
+ |
Patch15: root-5.22-00a-MatrixInversion |
25 |
+ |
Patch16: root-5.22-00a-gcc44 |
26 |
+ |
Patch17: root-5.22-00a-fireworks2 |
27 |
+ |
Patch18: root-5.22-00a-fireworks3 |
28 |
+ |
Patch19: root-5.22-00a-TBranchElement |
29 |
+ |
Patch20: root-5.22-00a-tmplt |
30 |
+ |
Patch21: root-5.22-00a-TBranchElement_TStreamerInfo |
31 |
|
|
32 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
33 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
34 |
|
|
35 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
36 |
|
|
37 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
37 |
> |
%if "%online" != "true" |
38 |
|
Requires: qt openssl mysql libpng zlib libungif xrootd |
39 |
|
%else |
40 |
|
%define skiplibtiff true |
61 |
|
%patch8 -p0 |
62 |
|
%patch9 -p1 |
63 |
|
%patch10 -p1 |
64 |
< |
|
64 |
> |
%patch11 -p1 |
65 |
> |
%patch12 -p1 |
66 |
> |
%patch13 -p1 |
67 |
> |
%patch14 -p0 |
68 |
> |
%patch15 -p0 |
69 |
> |
%patch16 -p1 |
70 |
> |
%patch17 -p1 |
71 |
> |
%patch18 -p1 |
72 |
> |
%patch19 -p0 |
73 |
> |
%patch20 -p0 |
74 |
> |
%patch21 -p0 |
75 |
> |
# work around patch issue... |
76 |
> |
rm graf3d/gl/src/gl2ps.c |
77 |
> |
|
78 |
> |
case %gccver in |
79 |
> |
4.4) |
80 |
> |
%patch16 -p1 |
81 |
> |
;; |
82 |
> |
esac |
83 |
> |
|
84 |
|
%build |
85 |
+ |
|
86 |
|
mkdir -p %i |
87 |
|
export ROOTSYS=%_builddir/root |
88 |
|
|
89 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
89 |
> |
%if "%online" == "true" |
90 |
|
# Build without mysql, and use system qt. |
91 |
|
# Also skip xrootd and odbc for online case: |
92 |
|
|
93 |
< |
EXTRA_CONFIG_ARGS=" |
93 |
> |
EXTRA_CONFIG_ARGS="--with-f77=/usr |
94 |
|
--disable-mysql |
95 |
|
--disable-xrootd |
96 |
|
--disable-odbc |
97 |
< |
--enable-qt" |
97 |
> |
--disable-qt --disable-qtgsi" |
98 |
|
%else |
99 |
< |
EXTRA_CONFIG_ARGS=" |
99 |
> |
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
100 |
|
--with-xrootd=$XROOTD_ROOT |
101 |
|
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
102 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
103 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
104 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
104 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
105 |
> |
--enable-qtgsi" |
106 |
|
%endif |
107 |
|
|
108 |
< |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
75 |
< |
--enable-table |
108 |
> |
CONFIG_ARGS="--enable-table |
109 |
|
--disable-builtin-pcre |
110 |
|
--disable-builtin-freetype |
111 |
|
--disable-builtin-zlib |
112 |
|
--with-gccxml=${GCCXML_ROOT} |
113 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
114 |
|
--enable-explicitlink |
82 |
– |
--enable-qtgsi |
115 |
|
--enable-mathmore |
116 |
|
--enable-reflex |
117 |
|
--enable-cintex |
138 |
|
Linux-i*86) |
139 |
|
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
140 |
|
Darwin*) |
141 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
141 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
142 |
|
Linux-ppc64*) |
143 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
144 |
|
esac |
216 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
217 |
|
<Tool name=roothistmatrix version=%v> |
218 |
|
<info url="http://root.cern.ch/root/"></info> |
187 |
– |
<lib name=Gpad> |
188 |
– |
<lib name=Graf> |
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> |
233 |
+ |
</Tool> |
234 |
+ |
EOF_TOOLFILE |
235 |
+ |
|
236 |
|
# rootphysics toolfile |
237 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
238 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
251 |
|
<lib name=TreePlayer> |
252 |
|
<lib name=Graf3d> |
253 |
|
<lib name=Postscript> |
254 |
< |
<use name=ROOTPhysics> |
254 |
> |
<use name=rootgpad> |
255 |
|
</Tool> |
256 |
|
EOF_TOOLFILE |
257 |
|
|
278 |
|
<use name=qt> |
279 |
|
<use name=libjpg> |
280 |
|
<use name=libpng> |
281 |
< |
<use name=ROOT> |
281 |
> |
<use name=rootgpad> |
282 |
|
</Tool> |
283 |
|
EOF_TOOLFILE |
284 |
|
|
300 |
|
<Tool name=rootminuit version=%v> |
301 |
|
<info url="http://root.cern.ch/root/"></info> |
302 |
|
<lib name=Minuit> |
303 |
< |
<use name=ROOT> |
303 |
> |
<use name=rootgpad> |
304 |
|
</Tool> |
305 |
|
EOF_TOOLFILE |
306 |
|
|
310 |
|
<Tool name=rootminuit2 version=%v> |
311 |
|
<info url="http://root.cern.ch/root/"></info> |
312 |
|
<lib name=Minuit2> |
313 |
< |
<use name=ROOT> |
313 |
> |
<use name=rootgpad> |
314 |
|
</Tool> |
315 |
|
EOF_TOOLFILE |
316 |
|
|
339 |
|
<Tool name=roothtml version=%v> |
340 |
|
<info url="http://root.cern.ch/root/"></info> |
341 |
|
<lib name=Html> |
342 |
< |
<use name=RootHistMatrix> |
342 |
> |
<use name=rootgpad> |
343 |
|
</Tool> |
344 |
|
EOF_TOOLFILE |
345 |
|
|
351 |
|
<lib name=RooFit> |
352 |
|
<lib name=RooFitCore> |
353 |
|
<use name=ROOTMinuit> |
313 |
– |
<use name=ROOTHtml> |
354 |
|
</Tool> |
355 |
|
EOF_TOOLFILE |
356 |
|
|
371 |
|
<info url="http://root.cern.ch/root/"></info> |
372 |
|
<lib name=TMVA> |
373 |
|
<use name=ROOTMLP> |
374 |
+ |
<use name=rootminuit> |
375 |
|
</Tool> |
376 |
|
EOF_TOOLFILE |
377 |
|
|