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 |
|
|
25 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
26 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
27 |
|
|
28 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
29 |
|
|
30 |
< |
%if "%{?online_release:set}" != "set" |
31 |
< |
Requires: qt openssl mysql libpng zlib oracle libungif |
30 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
31 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
32 |
|
%else |
33 |
|
%define skiplibtiff true |
34 |
|
%endif |
43 |
|
|
44 |
|
%prep |
45 |
|
%setup -n root |
46 |
< |
%patch -p0 |
47 |
< |
%patch1 -p2 |
48 |
< |
%patch2 -p2 |
46 |
> |
%patch0 -p1 |
47 |
> |
%patch1 -p1 |
48 |
> |
%patch2 -p1 |
49 |
|
%patch3 -p1 |
50 |
< |
%patch4 -p0 |
50 |
> |
%patch4 -p1 |
51 |
|
%patch5 -p1 |
52 |
+ |
%patch6 -p1 |
53 |
+ |
%patch7 -p0 |
54 |
+ |
%patch8 -p0 |
55 |
+ |
%patch9 -p1 |
56 |
+ |
%patch10 -p1 |
57 |
+ |
%patch11 -p1 |
58 |
+ |
%patch12 -p1 |
59 |
+ |
%patch13 -p1 |
60 |
+ |
%patch14 -p0 |
61 |
+ |
%patch15 -p0 |
62 |
+ |
case %gccver in |
63 |
+ |
4.4) |
64 |
+ |
%patch16 -p1 |
65 |
+ |
;; |
66 |
+ |
esac |
67 |
+ |
|
68 |
|
%build |
69 |
|
mkdir -p %i |
70 |
|
export ROOTSYS=%_builddir/root |
71 |
|
|
72 |
< |
%if "%{?online_release:set}" != "set" |
72 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
73 |
> |
# Build without mysql, and use system qt. |
74 |
> |
# Also skip xrootd and odbc for online case: |
75 |
> |
|
76 |
|
EXTRA_CONFIG_ARGS=" |
77 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
78 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
79 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
80 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
77 |
> |
--disable-mysql |
78 |
> |
--disable-xrootd |
79 |
> |
--disable-odbc |
80 |
> |
--enable-qt" |
81 |
|
%else |
82 |
< |
ORACLE_ROOT="/opt/xdaq" |
83 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
82 |
> |
EXTRA_CONFIG_ARGS=" |
83 |
> |
--with-xrootd=$XROOTD_ROOT |
84 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
85 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
86 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
87 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
88 |
|
%endif |
89 |
|
|
90 |
< |
CONFIG_ARGS="--enable-table |
90 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
91 |
> |
--enable-table |
92 |
|
--disable-builtin-pcre |
93 |
|
--disable-builtin-freetype |
94 |
|
--disable-builtin-zlib |
95 |
|
--with-gccxml=${GCCXML_ROOT} |
96 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
96 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
97 |
|
--enable-explicitlink |
98 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
67 |
– |
--enable-mathcore |
99 |
|
--enable-mathmore |
100 |
|
--enable-reflex |
101 |
|
--enable-cintex |
110 |
|
--disable-pgsql |
111 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
112 |
|
|
113 |
+ |
#case %gccver in |
114 |
+ |
# 4.*) |
115 |
+ |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
116 |
+ |
# ;; |
117 |
+ |
#esac |
118 |
+ |
|
119 |
|
case $(uname)-$(uname -p) in |
120 |
|
Linux-x86_64) |
121 |
< |
./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;; |
121 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
122 |
|
Linux-i*86) |
123 |
< |
./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;; |
123 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
124 |
|
Darwin*) |
125 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
126 |
|
Linux-ppc64*) |
127 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
128 |
|
esac |
129 |
|
|
130 |
< |
make %makeprocesses |
130 |
> |
case %cmsplatf in |
131 |
> |
osx*) |
132 |
> |
makeopts= |
133 |
> |
;; |
134 |
> |
*) |
135 |
> |
makeopts="%makeprocesses" |
136 |
> |
;; |
137 |
> |
esac |
138 |
> |
|
139 |
> |
make $makeopts |
140 |
|
make cintdlls |
141 |
+ |
|
142 |
|
%install |
143 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
144 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
154 |
|
export ROOTSYS=%i |
155 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
156 |
|
mkdir -p $ROOTSYS/lib/python |
157 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
157 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
158 |
|
# |
159 |
|
|
160 |
|
# SCRAM ToolBox toolfile |
164 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
165 |
|
<Tool name=rootcore version=%v> |
166 |
|
<info url="http://root.cern.ch/root/"></info> |
120 |
– |
<lib name=Cint> |
121 |
– |
<lib name=Core> |
167 |
|
<lib name=Tree> |
168 |
+ |
<lib name=Net> |
169 |
+ |
<lib name=Thread> |
170 |
+ |
<lib name=MathCore> |
171 |
+ |
<lib name=RIO> |
172 |
+ |
<lib name=Core> |
173 |
+ |
<lib name=Cint> |
174 |
|
<Client> |
175 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
176 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
186 |
|
</Tool> |
187 |
|
EOF_TOOLFILE |
188 |
|
|
189 |
< |
# root toolfile |
189 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
190 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
191 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
192 |
|
<Tool name=root version=%v> |
193 |
|
<info url="http://root.cern.ch/root/"></info> |
194 |
< |
<lib name=TreePlayer> |
195 |
< |
<lib name=Gpad> |
196 |
< |
<lib name=Graf3d> |
197 |
< |
<lib name=Graf> |
194 |
> |
<use name=rootphysics> |
195 |
> |
</Tool> |
196 |
> |
EOF_TOOLFILE |
197 |
> |
|
198 |
> |
# roothistmatrix toolfile |
199 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
200 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
201 |
> |
<Tool name=roothistmatrix version=%v> |
202 |
> |
<info url="http://root.cern.ch/root/"></info> |
203 |
|
<lib name=Hist> |
204 |
|
<lib name=Matrix> |
205 |
+ |
<use name=ROOTCore> |
206 |
+ |
</Tool> |
207 |
+ |
EOF_TOOLFILE |
208 |
+ |
|
209 |
+ |
# rootgpad toolfile |
210 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
211 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
212 |
+ |
<Tool name=rootgpad version=%v> |
213 |
+ |
<info url="http://root.cern.ch/root/"></info> |
214 |
+ |
<lib name=Gpad> |
215 |
+ |
<lib name=Graf> |
216 |
+ |
<use name=roothistmatrix> |
217 |
+ |
</Tool> |
218 |
+ |
EOF_TOOLFILE |
219 |
+ |
|
220 |
+ |
# rootphysics toolfile |
221 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
222 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
223 |
+ |
<Tool name=rootphysics version=%v> |
224 |
+ |
<info url="http://root.cern.ch/root/"></info> |
225 |
|
<lib name=Physics> |
226 |
+ |
<use name=roothistmatrix> |
227 |
+ |
</Tool> |
228 |
+ |
EOF_TOOLFILE |
229 |
+ |
|
230 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
231 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
232 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
233 |
+ |
<Tool name=rootgraphics version=%v> |
234 |
+ |
<info url="http://root.cern.ch/root/"></info> |
235 |
+ |
<lib name=TreePlayer> |
236 |
+ |
<lib name=Graf3d> |
237 |
|
<lib name=Postscript> |
238 |
< |
<use name=ROOTCore> |
238 |
> |
<use name=rootgpad> |
239 |
|
</Tool> |
240 |
|
EOF_TOOLFILE |
241 |
|
|
250 |
|
</Tool> |
251 |
|
EOF_TOOLFILE |
252 |
|
|
253 |
< |
# rootinteractive toolfile |
253 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
254 |
> |
# have been removed for the moment) |
255 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
256 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
257 |
|
<Tool name=rootinteractive version=%v> |
258 |
|
<info url="http://root.cern.ch/root/"></info> |
259 |
|
<lib name=Rint> |
260 |
|
<lib name=GQt> |
261 |
+ |
<lib name=Gui> |
262 |
|
<use name=qt> |
263 |
|
<use name=libjpg> |
264 |
|
<use name=libpng> |
265 |
< |
<use name=ROOT> |
265 |
> |
<use name=rootgpad> |
266 |
|
</Tool> |
267 |
|
EOF_TOOLFILE |
268 |
|
|
271 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
272 |
|
<Tool name=rootmath version=%v> |
273 |
|
<info url="http://root.cern.ch/root/"></info> |
274 |
< |
<lib name=MathCore> |
274 |
> |
<lib name=GenVector> |
275 |
|
<lib name=MathMore> |
276 |
|
<use name=ROOTCore> |
277 |
|
<use name=gsl> |
284 |
|
<Tool name=rootminuit version=%v> |
285 |
|
<info url="http://root.cern.ch/root/"></info> |
286 |
|
<lib name=Minuit> |
287 |
< |
<use name=ROOT> |
287 |
> |
<use name=rootgpad> |
288 |
|
</Tool> |
289 |
|
EOF_TOOLFILE |
290 |
|
|
294 |
|
<Tool name=rootminuit2 version=%v> |
295 |
|
<info url="http://root.cern.ch/root/"></info> |
296 |
|
<lib name=Minuit2> |
297 |
< |
<use name=ROOT> |
297 |
> |
<use name=rootgpad> |
298 |
|
</Tool> |
299 |
|
EOF_TOOLFILE |
300 |
|
|
323 |
|
<Tool name=roothtml version=%v> |
324 |
|
<info url="http://root.cern.ch/root/"></info> |
325 |
|
<lib name=Html> |
326 |
< |
<use name=ROOT> |
326 |
> |
<use name=rootgpad> |
327 |
|
</Tool> |
328 |
|
EOF_TOOLFILE |
329 |
|
|
333 |
|
<Tool name=rootroofit version=%v> |
334 |
|
<info url="http://root.cern.ch/root/"></info> |
335 |
|
<lib name=RooFit> |
336 |
+ |
<lib name=RooFitCore> |
337 |
|
<use name=ROOTMinuit> |
248 |
– |
<use name=ROOTHtml> |
338 |
|
</Tool> |
339 |
|
EOF_TOOLFILE |
340 |
|
|
344 |
|
<Tool name=rootmlp version=%v> |
345 |
|
<info url="http://root.cern.ch/root/"></info> |
346 |
|
<lib name=MLP> |
347 |
< |
<use name=ROOT> |
347 |
> |
<use name=RootGraphics> |
348 |
|
</Tool> |
349 |
|
EOF_TOOLFILE |
350 |
|
|
355 |
|
<info url="http://root.cern.ch/root/"></info> |
356 |
|
<lib name=TMVA> |
357 |
|
<use name=ROOTMLP> |
358 |
+ |
<use name=rootminuit> |
359 |
|
</Tool> |
360 |
|
EOF_TOOLFILE |
361 |
|
|
364 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
365 |
|
<Tool name=rootthread version=%v> |
366 |
|
<info url="http://root.cern.ch/root/"></info> |
277 |
– |
<lib name=Thread> |
367 |
|
<use name=ROOTCore> |
368 |
|
</Tool> |
369 |
|
EOF_TOOLFILE |
371 |
|
%post |
372 |
|
%{relocateConfig}etc/scram.d/root |
373 |
|
%{relocateConfig}etc/scram.d/rootcore |
374 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
375 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
376 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
377 |
|
%{relocateConfig}etc/scram.d/rootcintex |
378 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
379 |
|
%{relocateConfig}etc/scram.d/rootmath |