1 |
< |
### RPM lcg root 5.14.00g-CMS9 |
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 |
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 |
< |
Patch: root-CINT-maxlongline |
8 |
< |
Patch1: root_libpng |
9 |
< |
Patch2: root_PositionVector |
10 |
< |
Patch3: root-fastmerge-ttree |
11 |
< |
Patch4: root_TXMLSetup |
12 |
< |
Patch5: root-Cintex |
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 |
> |
Patch16: root-5.22-00a-gcc44 |
24 |
> |
Patch17: root-5.22-00a-fireworks2 |
25 |
> |
Patch18: root-5.22-00a-fireworks3 |
26 |
> |
Patch19: root-5.22-00a-TBranchElement |
27 |
|
|
28 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
29 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
30 |
|
|
31 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
32 |
|
|
33 |
< |
%if "%{?online_release:set}" != "set" |
34 |
< |
Requires: qt openssl mysql libpng zlib oracle libungif |
33 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
34 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
35 |
|
%else |
36 |
|
%define skiplibtiff true |
37 |
|
%endif |
46 |
|
|
47 |
|
%prep |
48 |
|
%setup -n root |
49 |
< |
%patch -p0 |
50 |
< |
%patch1 -p2 |
51 |
< |
%patch2 -p2 |
49 |
> |
%patch0 -p1 |
50 |
> |
%patch1 -p1 |
51 |
> |
%patch2 -p1 |
52 |
|
%patch3 -p1 |
53 |
< |
%patch4 -p0 |
53 |
> |
%patch4 -p1 |
54 |
|
%patch5 -p1 |
55 |
+ |
%patch6 -p1 |
56 |
+ |
%patch7 -p0 |
57 |
+ |
%patch8 -p0 |
58 |
+ |
%patch9 -p1 |
59 |
+ |
%patch10 -p1 |
60 |
+ |
%patch11 -p1 |
61 |
+ |
%patch12 -p1 |
62 |
+ |
%patch13 -p1 |
63 |
+ |
%patch14 -p0 |
64 |
+ |
%patch15 -p0 |
65 |
+ |
%patch16 -p1 |
66 |
+ |
%patch17 -p1 |
67 |
+ |
%patch18 -p1 |
68 |
+ |
%patch19 -p0 |
69 |
+ |
|
70 |
+ |
case %gccver in |
71 |
+ |
4.4) |
72 |
+ |
%patch16 -p1 |
73 |
+ |
;; |
74 |
+ |
esac |
75 |
+ |
|
76 |
|
%build |
77 |
|
mkdir -p %i |
78 |
|
export ROOTSYS=%_builddir/root |
79 |
|
|
80 |
< |
%if "%{?online_release:set}" != "set" |
80 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
81 |
> |
# Build without mysql, and use system qt. |
82 |
> |
# Also skip xrootd and odbc for online case: |
83 |
> |
|
84 |
|
EXTRA_CONFIG_ARGS=" |
85 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
86 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
87 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
88 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
85 |
> |
--disable-mysql |
86 |
> |
--disable-xrootd |
87 |
> |
--disable-odbc |
88 |
> |
--enable-qt" |
89 |
|
%else |
90 |
< |
ORACLE_ROOT="/opt/xdaq" |
91 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
90 |
> |
EXTRA_CONFIG_ARGS=" |
91 |
> |
--with-xrootd=$XROOTD_ROOT |
92 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
93 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
94 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
95 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
96 |
|
%endif |
97 |
|
|
98 |
< |
CONFIG_ARGS="--enable-table |
98 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
99 |
> |
--enable-table |
100 |
|
--disable-builtin-pcre |
101 |
|
--disable-builtin-freetype |
102 |
|
--disable-builtin-zlib |
103 |
|
--with-gccxml=${GCCXML_ROOT} |
104 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
104 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
105 |
|
--enable-explicitlink |
106 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
67 |
– |
--enable-mathcore |
107 |
|
--enable-mathmore |
108 |
|
--enable-reflex |
109 |
|
--enable-cintex |
118 |
|
--disable-pgsql |
119 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
120 |
|
|
121 |
+ |
#case %gccver in |
122 |
+ |
# 4.*) |
123 |
+ |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
124 |
+ |
# ;; |
125 |
+ |
#esac |
126 |
+ |
|
127 |
|
case $(uname)-$(uname -p) in |
128 |
|
Linux-x86_64) |
129 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
129 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
130 |
|
Linux-i*86) |
131 |
< |
./configure linux $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
131 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
132 |
|
Darwin*) |
133 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
134 |
|
Linux-ppc64*) |
135 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
136 |
|
esac |
137 |
|
|
138 |
< |
make %makeprocesses |
138 |
> |
case %cmsplatf in |
139 |
> |
osx*) |
140 |
> |
makeopts= |
141 |
> |
;; |
142 |
> |
*) |
143 |
> |
makeopts="%makeprocesses" |
144 |
> |
;; |
145 |
> |
esac |
146 |
> |
|
147 |
> |
make $makeopts |
148 |
|
make cintdlls |
149 |
+ |
|
150 |
|
%install |
151 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
152 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
162 |
|
export ROOTSYS=%i |
163 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
164 |
|
mkdir -p $ROOTSYS/lib/python |
165 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
165 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
166 |
|
# |
167 |
|
|
168 |
|
# SCRAM ToolBox toolfile |
172 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
173 |
|
<Tool name=rootcore version=%v> |
174 |
|
<info url="http://root.cern.ch/root/"></info> |
120 |
– |
<lib name=Cint> |
121 |
– |
<lib name=Core> |
175 |
|
<lib name=Tree> |
176 |
+ |
<lib name=Net> |
177 |
+ |
<lib name=Thread> |
178 |
+ |
<lib name=MathCore> |
179 |
+ |
<lib name=RIO> |
180 |
+ |
<lib name=Core> |
181 |
+ |
<lib name=Cint> |
182 |
|
<Client> |
183 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
184 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
194 |
|
</Tool> |
195 |
|
EOF_TOOLFILE |
196 |
|
|
197 |
< |
# root toolfile |
197 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
198 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
199 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
200 |
|
<Tool name=root version=%v> |
201 |
|
<info url="http://root.cern.ch/root/"></info> |
202 |
< |
<lib name=TreePlayer> |
203 |
< |
<lib name=Gpad> |
204 |
< |
<lib name=Graf3d> |
205 |
< |
<lib name=Graf> |
202 |
> |
<use name=rootphysics> |
203 |
> |
</Tool> |
204 |
> |
EOF_TOOLFILE |
205 |
> |
|
206 |
> |
# roothistmatrix toolfile |
207 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
208 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
209 |
> |
<Tool name=roothistmatrix version=%v> |
210 |
> |
<info url="http://root.cern.ch/root/"></info> |
211 |
|
<lib name=Hist> |
212 |
|
<lib name=Matrix> |
213 |
+ |
<use name=ROOTCore> |
214 |
+ |
</Tool> |
215 |
+ |
EOF_TOOLFILE |
216 |
+ |
|
217 |
+ |
# rootgpad toolfile |
218 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
219 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
220 |
+ |
<Tool name=rootgpad version=%v> |
221 |
+ |
<info url="http://root.cern.ch/root/"></info> |
222 |
+ |
<lib name=Gpad> |
223 |
+ |
<lib name=Graf> |
224 |
+ |
<use name=roothistmatrix> |
225 |
+ |
</Tool> |
226 |
+ |
EOF_TOOLFILE |
227 |
+ |
|
228 |
+ |
# rootphysics toolfile |
229 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
230 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
231 |
+ |
<Tool name=rootphysics version=%v> |
232 |
+ |
<info url="http://root.cern.ch/root/"></info> |
233 |
|
<lib name=Physics> |
234 |
+ |
<use name=roothistmatrix> |
235 |
+ |
</Tool> |
236 |
+ |
EOF_TOOLFILE |
237 |
+ |
|
238 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
239 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
240 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
241 |
+ |
<Tool name=rootgraphics version=%v> |
242 |
+ |
<info url="http://root.cern.ch/root/"></info> |
243 |
+ |
<lib name=TreePlayer> |
244 |
+ |
<lib name=Graf3d> |
245 |
|
<lib name=Postscript> |
246 |
< |
<use name=ROOTCore> |
246 |
> |
<use name=rootgpad> |
247 |
|
</Tool> |
248 |
|
EOF_TOOLFILE |
249 |
|
|
258 |
|
</Tool> |
259 |
|
EOF_TOOLFILE |
260 |
|
|
261 |
< |
# rootinteractive toolfile |
261 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
262 |
> |
# have been removed for the moment) |
263 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
264 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
265 |
|
<Tool name=rootinteractive version=%v> |
266 |
|
<info url="http://root.cern.ch/root/"></info> |
267 |
|
<lib name=Rint> |
268 |
|
<lib name=GQt> |
269 |
+ |
<lib name=Gui> |
270 |
|
<use name=qt> |
271 |
|
<use name=libjpg> |
272 |
|
<use name=libpng> |
273 |
< |
<use name=ROOT> |
273 |
> |
<use name=rootgpad> |
274 |
|
</Tool> |
275 |
|
EOF_TOOLFILE |
276 |
|
|
279 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
280 |
|
<Tool name=rootmath version=%v> |
281 |
|
<info url="http://root.cern.ch/root/"></info> |
282 |
< |
<lib name=MathCore> |
282 |
> |
<lib name=GenVector> |
283 |
|
<lib name=MathMore> |
284 |
|
<use name=ROOTCore> |
285 |
|
<use name=gsl> |
292 |
|
<Tool name=rootminuit version=%v> |
293 |
|
<info url="http://root.cern.ch/root/"></info> |
294 |
|
<lib name=Minuit> |
295 |
< |
<use name=ROOT> |
295 |
> |
<use name=rootgpad> |
296 |
|
</Tool> |
297 |
|
EOF_TOOLFILE |
298 |
|
|
302 |
|
<Tool name=rootminuit2 version=%v> |
303 |
|
<info url="http://root.cern.ch/root/"></info> |
304 |
|
<lib name=Minuit2> |
305 |
< |
<use name=ROOT> |
305 |
> |
<use name=rootgpad> |
306 |
|
</Tool> |
307 |
|
EOF_TOOLFILE |
308 |
|
|
331 |
|
<Tool name=roothtml version=%v> |
332 |
|
<info url="http://root.cern.ch/root/"></info> |
333 |
|
<lib name=Html> |
334 |
< |
<use name=ROOT> |
334 |
> |
<use name=rootgpad> |
335 |
|
</Tool> |
336 |
|
EOF_TOOLFILE |
337 |
|
|
341 |
|
<Tool name=rootroofit version=%v> |
342 |
|
<info url="http://root.cern.ch/root/"></info> |
343 |
|
<lib name=RooFit> |
344 |
+ |
<lib name=RooFitCore> |
345 |
|
<use name=ROOTMinuit> |
248 |
– |
<use name=ROOTHtml> |
346 |
|
</Tool> |
347 |
|
EOF_TOOLFILE |
348 |
|
|
352 |
|
<Tool name=rootmlp version=%v> |
353 |
|
<info url="http://root.cern.ch/root/"></info> |
354 |
|
<lib name=MLP> |
355 |
< |
<use name=ROOT> |
355 |
> |
<use name=RootGraphics> |
356 |
|
</Tool> |
357 |
|
EOF_TOOLFILE |
358 |
|
|
363 |
|
<info url="http://root.cern.ch/root/"></info> |
364 |
|
<lib name=TMVA> |
365 |
|
<use name=ROOTMLP> |
366 |
+ |
<use name=rootminuit> |
367 |
|
</Tool> |
368 |
|
EOF_TOOLFILE |
369 |
|
|
372 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
373 |
|
<Tool name=rootthread version=%v> |
374 |
|
<info url="http://root.cern.ch/root/"></info> |
277 |
– |
<lib name=Thread> |
375 |
|
<use name=ROOTCore> |
376 |
|
</Tool> |
377 |
|
EOF_TOOLFILE |
379 |
|
%post |
380 |
|
%{relocateConfig}etc/scram.d/root |
381 |
|
%{relocateConfig}etc/scram.d/rootcore |
382 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
383 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
384 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
385 |
|
%{relocateConfig}etc/scram.d/rootcintex |
386 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
387 |
|
%{relocateConfig}etc/scram.d/rootmath |