1 |
< |
### RPM lcg root 5.27.06b |
1 |
> |
### RPM lcg root 5.28.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 false;; esac) |
8 |
< |
%define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e |
9 |
< |
cho false;; esac) |
8 |
> |
%define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace echo false;; esac) |
9 |
|
|
10 |
< |
Patch0: root-5.27-06-externals |
11 |
< |
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
12 |
< |
Patch2: root-5.22-00a-roofit-silence-static-printout |
13 |
< |
Patch3: root-5.22-00d-linker-gnu-hash-style |
14 |
< |
Patch4: root-5.22-00d-TBranchElement-dropped-data-member |
15 |
< |
Patch5: root-5.27-06-fireworks9 |
16 |
< |
Patch6: root-5.27-06b-gdb-backtrace |
17 |
< |
Patch7: root-5.27-06-tmva-DecisionTreeNode |
18 |
< |
Patch8: root-5.27-06b-r36567 |
19 |
< |
Patch9: root-5.27-06b-r36572 |
20 |
< |
Patch10: root-5.27-06b-r36707 |
21 |
< |
Patch11: root-5.27-06b-r36594 |
23 |
< |
Patch12: root-5.27-06b-tmva-MethodBase-initvar |
24 |
< |
Patch13: root-5.27-06b-r37582-tmva |
25 |
< |
Patch14: root-5.27-06b-r37405 |
26 |
< |
Patch15: root-5.27-06b-r37556 |
27 |
< |
Patch16: root-5.27-06-fireworks10 |
28 |
< |
Patch17: root-5.27-06-TTreeClonerTopLevel |
29 |
< |
Patch18: root-5.27-06b-r37947 |
30 |
< |
Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906 |
10 |
> |
Patch0: root-5.28-00d-externals |
11 |
> |
Patch1: root-5.28-00d-CINT-maxlongline-maxtypedef |
12 |
> |
Patch2: root-5.28-00d-roofit-silence-static-printout |
13 |
> |
Patch3: root-5.28-00d-linker-gnu-hash-style |
14 |
> |
Patch4: root-5.28-00d-TBranchElement-dropped-data-member |
15 |
> |
Patch5: root-5.28-00d-r37582-tmva |
16 |
> |
Patch6: root-5.28-00d-TTreeCache-r37919 |
17 |
> |
Patch7: root-5.28-00d-r38248-r38259-r38264-r38265-r38267 |
18 |
> |
Patch8: root-5.28-00d-fireworks1 |
19 |
> |
Patch9: root-5.28-00d-r39155 |
20 |
> |
Patch10: root-5.28-00d-r39525 |
21 |
> |
Patch11: root-5.28-00d-r39657 |
22 |
|
|
23 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
24 |
|
|
36 |
|
Requires: gfortran-macosx |
37 |
|
%endif |
38 |
|
|
48 |
– |
%if "%online" != "true" |
49 |
– |
%if "%ismac" != "true" |
50 |
– |
Requires: qt |
51 |
– |
%endif |
52 |
– |
%endif |
53 |
– |
|
39 |
|
%prep |
40 |
|
%setup -n root |
41 |
|
%patch0 -p1 |
49 |
|
%patch8 -p1 |
50 |
|
%patch9 -p1 |
51 |
|
%patch10 -p1 |
52 |
< |
%patch11 -p1 |
68 |
< |
%patch12 -p1 |
69 |
< |
%patch13 -p1 |
70 |
< |
%patch14 -p1 |
71 |
< |
%patch15 -p1 |
72 |
< |
%patch16 -p1 |
73 |
< |
%patch17 -p0 |
74 |
< |
%patch18 -p1 |
75 |
< |
%patch19 -p0 |
52 |
> |
%patch11 -p0 |
53 |
|
|
54 |
|
# The following patch can only be applied on SLC5 or later (extra linker |
55 |
|
# options only available with the SLC5 binutils) |
71 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
72 |
|
|
73 |
|
%if "%online" == "true" |
74 |
< |
# Use system qt. Also skip xrootd and odbc for online case: |
74 |
> |
# Also skip xrootd and odbc for online case: |
75 |
|
|
76 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
77 |
< |
--disable-odbc |
101 |
< |
--disable-qt --disable-qtgsi --disable-astiff" |
77 |
> |
--disable-odbc --disable-astiff" |
78 |
|
%else |
79 |
|
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
80 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
105 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
81 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
82 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
108 |
< |
--enable-qtgsi" |
82 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
83 |
|
%endif |
84 |
|
|
85 |
|
CONFIG_ARGS="--enable-table |
105 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
106 |
|
--disable-pgsql |
107 |
|
--disable-mysql |
108 |
< |
--disable-oracle |
109 |
< |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
108 |
> |
--disable-qt --disable-qtgsi |
109 |
> |
--disable-oracle ${EXTRA_CONFIG_ARGS}" |
110 |
|
|
111 |
|
case %cmsos in |
112 |
|
slc*_amd64) |
134 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
135 |
|
esac |
136 |
|
|
137 |
< |
case %cmsplatf in |
164 |
< |
osx*) |
165 |
< |
makeopts= |
166 |
< |
;; |
167 |
< |
*) |
168 |
< |
makeopts="%makeprocesses" |
169 |
< |
;; |
170 |
< |
esac |
137 |
> |
makeopts="%makeprocesses" |
138 |
|
|
139 |
|
make $makeopts |
173 |
– |
make cintdlls |
140 |
|
|
141 |
|
%install |
142 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
158 |
|
# a """ and it thinks is the shebang. |
159 |
|
rm -f %i/tutorials/pyroot/mrt.py |
160 |
|
|
195 |
– |
# SCRAM ToolBox toolfile |
196 |
– |
mkdir -p %i/etc/scram.d |
197 |
– |
# rootcore toolfile |
198 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
199 |
– |
<tool name="rootcore" version="%v"> |
200 |
– |
<info url="http://root.cern.ch/root/"/> |
201 |
– |
<lib name="Tree"/> |
202 |
– |
<lib name="Net"/> |
203 |
– |
<lib name="Thread"/> |
204 |
– |
<lib name="MathCore"/> |
205 |
– |
<lib name="RIO"/> |
206 |
– |
<lib name="Core"/> |
207 |
– |
<lib name="Cint"/> |
208 |
– |
<client> |
209 |
– |
<environment name="ROOTCORE_BASE" default="%i"/> |
210 |
– |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
211 |
– |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
212 |
– |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
213 |
– |
</client> |
214 |
– |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
215 |
– |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
216 |
– |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
217 |
– |
<use name="sockets"/> |
218 |
– |
<use name="pcre"/> |
219 |
– |
<use name="zlib"/> |
220 |
– |
</tool> |
221 |
– |
EOF_TOOLFILE |
222 |
– |
|
223 |
– |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
224 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
225 |
– |
<tool name="root" version="%v"> |
226 |
– |
<info url="http://root.cern.ch/root/"/> |
227 |
– |
<use name="rootphysics"/> |
228 |
– |
</tool> |
229 |
– |
EOF_TOOLFILE |
230 |
– |
|
231 |
– |
# roothistmatrix toolfile |
232 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
233 |
– |
<tool name="roothistmatrix" version="%v"> |
234 |
– |
<info url="http://root.cern.ch/root/"/> |
235 |
– |
<lib name="Hist"/> |
236 |
– |
<lib name="Matrix"/> |
237 |
– |
<use name="ROOTCore"/> |
238 |
– |
</tool> |
239 |
– |
EOF_TOOLFILE |
240 |
– |
|
241 |
– |
# rootgpad toolfile |
242 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
243 |
– |
<tool name="rootgpad" version="%v"> |
244 |
– |
<info url="http://root.cern.ch/root/"/> |
245 |
– |
<lib name="Gpad"/> |
246 |
– |
<lib name="Graf"/> |
247 |
– |
<use name="roothistmatrix"/> |
248 |
– |
</tool> |
249 |
– |
EOF_TOOLFILE |
250 |
– |
|
251 |
– |
# rootphysics toolfile |
252 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
253 |
– |
<tool name="rootphysics" version="%v"> |
254 |
– |
<info url="http://root.cern.ch/root/"/> |
255 |
– |
<lib name="Physics"/> |
256 |
– |
<use name="roothistmatrix"/> |
257 |
– |
</tool> |
258 |
– |
EOF_TOOLFILE |
259 |
– |
|
260 |
– |
# rootgraphics toolfile, identical to old "root" toolfile |
261 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
262 |
– |
<tool name="rootgraphics" version="%v"> |
263 |
– |
<info url="http://root.cern.ch/root/"/> |
264 |
– |
<lib name="TreePlayer"/> |
265 |
– |
<lib name="Graf3d"/> |
266 |
– |
<lib name="Postscript"/> |
267 |
– |
<use name="rootgpad"/> |
268 |
– |
</tool> |
269 |
– |
EOF_TOOLFILE |
270 |
– |
|
271 |
– |
# rootcintex toolfile |
272 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
273 |
– |
<tool name="rootcintex" version="%v"> |
274 |
– |
<info url="http://root.cern.ch/root/"/> |
275 |
– |
<lib name="Cintex"/> |
276 |
– |
<use name="ROOTRflx"/> |
277 |
– |
<use name="ROOTCore"/> |
278 |
– |
</tool> |
279 |
– |
EOF_TOOLFILE |
280 |
– |
|
281 |
– |
# rootinteractive toolfile (GQt/qt lib dependencies |
282 |
– |
# have been moved to rootqt.xml) |
283 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
284 |
– |
<tool name="rootinteractive" version="%v"> |
285 |
– |
<info url="http://root.cern.ch/root/"/> |
286 |
– |
<lib name="Rint"/> |
287 |
– |
<lib name="Gui"/> |
288 |
– |
<use name="libjpg"/> |
289 |
– |
<use name="libpng"/> |
290 |
– |
<use name="rootgpad"/> |
291 |
– |
</tool> |
292 |
– |
EOF_TOOLFILE |
293 |
– |
|
294 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
295 |
– |
<tool name="rootqt" version="%v"> |
296 |
– |
<info url="http://root.cern.ch/root/"/> |
297 |
– |
<lib name="GQt"/> |
298 |
– |
<use name="qt"/> |
299 |
– |
</tool> |
300 |
– |
EOF_TOOLFILE |
301 |
– |
|
302 |
– |
# rootmath toolfile |
303 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
304 |
– |
<tool name="rootmath" version="%v"> |
305 |
– |
<info url="http://root.cern.ch/root/"/> |
306 |
– |
<lib name="GenVector"/> |
307 |
– |
<lib name="MathMore"/> |
308 |
– |
<use name="ROOTCore"/> |
309 |
– |
<use name="gsl"/> |
310 |
– |
</tool> |
311 |
– |
EOF_TOOLFILE |
312 |
– |
|
313 |
– |
# rootminuit toolfile |
314 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
315 |
– |
<tool name="rootminuit" version="%v"> |
316 |
– |
<info url="http://root.cern.ch/root/"/> |
317 |
– |
<lib name="Minuit"/> |
318 |
– |
<use name="rootgpad"/> |
319 |
– |
</tool> |
320 |
– |
EOF_TOOLFILE |
321 |
– |
|
322 |
– |
# rootminuit2 toolfile |
323 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
324 |
– |
<tool name="rootminuit2" version="%v"> |
325 |
– |
<info url="http://root.cern.ch/root/"/> |
326 |
– |
<lib name="Minuit2"/> |
327 |
– |
<use name="rootgpad"/> |
328 |
– |
</tool> |
329 |
– |
EOF_TOOLFILE |
330 |
– |
|
331 |
– |
# rootrflx toolfile |
332 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
333 |
– |
<tool name="rootrflx" version="%v"> |
334 |
– |
<info url="http://root.cern.ch/root/"/> |
335 |
– |
<lib name="Reflex"/> |
336 |
– |
<client> |
337 |
– |
<environment name="ROOTRFLX_BASE" default="%i"/> |
338 |
– |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
339 |
– |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
340 |
– |
</client> |
341 |
– |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
342 |
– |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
343 |
– |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
344 |
– |
<use name="sockets"/> |
345 |
– |
<use name="gccxml"/> |
346 |
– |
</tool> |
347 |
– |
EOF_TOOLFILE |
348 |
– |
|
349 |
– |
# roothtml toolfile |
350 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
351 |
– |
<tool name="roothtml" version="%v"> |
352 |
– |
<info url="http://root.cern.ch/root/"/> |
353 |
– |
<lib name="Html"/> |
354 |
– |
<use name="rootgpad"/> |
355 |
– |
</tool> |
356 |
– |
EOF_TOOLFILE |
357 |
– |
|
358 |
– |
# rootmlp toolfile |
359 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
360 |
– |
<tool name="rootmlp" version="%v"> |
361 |
– |
<info url="http://root.cern.ch/root/"/> |
362 |
– |
<lib name="MLP"/> |
363 |
– |
<use name="RootGraphics"/> |
364 |
– |
</tool> |
365 |
– |
EOF_TOOLFILE |
366 |
– |
|
367 |
– |
# roottmva toolfile |
368 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
369 |
– |
<tool name="roottmva" version="%v"> |
370 |
– |
<info url="http://root.cern.ch/root/"/> |
371 |
– |
<lib name="TMVA"/> |
372 |
– |
<use name="ROOTMLP"/> |
373 |
– |
<use name="rootminuit"/> |
374 |
– |
</tool> |
375 |
– |
EOF_TOOLFILE |
376 |
– |
|
377 |
– |
# rootthread toolfile |
378 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
379 |
– |
<tool name="rootthread" version="%v"> |
380 |
– |
<info url="http://root.cern.ch/root/"/> |
381 |
– |
<use name="ROOTCore"/> |
382 |
– |
</tool> |
383 |
– |
EOF_TOOLFILE |
384 |
– |
|
385 |
– |
%post |
386 |
– |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
161 |
|
|