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 |
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 |
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} |
85 |
< |
--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 |
92 |
– |
--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 |
> |
rm ${LIBJPG_ROOT}/lib/libjpeg.dylib |
142 |
> |
rm ${LIBTIFF_ROOT}/lib/libtiff.dylib |
143 |
> |
rm ${LIBPNG_ROOT}/lib/libpng.dylib |
144 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
145 |
|
Linux-ppc64*) |
146 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
147 |
|
esac |
219 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
220 |
|
<Tool name=roothistmatrix version=%v> |
221 |
|
<info url="http://root.cern.ch/root/"></info> |
197 |
– |
<lib name=Gpad> |
198 |
– |
<lib name=Graf> |
222 |
|
<lib name=Hist> |
223 |
|
<lib name=Matrix> |
224 |
|
<use name=ROOTCore> |
225 |
|
</Tool> |
226 |
|
EOF_TOOLFILE |
227 |
|
|
228 |
+ |
# rootgpad toolfile |
229 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
230 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
231 |
+ |
<Tool name=rootgpad version=%v> |
232 |
+ |
<info url="http://root.cern.ch/root/"></info> |
233 |
+ |
<lib name=Gpad> |
234 |
+ |
<lib name=Graf> |
235 |
+ |
<use name=roothistmatrix> |
236 |
+ |
</Tool> |
237 |
+ |
EOF_TOOLFILE |
238 |
+ |
|
239 |
|
# rootphysics toolfile |
240 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
241 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
254 |
|
<lib name=TreePlayer> |
255 |
|
<lib name=Graf3d> |
256 |
|
<lib name=Postscript> |
257 |
< |
<use name=ROOTPhysics> |
257 |
> |
<use name=rootgpad> |
258 |
|
</Tool> |
259 |
|
EOF_TOOLFILE |
260 |
|
|
281 |
|
<use name=qt> |
282 |
|
<use name=libjpg> |
283 |
|
<use name=libpng> |
284 |
< |
<use name=ROOT> |
284 |
> |
<use name=rootgpad> |
285 |
|
</Tool> |
286 |
|
EOF_TOOLFILE |
287 |
|
|
303 |
|
<Tool name=rootminuit version=%v> |
304 |
|
<info url="http://root.cern.ch/root/"></info> |
305 |
|
<lib name=Minuit> |
306 |
< |
<use name=ROOT> |
306 |
> |
<use name=rootgpad> |
307 |
|
</Tool> |
308 |
|
EOF_TOOLFILE |
309 |
|
|
313 |
|
<Tool name=rootminuit2 version=%v> |
314 |
|
<info url="http://root.cern.ch/root/"></info> |
315 |
|
<lib name=Minuit2> |
316 |
< |
<use name=ROOT> |
316 |
> |
<use name=rootgpad> |
317 |
|
</Tool> |
318 |
|
EOF_TOOLFILE |
319 |
|
|
342 |
|
<Tool name=roothtml version=%v> |
343 |
|
<info url="http://root.cern.ch/root/"></info> |
344 |
|
<lib name=Html> |
345 |
< |
<use name=RootHistMatrix> |
345 |
> |
<use name=rootgpad> |
346 |
|
</Tool> |
347 |
|
EOF_TOOLFILE |
348 |
|
|
354 |
|
<lib name=RooFit> |
355 |
|
<lib name=RooFitCore> |
356 |
|
<use name=ROOTMinuit> |
323 |
– |
<use name=ROOTHtml> |
357 |
|
</Tool> |
358 |
|
EOF_TOOLFILE |
359 |
|
|
374 |
|
<info url="http://root.cern.ch/root/"></info> |
375 |
|
<lib name=TMVA> |
376 |
|
<use name=ROOTMLP> |
377 |
+ |
<use name=rootminuit> |
378 |
|
</Tool> |
379 |
|
EOF_TOOLFILE |
380 |
|
|