1 |
< |
### RPM lcg root 5.22.00a |
1 |
> |
### RPM lcg root 5.22.00d |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python |
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 |
11 |
|
Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once |
12 |
|
Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again |
13 |
< |
Patch4: root-5.22-00a-CINTFunctional |
14 |
< |
Patch5: root-5.22-00a-TClass |
15 |
< |
Patch6: root-5.22-00a-fireworks-graf3d-gui |
16 |
< |
Patch7: root-5.22-00a-Reflex-Class |
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 |
13 |
> |
Patch4: root-5.22-00d-fireworks-graf3d-gui |
14 |
> |
Patch5: root-5.22-00a-roofit-silence-static-printout |
15 |
> |
Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up |
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 |
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 |
|
|
26 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
27 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
28 |
|
|
29 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
30 |
|
|
31 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
31 |
> |
%if "%online" != "true" |
32 |
|
Requires: qt openssl mysql libpng zlib libungif xrootd |
33 |
|
%else |
34 |
|
%define skiplibtiff true |
49 |
|
%patch2 -p1 |
50 |
|
%patch3 -p1 |
51 |
|
%patch4 -p1 |
52 |
+ |
|
53 |
|
%patch5 -p1 |
54 |
|
%patch6 -p1 |
55 |
< |
%patch7 -p0 |
56 |
< |
%patch8 -p0 |
55 |
> |
%patch7 -p1 |
56 |
> |
%patch8 -p1 |
57 |
|
%patch9 -p1 |
50 |
– |
%patch10 -p1 |
58 |
|
|
59 |
+ |
# patch10 is compiler version dependent, see below |
60 |
+ |
%patch11 -p1 |
61 |
+ |
%patch12 -p1 |
62 |
+ |
# patch13 is compiler version dependent, see below |
63 |
+ |
|
64 |
+ |
# work around patch issue... |
65 |
+ |
rm graf3d/gl/src/gl2ps.c |
66 |
+ |
%patch14 -p1 |
67 |
+ |
#work around patch issues in patch14(?) |
68 |
+ |
rm graf3d/eve/inc/TEveLegoOverlay.h.orig |
69 |
+ |
rm graf3d/eve/src/TEveLegoOverlay.cxx |
70 |
+ |
rm graf3d/gl/inc/gl2ps.h.orig |
71 |
+ |
rm graf3d/gl/src/gl2ps.c.orig |
72 |
+ |
%patch15 -p1 |
73 |
+ |
|
74 |
+ |
case %gccver in |
75 |
+ |
4.3.*) |
76 |
+ |
%patch13 -p1 |
77 |
+ |
;; |
78 |
+ |
4.4.*) |
79 |
+ |
%patch10 -p1 |
80 |
+ |
;; |
81 |
+ |
esac |
82 |
+ |
|
83 |
|
%build |
84 |
+ |
|
85 |
|
mkdir -p %i |
86 |
|
export ROOTSYS=%_builddir/root |
87 |
|
|
88 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
88 |
> |
%if "%online" == "true" |
89 |
|
# Build without mysql, and use system qt. |
90 |
|
# Also skip xrootd and odbc for online case: |
91 |
|
|
92 |
< |
EXTRA_CONFIG_ARGS=" |
92 |
> |
EXTRA_CONFIG_ARGS="--with-f77=/usr |
93 |
|
--disable-mysql |
94 |
|
--disable-xrootd |
95 |
|
--disable-odbc |
96 |
< |
--enable-qt" |
96 |
> |
--disable-qt --disable-qtgsi" |
97 |
|
%else |
98 |
< |
EXTRA_CONFIG_ARGS=" |
98 |
> |
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
99 |
|
--with-xrootd=$XROOTD_ROOT |
100 |
|
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
101 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
102 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
103 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
103 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
104 |
> |
--enable-qtgsi" |
105 |
|
%endif |
106 |
|
|
107 |
< |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
75 |
< |
--enable-table |
107 |
> |
CONFIG_ARGS="--enable-table |
108 |
|
--disable-builtin-pcre |
109 |
|
--disable-builtin-freetype |
110 |
|
--disable-builtin-zlib |
111 |
|
--with-gccxml=${GCCXML_ROOT} |
112 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
113 |
|
--enable-explicitlink |
82 |
– |
--enable-qtgsi |
114 |
|
--enable-mathmore |
115 |
|
--enable-reflex |
116 |
|
--enable-cintex |
137 |
|
Linux-i*86) |
138 |
|
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
139 |
|
Darwin*) |
140 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
140 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
141 |
|
Linux-ppc64*) |
142 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
143 |
|
esac |
215 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
216 |
|
<Tool name=roothistmatrix version=%v> |
217 |
|
<info url="http://root.cern.ch/root/"></info> |
187 |
– |
<lib name=Gpad> |
188 |
– |
<lib name=Graf> |
218 |
|
<lib name=Hist> |
219 |
|
<lib name=Matrix> |
220 |
|
<use name=ROOTCore> |
221 |
|
</Tool> |
222 |
|
EOF_TOOLFILE |
223 |
|
|
224 |
+ |
# rootgpad toolfile |
225 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
226 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
227 |
+ |
<Tool name=rootgpad version=%v> |
228 |
+ |
<info url="http://root.cern.ch/root/"></info> |
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> |
250 |
|
<lib name=TreePlayer> |
251 |
|
<lib name=Graf3d> |
252 |
|
<lib name=Postscript> |
253 |
< |
<use name=ROOTPhysics> |
253 |
> |
<use name=rootgpad> |
254 |
|
</Tool> |
255 |
|
EOF_TOOLFILE |
256 |
|
|
277 |
|
<use name=qt> |
278 |
|
<use name=libjpg> |
279 |
|
<use name=libpng> |
280 |
< |
<use name=ROOT> |
280 |
> |
<use name=rootgpad> |
281 |
|
</Tool> |
282 |
|
EOF_TOOLFILE |
283 |
|
|
299 |
|
<Tool name=rootminuit version=%v> |
300 |
|
<info url="http://root.cern.ch/root/"></info> |
301 |
|
<lib name=Minuit> |
302 |
< |
<use name=ROOT> |
302 |
> |
<use name=rootgpad> |
303 |
|
</Tool> |
304 |
|
EOF_TOOLFILE |
305 |
|
|
309 |
|
<Tool name=rootminuit2 version=%v> |
310 |
|
<info url="http://root.cern.ch/root/"></info> |
311 |
|
<lib name=Minuit2> |
312 |
< |
<use name=ROOT> |
312 |
> |
<use name=rootgpad> |
313 |
|
</Tool> |
314 |
|
EOF_TOOLFILE |
315 |
|
|
338 |
|
<Tool name=roothtml version=%v> |
339 |
|
<info url="http://root.cern.ch/root/"></info> |
340 |
|
<lib name=Html> |
341 |
< |
<use name=RootHistMatrix> |
341 |
> |
<use name=rootgpad> |
342 |
|
</Tool> |
343 |
|
EOF_TOOLFILE |
344 |
|
|
350 |
|
<lib name=RooFit> |
351 |
|
<lib name=RooFitCore> |
352 |
|
<use name=ROOTMinuit> |
313 |
– |
<use name=ROOTHtml> |
353 |
|
</Tool> |
354 |
|
EOF_TOOLFILE |
355 |
|
|
370 |
|
<info url="http://root.cern.ch/root/"></info> |
371 |
|
<lib name=TMVA> |
372 |
|
<use name=ROOTMLP> |
373 |
+ |
<use name=rootminuit> |
374 |
|
</Tool> |
375 |
|
EOF_TOOLFILE |
376 |
|
|