1 |
< |
### RPM lcg root 5.27.06b |
1 |
> |
### RPM lcg root 5.30.00-rc2 |
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) |
10 |
< |
|
11 |
< |
Patch0: root-5.27-06-externals |
12 |
< |
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
13 |
< |
Patch2: root-5.22-00a-roofit-silence-static-printout |
14 |
< |
Patch3: root-5.22-00d-linker-gnu-hash-style |
15 |
< |
Patch4: root-5.22-00d-TBranchElement-dropped-data-member |
16 |
< |
Patch5: root-5.27-06-fireworks9 |
17 |
< |
Patch6: root-5.27-06b-gdb-backtrace |
18 |
< |
Patch7: root-5.27-06-tmva-DecisionTreeNode |
19 |
< |
Patch8: root-5.27-06b-r36567 |
20 |
< |
Patch9: root-5.27-06b-r36572 |
21 |
< |
Patch10: root-5.27-06b-r36707 |
22 |
< |
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 |
31 |
< |
Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00 |
32 |
< |
Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00 |
33 |
< |
Patch22: root-5.27-06b-histfactory-bits-from-5.28.00 |
34 |
< |
Patch23: root-5.27-06b-r37210 |
35 |
< |
Patch24: root-5.27-06b-r38023 |
4 |
> |
#Source: ftp://root.cern.ch/%n/%{n}_v%{realversion}.source.tar.gz |
5 |
> |
%define svntag %(echo %realversion | tr . -) |
6 |
> |
Source: svn://root.cern.ch/svn/root/tags/v%{svntag}/?scheme=http&strategy=export&module=%n-%{realversion}&output=/%n-%{realversion}.tgz |
7 |
> |
%define online %(case %cmsplatf in (*onl_*_*) echo true;; (*) echo false;; esac) |
8 |
> |
%define ismac %(case %cmsplatf in (osx*) echo true;; (*) echo false;; esac) |
9 |
> |
|
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 |
> |
#Patch12: root-5.28-00d-r39759 |
23 |
> |
Patch13: root-5.28-00d-fix-tsystem-load-macosx |
24 |
|
|
25 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
26 |
|
|
27 |
< |
Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 |
27 |
> |
Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 xz |
28 |
|
|
29 |
|
%if "%ismac" != "true" |
30 |
|
Requires: castor dcap |
38 |
|
Requires: gfortran-macosx |
39 |
|
%endif |
40 |
|
|
53 |
– |
%if "%online" != "true" |
54 |
– |
%if "%ismac" != "true" |
55 |
– |
Requires: qt |
56 |
– |
%endif |
57 |
– |
%endif |
58 |
– |
|
41 |
|
%prep |
42 |
< |
%setup -n root |
42 |
> |
%setup -n root-%realversion |
43 |
|
%patch0 -p1 |
44 |
|
%patch1 -p1 |
45 |
|
%patch2 -p1 |
46 |
|
# patch3 is OS version dependent, see below |
47 |
|
%patch4 -p1 |
48 |
|
%patch5 -p1 |
49 |
< |
%patch6 -p1 |
50 |
< |
%patch7 -p1 |
51 |
< |
%patch8 -p1 |
52 |
< |
%patch9 -p1 |
53 |
< |
%patch10 -p1 |
54 |
< |
%patch11 -p1 |
55 |
< |
%patch12 -p1 |
49 |
> |
# patch6 -p1 |
50 |
> |
# patch7 -p1 |
51 |
> |
# patch8 -p1 |
52 |
> |
# patch9 -p1 |
53 |
> |
# patch10 -p1 TRY AGAIN! |
54 |
> |
# patch11 -p0 |
55 |
> |
# patch12 -p2 |
56 |
|
%patch13 -p1 |
75 |
– |
%patch14 -p1 |
76 |
– |
%patch15 -p1 |
77 |
– |
%patch16 -p1 |
78 |
– |
%patch17 -p0 |
79 |
– |
%patch18 -p1 |
80 |
– |
%patch19 -p0 |
81 |
– |
%patch20 -p1 |
82 |
– |
%patch21 -p1 |
83 |
– |
%patch22 -p1 |
84 |
– |
%patch23 -p1 |
85 |
– |
%patch24 -p1 |
57 |
|
|
58 |
|
# The following patch can only be applied on SLC5 or later (extra linker |
59 |
|
# options only available with the SLC5 binutils) |
75 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
76 |
|
|
77 |
|
%if "%online" == "true" |
78 |
< |
# Use system qt. Also skip xrootd and odbc for online case: |
78 |
> |
# Also skip xrootd and odbc for online case: |
79 |
|
|
80 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
81 |
< |
--disable-odbc |
111 |
< |
--disable-qt --disable-qtgsi --disable-astiff" |
81 |
> |
--disable-odbc --disable-astiff" |
82 |
|
%else |
83 |
|
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
84 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
115 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
85 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
86 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
118 |
< |
--enable-qtgsi" |
86 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
87 |
|
%endif |
88 |
|
|
89 |
|
CONFIG_ARGS="--enable-table |
96 |
|
--enable-mathmore |
97 |
|
--enable-reflex |
98 |
|
--enable-cintex |
99 |
< |
--enable-minuit2 |
99 |
> |
--enable-minuit2 |
100 |
> |
--enable-lzma |
101 |
> |
--with-lzma-incdir=${XZ_ROOT}/include |
102 |
> |
--with-lzma-libdir=${XZ_ROOT}/lib |
103 |
|
--enable-fftw3 |
104 |
|
--with-fftw3-incdir=${FFTW3_ROOT}/include |
105 |
|
--with-fftw3-libdir=${FFTW3_ROOT}/lib |
112 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
113 |
|
--disable-pgsql |
114 |
|
--disable-mysql |
115 |
+ |
--disable-qt --disable-qtgsi |
116 |
|
--disable-oracle ${EXTRA_CONFIG_ARGS}" |
117 |
|
|
118 |
|
case %cmsos in |
144 |
|
makeopts="%makeprocesses" |
145 |
|
|
146 |
|
make $makeopts |
175 |
– |
make cintdlls |
147 |
|
|
148 |
|
%install |
149 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
165 |
|
# a """ and it thinks is the shebang. |
166 |
|
rm -f %i/tutorials/pyroot/mrt.py |
167 |
|
|
197 |
– |
# SCRAM ToolBox toolfile |
198 |
– |
mkdir -p %i/etc/scram.d |
199 |
– |
# rootcore toolfile |
200 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
201 |
– |
<tool name="rootcore" version="%v"> |
202 |
– |
<info url="http://root.cern.ch/root/"/> |
203 |
– |
<lib name="Tree"/> |
204 |
– |
<lib name="Net"/> |
205 |
– |
<lib name="Thread"/> |
206 |
– |
<lib name="MathCore"/> |
207 |
– |
<lib name="RIO"/> |
208 |
– |
<lib name="Core"/> |
209 |
– |
<lib name="Cint"/> |
210 |
– |
<client> |
211 |
– |
<environment name="ROOTCORE_BASE" default="%i"/> |
212 |
– |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
213 |
– |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
214 |
– |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
215 |
– |
</client> |
216 |
– |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
217 |
– |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
218 |
– |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
219 |
– |
<use name="sockets"/> |
220 |
– |
<use name="pcre"/> |
221 |
– |
<use name="zlib"/> |
222 |
– |
</tool> |
223 |
– |
EOF_TOOLFILE |
224 |
– |
|
225 |
– |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
226 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
227 |
– |
<tool name="root" version="%v"> |
228 |
– |
<info url="http://root.cern.ch/root/"/> |
229 |
– |
<use name="rootphysics"/> |
230 |
– |
</tool> |
231 |
– |
EOF_TOOLFILE |
232 |
– |
|
233 |
– |
# roothistmatrix toolfile |
234 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
235 |
– |
<tool name="roothistmatrix" version="%v"> |
236 |
– |
<info url="http://root.cern.ch/root/"/> |
237 |
– |
<lib name="Hist"/> |
238 |
– |
<lib name="Matrix"/> |
239 |
– |
<use name="ROOTCore"/> |
240 |
– |
</tool> |
241 |
– |
EOF_TOOLFILE |
242 |
– |
|
243 |
– |
# rootgpad toolfile |
244 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
245 |
– |
<tool name="rootgpad" version="%v"> |
246 |
– |
<info url="http://root.cern.ch/root/"/> |
247 |
– |
<lib name="Gpad"/> |
248 |
– |
<lib name="Graf"/> |
249 |
– |
<use name="roothistmatrix"/> |
250 |
– |
</tool> |
251 |
– |
EOF_TOOLFILE |
252 |
– |
|
253 |
– |
# rootphysics toolfile |
254 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
255 |
– |
<tool name="rootphysics" version="%v"> |
256 |
– |
<info url="http://root.cern.ch/root/"/> |
257 |
– |
<lib name="Physics"/> |
258 |
– |
<use name="roothistmatrix"/> |
259 |
– |
</tool> |
260 |
– |
EOF_TOOLFILE |
261 |
– |
|
262 |
– |
# rootgraphics toolfile, identical to old "root" toolfile |
263 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
264 |
– |
<tool name="rootgraphics" version="%v"> |
265 |
– |
<info url="http://root.cern.ch/root/"/> |
266 |
– |
<lib name="TreePlayer"/> |
267 |
– |
<lib name="Graf3d"/> |
268 |
– |
<lib name="Postscript"/> |
269 |
– |
<use name="rootgpad"/> |
270 |
– |
</tool> |
271 |
– |
EOF_TOOLFILE |
272 |
– |
|
273 |
– |
# rootcintex toolfile |
274 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
275 |
– |
<tool name="rootcintex" version="%v"> |
276 |
– |
<info url="http://root.cern.ch/root/"/> |
277 |
– |
<lib name="Cintex"/> |
278 |
– |
<use name="ROOTRflx"/> |
279 |
– |
<use name="ROOTCore"/> |
280 |
– |
</tool> |
281 |
– |
EOF_TOOLFILE |
282 |
– |
|
283 |
– |
# rootinteractive toolfile (GQt/qt lib dependencies |
284 |
– |
# have been moved to rootqt.xml) |
285 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
286 |
– |
<tool name="rootinteractive" version="%v"> |
287 |
– |
<info url="http://root.cern.ch/root/"/> |
288 |
– |
<lib name="Rint"/> |
289 |
– |
<lib name="Gui"/> |
290 |
– |
<use name="libjpg"/> |
291 |
– |
<use name="libpng"/> |
292 |
– |
<use name="rootgpad"/> |
293 |
– |
</tool> |
294 |
– |
EOF_TOOLFILE |
295 |
– |
|
296 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
297 |
– |
<tool name="rootqt" version="%v"> |
298 |
– |
<info url="http://root.cern.ch/root/"/> |
299 |
– |
<lib name="GQt"/> |
300 |
– |
<use name="qt"/> |
301 |
– |
</tool> |
302 |
– |
EOF_TOOLFILE |
303 |
– |
|
304 |
– |
# rootmath toolfile |
305 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
306 |
– |
<tool name="rootmath" version="%v"> |
307 |
– |
<info url="http://root.cern.ch/root/"/> |
308 |
– |
<lib name="GenVector"/> |
309 |
– |
<lib name="MathMore"/> |
310 |
– |
<use name="ROOTCore"/> |
311 |
– |
<use name="gsl"/> |
312 |
– |
</tool> |
313 |
– |
EOF_TOOLFILE |
314 |
– |
|
315 |
– |
# rootminuit toolfile |
316 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
317 |
– |
<tool name="rootminuit" version="%v"> |
318 |
– |
<info url="http://root.cern.ch/root/"/> |
319 |
– |
<lib name="Minuit"/> |
320 |
– |
<use name="rootgpad"/> |
321 |
– |
</tool> |
322 |
– |
EOF_TOOLFILE |
323 |
– |
|
324 |
– |
# rootminuit2 toolfile |
325 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
326 |
– |
<tool name="rootminuit2" version="%v"> |
327 |
– |
<info url="http://root.cern.ch/root/"/> |
328 |
– |
<lib name="Minuit2"/> |
329 |
– |
<use name="rootgpad"/> |
330 |
– |
</tool> |
331 |
– |
EOF_TOOLFILE |
332 |
– |
|
333 |
– |
# rootrflx toolfile |
334 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
335 |
– |
<tool name="rootrflx" version="%v"> |
336 |
– |
<info url="http://root.cern.ch/root/"/> |
337 |
– |
<lib name="Reflex"/> |
338 |
– |
<client> |
339 |
– |
<environment name="ROOTRFLX_BASE" default="%i"/> |
340 |
– |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
341 |
– |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
342 |
– |
</client> |
343 |
– |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
344 |
– |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
345 |
– |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
346 |
– |
<use name="sockets"/> |
347 |
– |
<use name="gccxml"/> |
348 |
– |
</tool> |
349 |
– |
EOF_TOOLFILE |
350 |
– |
|
351 |
– |
# roothtml toolfile |
352 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
353 |
– |
<tool name="roothtml" version="%v"> |
354 |
– |
<info url="http://root.cern.ch/root/"/> |
355 |
– |
<lib name="Html"/> |
356 |
– |
<use name="rootgpad"/> |
357 |
– |
</tool> |
358 |
– |
EOF_TOOLFILE |
359 |
– |
|
360 |
– |
# rootmlp toolfile |
361 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
362 |
– |
<tool name="rootmlp" version="%v"> |
363 |
– |
<info url="http://root.cern.ch/root/"/> |
364 |
– |
<lib name="MLP"/> |
365 |
– |
<use name="RootGraphics"/> |
366 |
– |
</tool> |
367 |
– |
EOF_TOOLFILE |
368 |
– |
|
369 |
– |
# roottmva toolfile |
370 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
371 |
– |
<tool name="roottmva" version="%v"> |
372 |
– |
<info url="http://root.cern.ch/root/"/> |
373 |
– |
<lib name="TMVA"/> |
374 |
– |
<use name="ROOTMLP"/> |
375 |
– |
<use name="rootminuit"/> |
376 |
– |
</tool> |
377 |
– |
EOF_TOOLFILE |
378 |
– |
|
379 |
– |
# rootthread toolfile |
380 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
381 |
– |
<tool name="rootthread" version="%v"> |
382 |
– |
<info url="http://root.cern.ch/root/"/> |
383 |
– |
<use name="ROOTCore"/> |
384 |
– |
</tool> |
385 |
– |
EOF_TOOLFILE |
386 |
– |
|
387 |
– |
# rootxml toolfile |
388 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml |
389 |
– |
<tool name="rootxml" version="%v"> |
390 |
– |
<info url="http://root.cern.ch/root/"/> |
391 |
– |
<lib name="XMLParser"/> |
392 |
– |
<use name="ROOTCore"/> |
393 |
– |
</tool> |
394 |
– |
EOF_TOOLFILE |
395 |
– |
|
396 |
– |
# rootfoam toolfile |
397 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml |
398 |
– |
<tool name="rootfoam" version="%v"> |
399 |
– |
<info url="http://root.cern.ch/root/"/> |
400 |
– |
<lib name="Foam"/> |
401 |
– |
<use name="roothistmatrix"/> |
402 |
– |
</tool> |
403 |
– |
EOF_TOOLFILE |
404 |
– |
|
405 |
– |
%post |
406 |
– |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
168 |
|
|