1 |
|
### RPM lcg root 5.22.00d |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
## INITENV SET ROOTSYS %i |
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 |
|
|
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-00d-fireworks-graf3d-gui |
14 |
< |
Patch5: root-5.22-00a-roofit-silence-static-printout |
9 |
> |
Patch0: root-5.18-00-libpng |
10 |
> |
Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef |
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-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 |
17 |
> |
Patch8: root-5.22-00d-makelib-ldl |
18 |
|
Patch9: root-5.22-00a-fireworks1 |
19 |
|
Patch10: root-5.22-00a-gcc44 |
20 |
|
Patch11: root-5.22-00a-fireworks2 |
25 |
|
Patch16: root-5.22-00d-genreflex_python26_popen3 |
26 |
|
Patch17: root-5.22-00d-fireworks6 |
27 |
|
Patch18: root-5.22-00d-linker-gnu-hash-style |
28 |
< |
Patch19: root-5.22-00d-TFile-version3-Init |
28 |
> |
Patch19: root-5.22-00d-TFile-version3-Init |
29 |
> |
Patch20: root-5.22-00d-cint-namespace |
30 |
> |
Patch21: root-5.22-00d-fireworks7 |
31 |
> |
Patch22: root-5.22-00d-TMath-Vavilov |
32 |
> |
Patch23: root-5.22-00d-TBranchElement-dropped-data-member |
33 |
> |
Patch24: root-5.22-00d-fireworks8 |
34 |
> |
Patch25: root-5.22-00d-fix-python-shebang |
35 |
> |
Patch26: root-5.22-00d-RootsysOnMac |
36 |
> |
Patch27: root-5.22-00d-TString-Clear |
37 |
|
|
38 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
39 |
|
|
40 |
< |
Requires: gccxml gsl castor libjpg dcap pcre python |
40 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python fftw3 |
41 |
|
|
42 |
|
%if "%online" != "true" |
43 |
|
Requires: qt openssl libpng zlib libungif xrootd |
84 |
|
%patch16 -p1 |
85 |
|
%patch17 -p1 |
86 |
|
%patch19 -p1 |
87 |
+ |
%patch20 -p1 |
88 |
+ |
%patch21 -p1 |
89 |
+ |
%patch22 -p1 |
90 |
+ |
%patch23 -p1 |
91 |
+ |
%patch24 -p1 |
92 |
+ |
%patch25 -p1 |
93 |
+ |
%patch26 -p1 |
94 |
+ |
%patch27 -p1 |
95 |
|
|
96 |
|
case %gccver in |
97 |
|
4.3.*) |
143 |
|
--enable-reflex |
144 |
|
--enable-cintex |
145 |
|
--enable-minuit2 |
146 |
+ |
--enable-fftw3 |
147 |
+ |
--with-fftw3-incdir=${FFTW3_ROOT}/include |
148 |
+ |
--with-fftw3-libdir=${FFTW3_ROOT}/lib |
149 |
|
--disable-ldap |
150 |
|
--disable-krb5 |
151 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
162 |
|
Linux-i*86) |
163 |
|
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
164 |
|
Darwin*) |
165 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
165 |
> |
case %cmsplatf in |
166 |
> |
*_ia32_* ) |
167 |
> |
comparch=i386 ;; |
168 |
> |
*_amd64_* ) |
169 |
> |
comparch=x86_64 ;; |
170 |
> |
* ) |
171 |
> |
comparch=ppc ;; |
172 |
> |
esac |
173 |
> |
export CC="gcc -arch $comparch" CXX="g++ -arch $comparch" |
174 |
> |
./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
175 |
|
Linux-ppc64*) |
176 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
177 |
|
esac |
292 |
|
</tool> |
293 |
|
EOF_TOOLFILE |
294 |
|
|
295 |
< |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
296 |
< |
# have been removed for the moment) |
295 |
> |
# rootinteractive toolfile (GQt/qt lib dependencies |
296 |
> |
# have been moved to rootqt.xml) |
297 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
298 |
|
<tool name="rootinteractive" version="%v"> |
299 |
|
<info url="http://root.cern.ch/root/"/> |
300 |
|
<lib name="Rint"/> |
273 |
– |
<lib name="GQt"/> |
301 |
|
<lib name="Gui"/> |
275 |
– |
<use name="qt"/> |
302 |
|
<use name="libjpg"/> |
303 |
|
<use name="libpng"/> |
304 |
|
<use name="rootgpad"/> |
305 |
|
</tool> |
306 |
|
EOF_TOOLFILE |
307 |
|
|
308 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
309 |
+ |
<tool name="rootqt" version="%v"> |
310 |
+ |
<info url="http://root.cern.ch/root/"/> |
311 |
+ |
<lib name="GQt"/> |
312 |
+ |
<use name="qt"/> |
313 |
+ |
</tool> |
314 |
+ |
EOF_TOOLFILE |
315 |
+ |
|
316 |
|
# rootmath toolfile |
317 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
318 |
|
<tool name="rootmath" version="%v"> |