1 |
< |
### RPM lcg root 5.14.00g-CMS11 |
1 |
> |
### RPM lcg root 5.22.00a |
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 |
< |
|
7 |
< |
Patch: root-CINT-maxlongline |
8 |
< |
Patch1: root_libpng |
9 |
< |
Patch2: root_PositionVector |
10 |
< |
Patch3: root-fastmerge-ttree |
11 |
< |
Patch4: root_TXMLSetup |
12 |
< |
Patch5: root-Cintex |
13 |
< |
Patch6: root_Reflex_Cintex |
14 |
< |
Patch7: root_CallFunc |
15 |
< |
Patch8: root-proofd |
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 |
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 |
> |
Patch22: root-5.22-00a-gcc43-array-bounds-dictionary-workaround |
32 |
> |
Patch23: root-5.22-00a-CINT-dict-init-speedup |
33 |
> |
Patch24: root-5.22-00a-fireworks4 |
34 |
|
|
35 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
36 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
19 |
– |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
37 |
|
|
38 |
< |
%if "%cpu" != "amd64" |
38 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
39 |
> |
|
40 |
> |
%if "%online" != "true" |
41 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
42 |
> |
%else |
43 |
> |
%define skiplibtiff true |
44 |
> |
%endif |
45 |
> |
|
46 |
> |
%if "%cpu" == "amd64" |
47 |
> |
%define skiplibtiff true |
48 |
> |
%endif |
49 |
> |
|
50 |
> |
%if "%skiplibtiff" != "true" |
51 |
|
Requires: libtiff |
52 |
|
%endif |
53 |
|
|
54 |
|
%prep |
55 |
|
%setup -n root |
56 |
< |
%patch -p0 |
57 |
< |
%patch1 -p2 |
58 |
< |
%patch2 -p2 |
56 |
> |
%patch0 -p1 |
57 |
> |
%patch1 -p1 |
58 |
> |
%patch2 -p1 |
59 |
|
%patch3 -p1 |
60 |
< |
%patch4 -p0 |
60 |
> |
%patch4 -p1 |
61 |
|
%patch5 -p1 |
62 |
< |
%patch6 -p0 |
62 |
> |
%patch6 -p1 |
63 |
|
%patch7 -p0 |
64 |
< |
%patch8 -p1 |
65 |
< |
|
64 |
> |
%patch8 -p0 |
65 |
> |
%patch9 -p1 |
66 |
> |
%patch10 -p1 |
67 |
> |
%patch11 -p1 |
68 |
> |
%patch12 -p1 |
69 |
> |
%patch13 -p1 |
70 |
> |
%patch14 -p0 |
71 |
> |
%patch15 -p0 |
72 |
> |
# patch16 is compiler version dependent, see below |
73 |
> |
%patch17 -p1 |
74 |
> |
%patch18 -p1 |
75 |
> |
%patch19 -p0 |
76 |
> |
%patch20 -p0 |
77 |
> |
%patch21 -p0 |
78 |
> |
# work around patch issue... |
79 |
> |
rm graf3d/gl/src/gl2ps.c |
80 |
> |
# patch22 is compiler version dependent, see below |
81 |
> |
# patch23 is (for now) only applied for gcc4.3, see below |
82 |
> |
# doesn't work at the moment %patch24 -p1 |
83 |
> |
|
84 |
> |
case %gccver in |
85 |
> |
4.3.*) |
86 |
> |
%patch22 -p1 |
87 |
> |
%patch23 -p1 |
88 |
> |
;; |
89 |
> |
4.4.*) |
90 |
> |
%patch16 -p1 |
91 |
> |
;; |
92 |
> |
esac |
93 |
> |
|
94 |
|
%build |
95 |
+ |
|
96 |
|
mkdir -p %i |
97 |
|
export ROOTSYS=%_builddir/root |
98 |
+ |
|
99 |
+ |
%if "%online" == "true" |
100 |
+ |
# Build without mysql, and use system qt. |
101 |
+ |
# Also skip xrootd and odbc for online case: |
102 |
+ |
|
103 |
+ |
EXTRA_CONFIG_ARGS="--with-f77=/usr |
104 |
+ |
--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 |
111 |
+ |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
112 |
+ |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
113 |
+ |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
114 |
+ |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
115 |
+ |
--enable-qtgsi" |
116 |
+ |
%endif |
117 |
+ |
|
118 |
|
CONFIG_ARGS="--enable-table |
119 |
|
--disable-builtin-pcre |
120 |
|
--disable-builtin-freetype |
121 |
|
--disable-builtin-zlib |
122 |
|
--with-gccxml=${GCCXML_ROOT} |
123 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
46 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
124 |
|
--enable-explicitlink |
48 |
– |
--enable-qtgsi |
49 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
50 |
– |
--enable-mathcore |
125 |
|
--enable-mathmore |
126 |
|
--enable-reflex |
127 |
|
--enable-cintex |
129 |
|
--enable-roofit |
130 |
|
--disable-ldap |
131 |
|
--disable-krb5 |
58 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
59 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
132 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
133 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
134 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
135 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
64 |
– |
--with-xrootd=$XROOTD_ROOT |
136 |
|
--disable-pgsql |
137 |
< |
--disable-xml" |
137 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
138 |
> |
|
139 |
> |
#case %gccver in |
140 |
> |
# 4.*) |
141 |
> |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
142 |
> |
# ;; |
143 |
> |
#esac |
144 |
|
|
145 |
|
case $(uname)-$(uname -p) in |
146 |
|
Linux-x86_64) |
147 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
147 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
148 |
|
Linux-i*86) |
149 |
< |
./configure linux $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
149 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
150 |
|
Darwin*) |
151 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
151 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
152 |
|
Linux-ppc64*) |
153 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
154 |
|
esac |
155 |
|
|
156 |
< |
make %makeprocesses |
156 |
> |
case %cmsplatf in |
157 |
> |
osx*) |
158 |
> |
makeopts= |
159 |
> |
;; |
160 |
> |
*) |
161 |
> |
makeopts="%makeprocesses" |
162 |
> |
;; |
163 |
> |
esac |
164 |
> |
|
165 |
> |
make $makeopts |
166 |
|
make cintdlls |
167 |
+ |
|
168 |
|
%install |
169 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
170 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
180 |
|
export ROOTSYS=%i |
181 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
182 |
|
mkdir -p $ROOTSYS/lib/python |
183 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
183 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
184 |
|
# |
185 |
|
|
186 |
|
# SCRAM ToolBox toolfile |
190 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
191 |
|
<Tool name=rootcore version=%v> |
192 |
|
<info url="http://root.cern.ch/root/"></info> |
106 |
– |
<lib name=Cint> |
107 |
– |
<lib name=Core> |
193 |
|
<lib name=Tree> |
194 |
+ |
<lib name=Net> |
195 |
+ |
<lib name=Thread> |
196 |
+ |
<lib name=MathCore> |
197 |
+ |
<lib name=RIO> |
198 |
+ |
<lib name=Core> |
199 |
+ |
<lib name=Cint> |
200 |
|
<Client> |
201 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
202 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
212 |
|
</Tool> |
213 |
|
EOF_TOOLFILE |
214 |
|
|
215 |
< |
# root toolfile |
215 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
216 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
217 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
218 |
|
<Tool name=root version=%v> |
219 |
|
<info url="http://root.cern.ch/root/"></info> |
220 |
< |
<lib name=TreePlayer> |
221 |
< |
<lib name=Gpad> |
222 |
< |
<lib name=Graf3d> |
223 |
< |
<lib name=Graf> |
220 |
> |
<use name=rootphysics> |
221 |
> |
</Tool> |
222 |
> |
EOF_TOOLFILE |
223 |
> |
|
224 |
> |
# roothistmatrix toolfile |
225 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
226 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
227 |
> |
<Tool name=roothistmatrix version=%v> |
228 |
> |
<info url="http://root.cern.ch/root/"></info> |
229 |
|
<lib name=Hist> |
230 |
|
<lib name=Matrix> |
231 |
+ |
<use name=ROOTCore> |
232 |
+ |
</Tool> |
233 |
+ |
EOF_TOOLFILE |
234 |
+ |
|
235 |
+ |
# rootgpad toolfile |
236 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
237 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
238 |
+ |
<Tool name=rootgpad version=%v> |
239 |
+ |
<info url="http://root.cern.ch/root/"></info> |
240 |
+ |
<lib name=Gpad> |
241 |
+ |
<lib name=Graf> |
242 |
+ |
<use name=roothistmatrix> |
243 |
+ |
</Tool> |
244 |
+ |
EOF_TOOLFILE |
245 |
+ |
|
246 |
+ |
# rootphysics toolfile |
247 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
248 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
249 |
+ |
<Tool name=rootphysics version=%v> |
250 |
+ |
<info url="http://root.cern.ch/root/"></info> |
251 |
|
<lib name=Physics> |
252 |
+ |
<use name=roothistmatrix> |
253 |
+ |
</Tool> |
254 |
+ |
EOF_TOOLFILE |
255 |
+ |
|
256 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
257 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
258 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
259 |
+ |
<Tool name=rootgraphics version=%v> |
260 |
+ |
<info url="http://root.cern.ch/root/"></info> |
261 |
+ |
<lib name=TreePlayer> |
262 |
+ |
<lib name=Graf3d> |
263 |
|
<lib name=Postscript> |
264 |
< |
<use name=ROOTCore> |
264 |
> |
<use name=rootgpad> |
265 |
|
</Tool> |
266 |
|
EOF_TOOLFILE |
267 |
|
|
276 |
|
</Tool> |
277 |
|
EOF_TOOLFILE |
278 |
|
|
279 |
< |
# rootinteractive toolfile |
279 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
280 |
> |
# have been removed for the moment) |
281 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
282 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
283 |
|
<Tool name=rootinteractive version=%v> |
284 |
|
<info url="http://root.cern.ch/root/"></info> |
285 |
|
<lib name=Rint> |
286 |
|
<lib name=GQt> |
287 |
+ |
<lib name=Gui> |
288 |
|
<use name=qt> |
289 |
|
<use name=libjpg> |
290 |
|
<use name=libpng> |
291 |
< |
<use name=ROOT> |
291 |
> |
<use name=rootgpad> |
292 |
|
</Tool> |
293 |
|
EOF_TOOLFILE |
294 |
|
|
297 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
298 |
|
<Tool name=rootmath version=%v> |
299 |
|
<info url="http://root.cern.ch/root/"></info> |
300 |
< |
<lib name=MathCore> |
300 |
> |
<lib name=GenVector> |
301 |
|
<lib name=MathMore> |
302 |
|
<use name=ROOTCore> |
303 |
|
<use name=gsl> |
310 |
|
<Tool name=rootminuit version=%v> |
311 |
|
<info url="http://root.cern.ch/root/"></info> |
312 |
|
<lib name=Minuit> |
313 |
< |
<use name=ROOT> |
313 |
> |
<use name=rootgpad> |
314 |
|
</Tool> |
315 |
|
EOF_TOOLFILE |
316 |
|
|
320 |
|
<Tool name=rootminuit2 version=%v> |
321 |
|
<info url="http://root.cern.ch/root/"></info> |
322 |
|
<lib name=Minuit2> |
323 |
< |
<use name=ROOT> |
323 |
> |
<use name=rootgpad> |
324 |
|
</Tool> |
325 |
|
EOF_TOOLFILE |
326 |
|
|
349 |
|
<Tool name=roothtml version=%v> |
350 |
|
<info url="http://root.cern.ch/root/"></info> |
351 |
|
<lib name=Html> |
352 |
< |
<use name=ROOT> |
352 |
> |
<use name=rootgpad> |
353 |
|
</Tool> |
354 |
|
EOF_TOOLFILE |
355 |
|
|
359 |
|
<Tool name=rootroofit version=%v> |
360 |
|
<info url="http://root.cern.ch/root/"></info> |
361 |
|
<lib name=RooFit> |
362 |
+ |
<lib name=RooFitCore> |
363 |
|
<use name=ROOTMinuit> |
234 |
– |
<use name=ROOTHtml> |
364 |
|
</Tool> |
365 |
|
EOF_TOOLFILE |
366 |
|
|
370 |
|
<Tool name=rootmlp version=%v> |
371 |
|
<info url="http://root.cern.ch/root/"></info> |
372 |
|
<lib name=MLP> |
373 |
< |
<use name=ROOT> |
373 |
> |
<use name=RootGraphics> |
374 |
|
</Tool> |
375 |
|
EOF_TOOLFILE |
376 |
|
|
381 |
|
<info url="http://root.cern.ch/root/"></info> |
382 |
|
<lib name=TMVA> |
383 |
|
<use name=ROOTMLP> |
384 |
+ |
<use name=rootminuit> |
385 |
|
</Tool> |
386 |
|
EOF_TOOLFILE |
387 |
|
|
390 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
391 |
|
<Tool name=rootthread version=%v> |
392 |
|
<info url="http://root.cern.ch/root/"></info> |
263 |
– |
<lib name=Thread> |
393 |
|
<use name=ROOTCore> |
394 |
|
</Tool> |
395 |
|
EOF_TOOLFILE |
397 |
|
%post |
398 |
|
%{relocateConfig}etc/scram.d/root |
399 |
|
%{relocateConfig}etc/scram.d/rootcore |
400 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
401 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
402 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
403 |
|
%{relocateConfig}etc/scram.d/rootcintex |
404 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
405 |
|
%{relocateConfig}etc/scram.d/rootmath |