1 |
< |
### RPM lcg root 5.22.00d |
1 |
> |
### RPM lcg root 5.27.06 |
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 |
6 |
|
%define closingbrace ) |
7 |
|
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac) |
8 |
|
|
9 |
< |
Patch0: root-5.22-00d-externals |
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-00d-makelib-ldl |
18 |
< |
Patch9: root-5.22-00a-fireworks1 |
19 |
< |
Patch10: root-5.22-00a-gcc44 |
20 |
< |
Patch11: root-5.22-00a-fireworks2 |
21 |
< |
Patch12: root-5.22-00a-fireworks3 |
22 |
< |
Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround |
23 |
< |
Patch14: root-5.22-00a-fireworks4 |
24 |
< |
Patch15: root-5.22-00d-fireworks5 |
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 |
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 |
9 |
> |
Patch0: root-5.27-06-externals |
10 |
> |
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
11 |
> |
Patch2: root-5.22-00a-roofit-silence-static-printout |
12 |
> |
Patch3: root-5.22-00d-linker-gnu-hash-style |
13 |
> |
Patch4: root-5.22-00d-TBranchElement-dropped-data-member |
14 |
> |
Patch5: root-5.27-06-fireworks9 |
15 |
|
|
16 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
17 |
|
|
18 |
< |
Requires: gccxml gsl castor libjpg dcap pcre python |
18 |
> |
Requires: xrootd gccxml gsl castor libjpg dcap pcre python |
19 |
|
%if "%online" != "true" |
20 |
< |
Requires: qt openssl libpng zlib libungif xrootd libtiff |
20 |
> |
Requires: qt openssl libpng zlib libungif libtiff |
21 |
|
%endif |
22 |
|
|
23 |
|
%prep |
25 |
|
%patch0 -p1 |
26 |
|
%patch1 -p1 |
27 |
|
%patch2 -p1 |
28 |
< |
%patch3 -p1 |
28 |
> |
# patch3 is OS version dependent, see below |
29 |
|
%patch4 -p1 |
51 |
– |
|
30 |
|
%patch5 -p1 |
53 |
– |
%patch6 -p1 |
54 |
– |
%patch7 -p1 |
55 |
– |
%patch8 -p1 |
56 |
– |
%patch9 -p1 |
57 |
– |
|
58 |
– |
# patch10 is compiler version dependent, see below |
59 |
– |
%patch11 -p1 |
60 |
– |
%patch12 -p1 |
61 |
– |
# patch13 is compiler version dependent, see below |
62 |
– |
|
63 |
– |
# work around patch issue... |
64 |
– |
rm graf3d/gl/src/gl2ps.c |
65 |
– |
%patch14 -p1 |
66 |
– |
#work around patch issues in patch14(?) |
67 |
– |
rm graf3d/eve/inc/TEveLegoOverlay.h.orig |
68 |
– |
rm graf3d/eve/src/TEveLegoOverlay.cxx |
69 |
– |
rm graf3d/gl/inc/gl2ps.h.orig |
70 |
– |
rm graf3d/gl/src/gl2ps.c.orig |
71 |
– |
%patch15 -p1 |
72 |
– |
%patch16 -p1 |
73 |
– |
%patch17 -p1 |
74 |
– |
%patch19 -p1 |
75 |
– |
%patch20 -p1 |
76 |
– |
%patch21 -p1 |
77 |
– |
%patch22 -p1 |
78 |
– |
%patch23 -p1 |
79 |
– |
%patch24 -p1 |
80 |
– |
%patch25 -p1 |
81 |
– |
%patch26 -p1 |
82 |
– |
|
83 |
– |
case %gccver in |
84 |
– |
4.3.*) |
85 |
– |
%patch13 -p1 |
86 |
– |
;; |
87 |
– |
4.4.*) |
88 |
– |
%patch10 -p1 |
89 |
– |
;; |
90 |
– |
esac |
31 |
|
|
32 |
< |
# The following patch can only be applied on SLC5 or later (extra linker |
32 |
> |
# The following patch can only be applied on SLC5 or later (extra linker |
33 |
|
# options only available with the SLC5 binutils) |
34 |
|
case %cmsplatf in |
35 |
|
slc5_* | slc5onl_* ) |
36 |
< |
%patch18 -p1 |
36 |
> |
%patch3 -p1 |
37 |
|
;; |
38 |
|
esac |
39 |
|
|
40 |
|
%build |
41 |
|
|
42 |
|
mkdir -p %i |
43 |
+ |
export LIBJPG_ROOT |
44 |
|
export ROOTSYS=%_builddir/root |
45 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
46 |
|
|
48 |
|
# Use system qt. Also skip xrootd and odbc for online case: |
49 |
|
|
50 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
110 |
– |
--disable-xrootd |
51 |
|
--disable-odbc |
52 |
|
--disable-qt --disable-qtgsi --disable-astiff" |
53 |
|
%else |
54 |
+ |
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
55 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
115 |
– |
--with-xrootd=$XROOTD_ROOT |
56 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
57 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
58 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
72 |
|
--enable-minuit2 |
73 |
|
--disable-ldap |
74 |
|
--disable-krb5 |
75 |
+ |
--with-xrootd=${XROOTD_ROOT} |
76 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
77 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
78 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
129 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
130 |
|
mkdir -p $ROOTSYS/lib/python |
131 |
|
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
132 |
+ |
|
133 |
+ |
# SCRAM ToolBox toolfile |
134 |
+ |
mkdir -p %i/etc/scram.d |
135 |
+ |
# rootcore toolfile |
136 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
137 |
+ |
<tool name="rootcore" version="%v"> |
138 |
+ |
<info url="http://root.cern.ch/root/"/> |
139 |
+ |
<lib name="Tree"/> |
140 |
+ |
<lib name="Net"/> |
141 |
+ |
<lib name="Thread"/> |
142 |
+ |
<lib name="MathCore"/> |
143 |
+ |
<lib name="RIO"/> |
144 |
+ |
<lib name="Core"/> |
145 |
+ |
<lib name="Cint"/> |
146 |
+ |
<client> |
147 |
+ |
<environment name="ROOTCORE_BASE" default="%i"/> |
148 |
+ |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
149 |
+ |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
150 |
+ |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
151 |
+ |
</client> |
152 |
+ |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
153 |
+ |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
154 |
+ |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
155 |
+ |
<use name="sockets"/> |
156 |
+ |
<use name="pcre"/> |
157 |
+ |
<use name="zlib"/> |
158 |
+ |
</tool> |
159 |
+ |
EOF_TOOLFILE |
160 |
+ |
|
161 |
+ |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
162 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
163 |
+ |
<tool name="root" version="%v"> |
164 |
+ |
<info url="http://root.cern.ch/root/"/> |
165 |
+ |
<use name="rootphysics"/> |
166 |
+ |
</tool> |
167 |
+ |
EOF_TOOLFILE |
168 |
+ |
|
169 |
+ |
# roothistmatrix toolfile |
170 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
171 |
+ |
<tool name="roothistmatrix" version="%v"> |
172 |
+ |
<info url="http://root.cern.ch/root/"/> |
173 |
+ |
<lib name="Hist"/> |
174 |
+ |
<lib name="Matrix"/> |
175 |
+ |
<use name="ROOTCore"/> |
176 |
+ |
</tool> |
177 |
+ |
EOF_TOOLFILE |
178 |
+ |
|
179 |
+ |
# rootgpad toolfile |
180 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
181 |
+ |
<tool name="rootgpad" version="%v"> |
182 |
+ |
<info url="http://root.cern.ch/root/"/> |
183 |
+ |
<lib name="Gpad"/> |
184 |
+ |
<lib name="Graf"/> |
185 |
+ |
<use name="roothistmatrix"/> |
186 |
+ |
</tool> |
187 |
+ |
EOF_TOOLFILE |
188 |
+ |
|
189 |
+ |
# rootphysics toolfile |
190 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
191 |
+ |
<tool name="rootphysics" version="%v"> |
192 |
+ |
<info url="http://root.cern.ch/root/"/> |
193 |
+ |
<lib name="Physics"/> |
194 |
+ |
<use name="roothistmatrix"/> |
195 |
+ |
</tool> |
196 |
+ |
EOF_TOOLFILE |
197 |
+ |
|
198 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
199 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
200 |
+ |
<tool name="rootgraphics" version="%v"> |
201 |
+ |
<info url="http://root.cern.ch/root/"/> |
202 |
+ |
<lib name="TreePlayer"/> |
203 |
+ |
<lib name="Graf3d"/> |
204 |
+ |
<lib name="Postscript"/> |
205 |
+ |
<use name="rootgpad"/> |
206 |
+ |
</tool> |
207 |
+ |
EOF_TOOLFILE |
208 |
+ |
|
209 |
+ |
# rootcintex toolfile |
210 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
211 |
+ |
<tool name="rootcintex" version="%v"> |
212 |
+ |
<info url="http://root.cern.ch/root/"/> |
213 |
+ |
<lib name="Cintex"/> |
214 |
+ |
<use name="ROOTRflx"/> |
215 |
+ |
<use name="ROOTCore"/> |
216 |
+ |
</tool> |
217 |
+ |
EOF_TOOLFILE |
218 |
+ |
|
219 |
+ |
# rootinteractive toolfile (GQt/qt lib dependencies |
220 |
+ |
# have been moved to rootqt.xml) |
221 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
222 |
+ |
<tool name="rootinteractive" version="%v"> |
223 |
+ |
<info url="http://root.cern.ch/root/"/> |
224 |
+ |
<lib name="Rint"/> |
225 |
+ |
<lib name="Gui"/> |
226 |
+ |
<use name="libjpg"/> |
227 |
+ |
<use name="libpng"/> |
228 |
+ |
<use name="rootgpad"/> |
229 |
+ |
</tool> |
230 |
+ |
EOF_TOOLFILE |
231 |
+ |
|
232 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
233 |
+ |
<tool name="rootqt" version="%v"> |
234 |
+ |
<info url="http://root.cern.ch/root/"/> |
235 |
+ |
<lib name="GQt"/> |
236 |
+ |
<use name="qt"/> |
237 |
+ |
</tool> |
238 |
+ |
EOF_TOOLFILE |
239 |
+ |
|
240 |
+ |
# rootmath toolfile |
241 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
242 |
+ |
<tool name="rootmath" version="%v"> |
243 |
+ |
<info url="http://root.cern.ch/root/"/> |
244 |
+ |
<lib name="GenVector"/> |
245 |
+ |
<lib name="MathMore"/> |
246 |
+ |
<use name="ROOTCore"/> |
247 |
+ |
<use name="gsl"/> |
248 |
+ |
</tool> |
249 |
+ |
EOF_TOOLFILE |
250 |
+ |
|
251 |
+ |
# rootminuit toolfile |
252 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
253 |
+ |
<tool name="rootminuit" version="%v"> |
254 |
+ |
<info url="http://root.cern.ch/root/"/> |
255 |
+ |
<lib name="Minuit"/> |
256 |
+ |
<use name="rootgpad"/> |
257 |
+ |
</tool> |
258 |
+ |
EOF_TOOLFILE |
259 |
+ |
|
260 |
+ |
# rootminuit2 toolfile |
261 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
262 |
+ |
<tool name="rootminuit2" version="%v"> |
263 |
+ |
<info url="http://root.cern.ch/root/"/> |
264 |
+ |
<lib name="Minuit2"/> |
265 |
+ |
<use name="rootgpad"/> |
266 |
+ |
</tool> |
267 |
+ |
EOF_TOOLFILE |
268 |
+ |
|
269 |
+ |
# rootrflx toolfile |
270 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
271 |
+ |
<tool name="rootrflx" version="%v"> |
272 |
+ |
<info url="http://root.cern.ch/root/"/> |
273 |
+ |
<lib name="Reflex"/> |
274 |
+ |
<client> |
275 |
+ |
<environment name="ROOTRFLX_BASE" default="%i"/> |
276 |
+ |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
277 |
+ |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
278 |
+ |
</client> |
279 |
+ |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
280 |
+ |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
281 |
+ |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
282 |
+ |
<use name="sockets"/> |
283 |
+ |
<use name="gccxml"/> |
284 |
+ |
</tool> |
285 |
+ |
EOF_TOOLFILE |
286 |
+ |
|
287 |
+ |
# roothtml toolfile |
288 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
289 |
+ |
<tool name="roothtml" version="%v"> |
290 |
+ |
<info url="http://root.cern.ch/root/"/> |
291 |
+ |
<lib name="Html"/> |
292 |
+ |
<use name="rootgpad"/> |
293 |
+ |
</tool> |
294 |
+ |
EOF_TOOLFILE |
295 |
+ |
|
296 |
+ |
# rootmlp toolfile |
297 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
298 |
+ |
<tool name="rootmlp" version="%v"> |
299 |
+ |
<info url="http://root.cern.ch/root/"/> |
300 |
+ |
<lib name="MLP"/> |
301 |
+ |
<use name="RootGraphics"/> |
302 |
+ |
</tool> |
303 |
+ |
EOF_TOOLFILE |
304 |
+ |
|
305 |
+ |
# roottmva toolfile |
306 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
307 |
+ |
<tool name="roottmva" version="%v"> |
308 |
+ |
<info url="http://root.cern.ch/root/"/> |
309 |
+ |
<lib name="TMVA"/> |
310 |
+ |
<use name="ROOTMLP"/> |
311 |
+ |
<use name="rootminuit"/> |
312 |
+ |
</tool> |
313 |
+ |
EOF_TOOLFILE |
314 |
+ |
|
315 |
+ |
# rootthread toolfile |
316 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
317 |
+ |
<tool name="rootthread" version="%v"> |
318 |
+ |
<info url="http://root.cern.ch/root/"/> |
319 |
+ |
<use name="ROOTCore"/> |
320 |
+ |
</tool> |
321 |
+ |
EOF_TOOLFILE |
322 |
+ |
|
323 |
+ |
%post |
324 |
+ |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
325 |
+ |
|