1 |
< |
### RPM lcg root 5.10.00b |
2 |
< |
# Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %v | tr . -)&module=root&output=/%{n}_v%{v}.source.tar.gz |
3 |
< |
Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz |
4 |
< |
Requires: gccxml python qt gsl |
5 |
< |
Patch0: root |
1 |
> |
### RPM lcg root 5.22.00a |
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 |
> |
|
7 |
> |
Patch0: root-5.18-00-libpng |
8 |
> |
Patch1: root-5.21-04-CINT-maxlongline |
9 |
> |
Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once |
10 |
> |
Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again |
11 |
> |
Patch4: root-5.22-00a-CINTFunctional |
12 |
> |
Patch5: root-5.22-00a-TClass |
13 |
> |
Patch6: root-5.22-00a-fireworks-graf3d-gui |
14 |
> |
Patch7: root-5.22-00a-Reflex-Class |
15 |
> |
Patch8: root-5.22-00a-Cintex |
16 |
> |
Patch9: root-5.22-00a-roofit-silence-static-printout |
17 |
> |
Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up |
18 |
> |
Patch11: root-5.22-00a-th1 |
19 |
> |
Patch12: root-5.22-00a-smatrix |
20 |
> |
Patch13: root-5.22-00a-fireworks1 |
21 |
> |
Patch14: root-5.22-00a-Reflex-gendict_selclass |
22 |
> |
Patch15: root-5.22-00a-MatrixInversion |
23 |
> |
|
24 |
> |
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
25 |
> |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
26 |
> |
|
27 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
28 |
> |
|
29 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
30 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
31 |
> |
%else |
32 |
> |
%define skiplibtiff true |
33 |
> |
%endif |
34 |
> |
|
35 |
> |
%if "%cpu" == "amd64" |
36 |
> |
%define skiplibtiff true |
37 |
> |
%endif |
38 |
> |
|
39 |
> |
%if "%skiplibtiff" != "true" |
40 |
> |
Requires: libtiff |
41 |
> |
%endif |
42 |
> |
|
43 |
|
%prep |
44 |
|
%setup -n root |
45 |
< |
%patch0 |
46 |
< |
|
45 |
> |
%patch0 -p1 |
46 |
> |
%patch1 -p1 |
47 |
> |
%patch2 -p1 |
48 |
> |
%patch3 -p1 |
49 |
> |
%patch4 -p1 |
50 |
> |
%patch5 -p1 |
51 |
> |
%patch6 -p1 |
52 |
> |
%patch7 -p0 |
53 |
> |
%patch8 -p0 |
54 |
> |
%patch9 -p1 |
55 |
> |
%patch10 -p1 |
56 |
> |
%patch11 -p1 |
57 |
> |
%patch12 -p1 |
58 |
> |
%patch13 -p1 |
59 |
> |
%patch14 -p0 |
60 |
> |
%patch15 -p0 |
61 |
> |
|
62 |
|
%build |
63 |
|
mkdir -p %i |
64 |
< |
export ROOTSYS=%i |
65 |
< |
CONFIG_ARGS="--enable-table |
64 |
> |
export ROOTSYS=%_builddir/root |
65 |
> |
|
66 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
67 |
> |
# Build without mysql, and use system qt. |
68 |
> |
# Also skip xrootd and odbc for online case: |
69 |
> |
|
70 |
> |
EXTRA_CONFIG_ARGS=" |
71 |
> |
--disable-mysql |
72 |
> |
--disable-xrootd |
73 |
> |
--disable-odbc |
74 |
> |
--enable-qt" |
75 |
> |
%else |
76 |
> |
EXTRA_CONFIG_ARGS=" |
77 |
> |
--with-xrootd=$XROOTD_ROOT |
78 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
79 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
80 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
81 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
82 |
> |
%endif |
83 |
> |
|
84 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
85 |
> |
--enable-table |
86 |
> |
--disable-builtin-pcre |
87 |
> |
--disable-builtin-freetype |
88 |
> |
--disable-builtin-zlib |
89 |
|
--with-gccxml=${GCCXML_ROOT} |
90 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include |
90 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
91 |
|
--enable-explicitlink |
92 |
< |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
93 |
< |
--enable-mathcore |
92 |
> |
--enable-qtgsi |
93 |
> |
--enable-mathmore |
94 |
|
--enable-reflex |
95 |
|
--enable-cintex |
96 |
|
--enable-minuit2 |
97 |
< |
--enable-roofit" |
97 |
> |
--enable-roofit |
98 |
> |
--disable-ldap |
99 |
> |
--disable-krb5 |
100 |
> |
--with-gsl-incdir=${GSL_ROOT}/include |
101 |
> |
--with-gsl-libdir=${GSL_ROOT}/lib |
102 |
> |
--with-dcap-libdir=${DCAP_ROOT}/lib |
103 |
> |
--with-dcap-incdir=${DCAP_ROOT}/include |
104 |
> |
--disable-pgsql |
105 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
106 |
> |
|
107 |
> |
#case %gccver in |
108 |
> |
# 4.*) |
109 |
> |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
110 |
> |
# ;; |
111 |
> |
#esac |
112 |
|
|
113 |
< |
case $(uname)-$(uname -m) in |
113 |
> |
case $(uname)-$(uname -p) in |
114 |
|
Linux-x86_64) |
115 |
< |
./configure linuxx8664gcc $CONFIG_ARGS;; |
116 |
< |
Linux*) |
117 |
< |
./configure linux $CONFIG_ARGS;; |
118 |
< |
Darwin) |
119 |
< |
./configure macosx $CONFIG_ARGS;; |
115 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
116 |
> |
Linux-i*86) |
117 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
118 |
> |
Darwin*) |
119 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
120 |
> |
Linux-ppc64*) |
121 |
> |
./configure linux $CONFIG_ARGS --disable-rfio;; |
122 |
|
esac |
123 |
|
|
124 |
< |
make %makeprocesses |
124 |
> |
case %cmsplatf in |
125 |
> |
osx*) |
126 |
> |
makeopts= |
127 |
> |
;; |
128 |
> |
*) |
129 |
> |
makeopts="%makeprocesses" |
130 |
> |
;; |
131 |
> |
esac |
132 |
> |
|
133 |
> |
make $makeopts |
134 |
> |
make cintdlls |
135 |
|
|
136 |
|
%install |
137 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
146 |
|
fi |
147 |
|
|
148 |
|
export ROOTSYS=%i |
149 |
< |
make INSTALL="$cp" INSTALLDATA="$cp" install |
149 |
> |
make INSTALL="$cp" INSTALLDATA="$cp" install |
150 |
> |
mkdir -p $ROOTSYS/lib/python |
151 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
152 |
> |
# |
153 |
> |
|
154 |
> |
# SCRAM ToolBox toolfile |
155 |
> |
mkdir -p %i/etc/scram.d |
156 |
> |
# rootcore toolfile |
157 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
158 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
159 |
> |
<Tool name=rootcore version=%v> |
160 |
> |
<info url="http://root.cern.ch/root/"></info> |
161 |
> |
<lib name=Tree> |
162 |
> |
<lib name=Net> |
163 |
> |
<lib name=Thread> |
164 |
> |
<lib name=MathCore> |
165 |
> |
<lib name=RIO> |
166 |
> |
<lib name=Core> |
167 |
> |
<lib name=Cint> |
168 |
> |
<Client> |
169 |
> |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
170 |
> |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
171 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
172 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
173 |
> |
</Client> |
174 |
> |
<use name=sockets> |
175 |
> |
<use name=pcre> |
176 |
> |
<use name=zlib> |
177 |
> |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
178 |
> |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
179 |
> |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
180 |
> |
</Tool> |
181 |
> |
EOF_TOOLFILE |
182 |
> |
|
183 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
184 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
185 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
186 |
> |
<Tool name=root version=%v> |
187 |
> |
<info url="http://root.cern.ch/root/"></info> |
188 |
> |
<use name=rootphysics> |
189 |
> |
</Tool> |
190 |
> |
EOF_TOOLFILE |
191 |
> |
|
192 |
> |
# roothistmatrix toolfile |
193 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
194 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
195 |
> |
<Tool name=roothistmatrix version=%v> |
196 |
> |
<info url="http://root.cern.ch/root/"></info> |
197 |
> |
<lib name=Gpad> |
198 |
> |
<lib name=Graf> |
199 |
> |
<lib name=Hist> |
200 |
> |
<lib name=Matrix> |
201 |
> |
<use name=ROOTCore> |
202 |
> |
</Tool> |
203 |
> |
EOF_TOOLFILE |
204 |
> |
|
205 |
> |
# rootphysics toolfile |
206 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
207 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
208 |
> |
<Tool name=rootphysics version=%v> |
209 |
> |
<info url="http://root.cern.ch/root/"></info> |
210 |
> |
<lib name=Physics> |
211 |
> |
<use name=roothistmatrix> |
212 |
> |
</Tool> |
213 |
> |
EOF_TOOLFILE |
214 |
> |
|
215 |
> |
# rootgraphics toolfile, identical to old "root" toolfile |
216 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
217 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
218 |
> |
<Tool name=rootgraphics version=%v> |
219 |
> |
<info url="http://root.cern.ch/root/"></info> |
220 |
> |
<lib name=TreePlayer> |
221 |
> |
<lib name=Graf3d> |
222 |
> |
<lib name=Postscript> |
223 |
> |
<use name=ROOTPhysics> |
224 |
> |
</Tool> |
225 |
> |
EOF_TOOLFILE |
226 |
> |
|
227 |
> |
# rootcintex toolfile |
228 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
229 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
230 |
> |
<Tool name=rootcintex version=%v> |
231 |
> |
<info url="http://root.cern.ch/root/"></info> |
232 |
> |
<lib name=Cintex> |
233 |
> |
<use name=ROOTRflx> |
234 |
> |
<use name=ROOTCore> |
235 |
> |
</Tool> |
236 |
> |
EOF_TOOLFILE |
237 |
> |
|
238 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
239 |
> |
# have been removed for the moment) |
240 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
241 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
242 |
> |
<Tool name=rootinteractive version=%v> |
243 |
> |
<info url="http://root.cern.ch/root/"></info> |
244 |
> |
<lib name=Rint> |
245 |
> |
<lib name=GQt> |
246 |
> |
<lib name=Gui> |
247 |
> |
<use name=qt> |
248 |
> |
<use name=libjpg> |
249 |
> |
<use name=libpng> |
250 |
> |
<use name=ROOT> |
251 |
> |
</Tool> |
252 |
> |
EOF_TOOLFILE |
253 |
> |
|
254 |
> |
# rootmath toolfile |
255 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
256 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
257 |
> |
<Tool name=rootmath version=%v> |
258 |
> |
<info url="http://root.cern.ch/root/"></info> |
259 |
> |
<lib name=GenVector> |
260 |
> |
<lib name=MathMore> |
261 |
> |
<use name=ROOTCore> |
262 |
> |
<use name=gsl> |
263 |
> |
</Tool> |
264 |
> |
EOF_TOOLFILE |
265 |
> |
|
266 |
> |
# rootminuit toolfile |
267 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
268 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
269 |
> |
<Tool name=rootminuit version=%v> |
270 |
> |
<info url="http://root.cern.ch/root/"></info> |
271 |
> |
<lib name=Minuit> |
272 |
> |
<use name=ROOT> |
273 |
> |
</Tool> |
274 |
> |
EOF_TOOLFILE |
275 |
> |
|
276 |
> |
# rootminuit2 toolfile |
277 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
278 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
279 |
> |
<Tool name=rootminuit2 version=%v> |
280 |
> |
<info url="http://root.cern.ch/root/"></info> |
281 |
> |
<lib name=Minuit2> |
282 |
> |
<use name=ROOT> |
283 |
> |
</Tool> |
284 |
> |
EOF_TOOLFILE |
285 |
> |
|
286 |
> |
# rootrflx toolfile |
287 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
288 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
289 |
> |
<Tool name=rootrflx version=%v> |
290 |
> |
<info url="http://root.cern.ch/root/"></info> |
291 |
> |
<lib name=Reflex> |
292 |
> |
<Client> |
293 |
> |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
294 |
> |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
295 |
> |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
296 |
> |
</Client> |
297 |
> |
<use name=sockets> |
298 |
> |
<use name=gccxml> |
299 |
> |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
300 |
> |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
301 |
> |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
302 |
> |
</Tool> |
303 |
> |
EOF_TOOLFILE |
304 |
> |
|
305 |
> |
# roothtml toolfile |
306 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
307 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
308 |
> |
<Tool name=roothtml version=%v> |
309 |
> |
<info url="http://root.cern.ch/root/"></info> |
310 |
> |
<lib name=Html> |
311 |
> |
<use name=RootHistMatrix> |
312 |
> |
</Tool> |
313 |
> |
EOF_TOOLFILE |
314 |
> |
|
315 |
> |
# rootroofit toolfile |
316 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
317 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
318 |
> |
<Tool name=rootroofit version=%v> |
319 |
> |
<info url="http://root.cern.ch/root/"></info> |
320 |
> |
<lib name=RooFit> |
321 |
> |
<lib name=RooFitCore> |
322 |
> |
<use name=ROOTMinuit> |
323 |
> |
<use name=ROOTHtml> |
324 |
> |
</Tool> |
325 |
> |
EOF_TOOLFILE |
326 |
> |
|
327 |
> |
# rootmlp toolfile |
328 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
329 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
330 |
> |
<Tool name=rootmlp version=%v> |
331 |
> |
<info url="http://root.cern.ch/root/"></info> |
332 |
> |
<lib name=MLP> |
333 |
> |
<use name=RootGraphics> |
334 |
> |
</Tool> |
335 |
> |
EOF_TOOLFILE |
336 |
> |
|
337 |
> |
# roottmva toolfile |
338 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
339 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
340 |
> |
<Tool name=roottmva version=%v> |
341 |
> |
<info url="http://root.cern.ch/root/"></info> |
342 |
> |
<lib name=TMVA> |
343 |
> |
<use name=ROOTMLP> |
344 |
> |
</Tool> |
345 |
> |
EOF_TOOLFILE |
346 |
> |
|
347 |
> |
# rootthread toolfile |
348 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
349 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
350 |
> |
<Tool name=rootthread version=%v> |
351 |
> |
<info url="http://root.cern.ch/root/"></info> |
352 |
> |
<use name=ROOTCore> |
353 |
> |
</Tool> |
354 |
> |
EOF_TOOLFILE |
355 |
> |
|
356 |
> |
%post |
357 |
> |
%{relocateConfig}etc/scram.d/root |
358 |
> |
%{relocateConfig}etc/scram.d/rootcore |
359 |
> |
%{relocateConfig}etc/scram.d/roothistmatrix |
360 |
> |
%{relocateConfig}etc/scram.d/rootphysics |
361 |
> |
%{relocateConfig}etc/scram.d/rootgraphics |
362 |
> |
%{relocateConfig}etc/scram.d/rootcintex |
363 |
> |
%{relocateConfig}etc/scram.d/rootinteractive |
364 |
> |
%{relocateConfig}etc/scram.d/rootmath |
365 |
> |
%{relocateConfig}etc/scram.d/rootminuit |
366 |
> |
%{relocateConfig}etc/scram.d/rootminuit2 |
367 |
> |
%{relocateConfig}etc/scram.d/rootrflx |
368 |
> |
%{relocateConfig}etc/scram.d/roothtml |
369 |
> |
%{relocateConfig}etc/scram.d/rootroofit |
370 |
> |
%{relocateConfig}etc/scram.d/rootmlp |
371 |
> |
%{relocateConfig}etc/scram.d/roottmva |
372 |
> |
%{relocateConfig}etc/scram.d/rootthread |