1 |
< |
### RPM lcg root 5.22.00 |
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 |
7 |
> |
Patch0: root-5.18-00-libpng |
8 |
|
Patch1: root-5.21-04-CINT-maxlongline |
9 |
< |
Patch2: root-5.22-00-TClass-Clone |
10 |
< |
Patch3: root-5.22-00-gendict |
11 |
< |
Patch4: root-5.22-00-RootSys |
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) |
27 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
28 |
|
|
29 |
|
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
30 |
< |
Requires: qt openssl mysql libpng zlib libungif |
30 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
31 |
|
%else |
32 |
|
%define skiplibtiff true |
33 |
|
%endif |
47 |
|
%patch2 -p1 |
48 |
|
%patch3 -p1 |
49 |
|
%patch4 -p1 |
50 |
< |
|
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=%_builddir/root |
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 |
112 |
|
|
113 |
|
case $(uname)-$(uname -p) in |
114 |
|
Linux-x86_64) |
115 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
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*) |
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 |
138 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
158 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
159 |
|
<Tool name=rootcore version=%v> |
160 |
|
<info url="http://root.cern.ch/root/"></info> |
128 |
– |
<lib name=Cint> |
129 |
– |
<lib name=Core> |
130 |
– |
<lib name=RIO> |
131 |
– |
<lib name=Net> |
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> |
200 |
|
</Tool> |
201 |
|
EOF_TOOLFILE |
202 |
|
|
203 |
+ |
# rootgpad toolfile |
204 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
205 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
206 |
+ |
<Tool name=rootgpad version=%v> |
207 |
+ |
<info url="http://root.cern.ch/root/"></info> |
208 |
+ |
<lib name=Gpad> |
209 |
+ |
<lib name=Graf> |
210 |
+ |
<use name=roothistmatrix> |
211 |
+ |
</Tool> |
212 |
+ |
EOF_TOOLFILE |
213 |
+ |
|
214 |
|
# rootphysics toolfile |
215 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
216 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
227 |
|
<Tool name=rootgraphics version=%v> |
228 |
|
<info url="http://root.cern.ch/root/"></info> |
229 |
|
<lib name=TreePlayer> |
184 |
– |
<lib name=Gpad> |
230 |
|
<lib name=Graf3d> |
186 |
– |
<lib name=Graf> |
187 |
– |
<lib name=Hist> |
188 |
– |
<lib name=Matrix> |
189 |
– |
<lib name=Physics> |
231 |
|
<lib name=Postscript> |
232 |
< |
<use name=ROOTCore> |
232 |
> |
<use name=rootgpad> |
233 |
|
</Tool> |
234 |
|
EOF_TOOLFILE |
235 |
|
|
244 |
|
</Tool> |
245 |
|
EOF_TOOLFILE |
246 |
|
|
247 |
< |
# rootinteractive toolfile |
247 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
248 |
> |
# have been removed for the moment) |
249 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
250 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
251 |
|
<Tool name=rootinteractive version=%v> |
252 |
|
<info url="http://root.cern.ch/root/"></info> |
253 |
|
<lib name=Rint> |
254 |
|
<lib name=GQt> |
255 |
+ |
<lib name=Gui> |
256 |
|
<use name=qt> |
257 |
|
<use name=libjpg> |
258 |
|
<use name=libpng> |
259 |
< |
<use name=ROOT> |
259 |
> |
<use name=rootgpad> |
260 |
|
</Tool> |
261 |
|
EOF_TOOLFILE |
262 |
|
|
265 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
266 |
|
<Tool name=rootmath version=%v> |
267 |
|
<info url="http://root.cern.ch/root/"></info> |
225 |
– |
<lib name=MathCore> |
226 |
– |
<lib name=MathMore> |
268 |
|
<lib name=GenVector> |
269 |
+ |
<lib name=MathMore> |
270 |
|
<use name=ROOTCore> |
271 |
|
<use name=gsl> |
272 |
|
</Tool> |
278 |
|
<Tool name=rootminuit version=%v> |
279 |
|
<info url="http://root.cern.ch/root/"></info> |
280 |
|
<lib name=Minuit> |
281 |
< |
<use name=ROOT> |
281 |
> |
<use name=rootgpad> |
282 |
|
</Tool> |
283 |
|
EOF_TOOLFILE |
284 |
|
|
288 |
|
<Tool name=rootminuit2 version=%v> |
289 |
|
<info url="http://root.cern.ch/root/"></info> |
290 |
|
<lib name=Minuit2> |
291 |
< |
<use name=ROOT> |
291 |
> |
<use name=rootgpad> |
292 |
|
</Tool> |
293 |
|
EOF_TOOLFILE |
294 |
|
|
317 |
|
<Tool name=roothtml version=%v> |
318 |
|
<info url="http://root.cern.ch/root/"></info> |
319 |
|
<lib name=Html> |
320 |
< |
<use name=ROOT> |
320 |
> |
<use name=rootgpad> |
321 |
|
</Tool> |
322 |
|
EOF_TOOLFILE |
323 |
|
|
326 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
327 |
|
<Tool name=rootroofit version=%v> |
328 |
|
<info url="http://root.cern.ch/root/"></info> |
287 |
– |
<lib name=RooFitCore> |
329 |
|
<lib name=RooFit> |
330 |
+ |
<lib name=RooFitCore> |
331 |
|
<use name=ROOTMinuit> |
290 |
– |
<use name=ROOTHtml> |
332 |
|
</Tool> |
333 |
|
EOF_TOOLFILE |
334 |
|
|
338 |
|
<Tool name=rootmlp version=%v> |
339 |
|
<info url="http://root.cern.ch/root/"></info> |
340 |
|
<lib name=MLP> |
341 |
< |
<use name=ROOT> |
341 |
> |
<use name=RootGraphics> |
342 |
|
</Tool> |
343 |
|
EOF_TOOLFILE |
344 |
|
|
349 |
|
<info url="http://root.cern.ch/root/"></info> |
350 |
|
<lib name=TMVA> |
351 |
|
<use name=ROOTMLP> |
352 |
+ |
<use name=rootminuit> |
353 |
|
</Tool> |
354 |
|
EOF_TOOLFILE |
355 |
|
|
358 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
359 |
|
<Tool name=rootthread version=%v> |
360 |
|
<info url="http://root.cern.ch/root/"></info> |
319 |
– |
<lib name=Thread> |
361 |
|
<use name=ROOTCore> |
362 |
|
</Tool> |
363 |
|
EOF_TOOLFILE |