1 |
< |
### RPM lcg root 5.26.00b |
1 |
> |
### RPM lcg root 5.27.06b |
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 |
+ |
%define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e |
9 |
+ |
cho false;; esac) |
10 |
|
|
11 |
< |
Patch0: root-5.18-00-libpng |
12 |
< |
Patch1: root-5.22-00-TMVA-shut-the-hell-up-for-once |
13 |
< |
Patch2: root-5.22-00a-roofit-silence-static-printout |
14 |
< |
Patch3: root-5.22-00d-linker-gnu-hash-style |
15 |
< |
Patch4: root-5.26-00a-CINT-maxlongline |
16 |
< |
Patch5: root-5.26-00a-silence-TMVA |
17 |
< |
Patch6: root-5.22-00d-TMath-Vavilov |
18 |
< |
Patch7: root-5.22-00d-TBranchElement-dropped-data-member |
19 |
< |
Patch8: root-5.26-00b-genreflex-version-wildcard |
20 |
< |
Patch9: root-5.26.00b-fireworks1 |
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 |
|
|
29 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
30 |
|
|
31 |
< |
Requires: gccxml gsl castor libjpg dcap pcre python |
31 |
> |
Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 |
32 |
> |
|
33 |
> |
%if "%ismac" != "true" |
34 |
> |
Requires: castor dcap |
35 |
> |
%endif |
36 |
|
|
37 |
|
%if "%online" != "true" |
38 |
< |
Requires: qt openssl libpng zlib libungif xrootd |
26 |
< |
%else |
27 |
< |
%define skiplibtiff true |
38 |
> |
Requires: openssl zlib xrootd |
39 |
|
%endif |
40 |
|
|
41 |
< |
%if "%cpu" == "amd64" |
42 |
< |
%define skiplibtiff true |
41 |
> |
%if "%ismac" == "true" |
42 |
> |
Requires: gfortran-macosx |
43 |
|
%endif |
44 |
|
|
45 |
< |
%if "%skiplibtiff" != "true" |
46 |
< |
Requires: libtiff |
45 |
> |
%if "%online" != "true" |
46 |
> |
%if "%ismac" != "true" |
47 |
> |
Requires: qt |
48 |
> |
%endif |
49 |
|
%endif |
50 |
|
|
51 |
|
%prep |
53 |
|
%patch0 -p1 |
54 |
|
%patch1 -p1 |
55 |
|
%patch2 -p1 |
56 |
< |
%patch3 -p1 |
56 |
> |
# patch3 is OS version dependent, see below |
57 |
|
%patch4 -p1 |
58 |
|
%patch5 -p1 |
59 |
|
%patch6 -p1 |
60 |
|
%patch7 -p1 |
61 |
|
%patch8 -p1 |
62 |
|
%patch9 -p1 |
63 |
+ |
%patch10 -p1 |
64 |
+ |
%patch11 -p1 |
65 |
+ |
%patch12 -p1 |
66 |
+ |
%patch13 -p1 |
67 |
+ |
%patch14 -p1 |
68 |
+ |
%patch15 -p1 |
69 |
+ |
%patch16 -p1 |
70 |
+ |
|
71 |
+ |
# The following patch can only be applied on SLC5 or later (extra linker |
72 |
+ |
# options only available with the SLC5 binutils) |
73 |
+ |
case %cmsplatf in |
74 |
+ |
slc5_* | slc5onl_* ) |
75 |
+ |
%patch3 -p1 |
76 |
+ |
;; |
77 |
+ |
esac |
78 |
+ |
|
79 |
+ |
# Delete these (irrelevant) files as the fits appear to confuse rpm on OSX |
80 |
+ |
# (It tries to run install_name_tool on them.) |
81 |
+ |
rm -fR tutorials/fitsio |
82 |
|
|
83 |
|
%build |
84 |
|
|
85 |
|
mkdir -p %i |
86 |
+ |
export LIBJPG_ROOT |
87 |
|
export ROOTSYS=%_builddir/root |
88 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
89 |
|
|
91 |
|
# Use system qt. Also skip xrootd and odbc for online case: |
92 |
|
|
93 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
61 |
– |
--disable-xrootd |
94 |
|
--disable-odbc |
95 |
< |
--disable-qt --disable-qtgsi" |
95 |
> |
--disable-qt --disable-qtgsi --disable-astiff" |
96 |
|
%else |
97 |
+ |
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
98 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
66 |
– |
--with-xrootd=$XROOTD_ROOT |
99 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
100 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
101 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
113 |
|
--enable-reflex |
114 |
|
--enable-cintex |
115 |
|
--enable-minuit2 |
116 |
+ |
--enable-fftw3 |
117 |
+ |
--with-fftw3-incdir=${FFTW3_ROOT}/include |
118 |
+ |
--with-fftw3-libdir=${FFTW3_ROOT}/lib |
119 |
|
--disable-ldap |
120 |
|
--disable-krb5 |
121 |
+ |
--with-xrootd=${XROOTD_ROOT} |
122 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
123 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
124 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
125 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
126 |
|
--disable-pgsql |
127 |
|
--disable-mysql |
128 |
+ |
--disable-oracle |
129 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
130 |
|
|
131 |
< |
case $(uname)-$(uname -m) in |
132 |
< |
Linux-x86_64) |
133 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
134 |
< |
Linux-i*86) |
135 |
< |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
136 |
< |
Darwin*) |
137 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
138 |
< |
Linux-ppc64*) |
131 |
> |
case %cmsos in |
132 |
> |
slc*_amd64) |
133 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
134 |
> |
slc*_ia32) |
135 |
> |
./configure linux $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
136 |
> |
osx*) |
137 |
> |
case %cmsplatf in |
138 |
> |
*_ia32_* ) |
139 |
> |
comparch=i386 |
140 |
> |
macconfig=macosx |
141 |
> |
;; |
142 |
> |
*_amd64_* ) |
143 |
> |
comparch=x86_64 |
144 |
> |
macconfig=macosx64 |
145 |
> |
;; |
146 |
> |
* ) |
147 |
> |
comparch=ppc |
148 |
> |
macconfig=macosx |
149 |
> |
;; |
150 |
> |
esac |
151 |
> |
export CC=`which gcc` CXX=`which g++` |
152 |
> |
./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
153 |
> |
slc*_ppc64*) |
154 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
155 |
|
esac |
156 |
|
|
162 |
|
makeopts="%makeprocesses" |
163 |
|
;; |
164 |
|
esac |
165 |
< |
|
166 |
< |
make $makeopts |
165 |
> |
|
166 |
> |
make $makeopts |
167 |
|
make cintdlls |
168 |
|
|
169 |
|
%install |
182 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
183 |
|
mkdir -p $ROOTSYS/lib/python |
184 |
|
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
185 |
< |
# |
185 |
> |
# This file confuses rpm's find-requires because it starts with |
186 |
> |
# a """ and it thinks is the shebang. |
187 |
> |
rm -f %i/tutorials/pyroot/mrt.py |
188 |
|
|
189 |
|
# SCRAM ToolBox toolfile |
190 |
|
mkdir -p %i/etc/scram.d |
224 |
|
|
225 |
|
# roothistmatrix toolfile |
226 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
227 |
< |
<tool name="roothistmatrix" version="%v"> |
227 |
> |
<tool name="roothistmatrix" version="%v"> |
228 |
|
<info url="http://root.cern.ch/root/"/> |
229 |
|
<lib name="Hist"/> |
230 |
|
<lib name="Matrix"/> |
234 |
|
|
235 |
|
# rootgpad toolfile |
236 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
237 |
< |
<tool name="rootgpad" version="%v"> |
237 |
> |
<tool name="rootgpad" version="%v"> |
238 |
|
<info url="http://root.cern.ch/root/"/> |
239 |
|
<lib name="Gpad"/> |
240 |
|
<lib name="Graf"/> |
378 |
|
|
379 |
|
%post |
380 |
|
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
381 |
+ |
|