1 |
< |
### RPM lcg root 5.18.00a-200onl2 |
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.18-00a-CINT-maxlongline |
9 |
< |
Patch2: root_5.18-00-CINTFunctional |
10 |
< |
Patch3: root-5.18-00a-TBufferXML |
11 |
< |
Patch4: root-5.18-00a-Cintex |
12 |
< |
Patch5: root-5.18-00a-Cintex2 |
13 |
< |
Patch6: root-5.18-00a-TBufferFile |
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 |
|
|
22 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
23 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
24 |
|
|
25 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
26 |
|
|
27 |
< |
%if "%{?online_release:set}" != "set" |
27 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
28 |
|
Requires: qt openssl mysql libpng zlib libungif xrootd |
29 |
|
%else |
30 |
|
%define skiplibtiff true |
42 |
|
%setup -n root |
43 |
|
%patch0 -p1 |
44 |
|
%patch1 -p1 |
45 |
< |
%patch2 -p0 |
45 |
> |
%patch2 -p1 |
46 |
|
%patch3 -p1 |
47 |
< |
%patch4 -p0 |
48 |
< |
%patch5 -p0 |
49 |
< |
%patch6 -p0 |
47 |
> |
%patch4 -p1 |
48 |
> |
%patch5 -p1 |
49 |
> |
%patch6 -p1 |
50 |
> |
%patch7 -p0 |
51 |
> |
%patch8 -p0 |
52 |
> |
%patch9 -p1 |
53 |
> |
%patch10 -p1 |
54 |
> |
%patch11 -p1 |
55 |
> |
%patch12 -p1 |
56 |
> |
%patch13 -p1 |
57 |
|
|
58 |
|
%build |
59 |
|
mkdir -p %i |
60 |
|
export ROOTSYS=%_builddir/root |
61 |
|
|
62 |
< |
%if "%{?online_release:set}" == "set" |
62 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
63 |
|
# Build without mysql, and use system qt. |
64 |
|
# Also skip xrootd and odbc for online case: |
65 |
|
|
77 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
78 |
|
%endif |
79 |
|
|
80 |
< |
CONFIG_ARGS="--enable-table |
80 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
81 |
> |
--enable-table |
82 |
|
--disable-builtin-pcre |
83 |
|
--disable-builtin-freetype |
84 |
|
--disable-builtin-zlib |
86 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
87 |
|
--enable-explicitlink |
88 |
|
--enable-qtgsi |
74 |
– |
--enable-mathcore |
89 |
|
--enable-mathmore |
90 |
|
--enable-reflex |
91 |
|
--enable-cintex |
100 |
|
--disable-pgsql |
101 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
102 |
|
|
103 |
< |
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345")) |
104 |
< |
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
105 |
< |
%endif |
103 |
> |
#case %gccver in |
104 |
> |
# 4.*) |
105 |
> |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
106 |
> |
# ;; |
107 |
> |
#esac |
108 |
|
|
109 |
|
case $(uname)-$(uname -p) in |
110 |
|
Linux-x86_64) |
111 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
111 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
112 |
|
Linux-i*86) |
113 |
|
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
114 |
|
Darwin*) |
117 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
118 |
|
esac |
119 |
|
|
120 |
< |
make %makeprocesses |
120 |
> |
case %cmsplatf in |
121 |
> |
osx*) |
122 |
> |
makeopts= |
123 |
> |
;; |
124 |
> |
*) |
125 |
> |
makeopts="%makeprocesses" |
126 |
> |
;; |
127 |
> |
esac |
128 |
> |
|
129 |
> |
make $makeopts |
130 |
|
make cintdlls |
131 |
+ |
|
132 |
|
%install |
133 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
134 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
144 |
|
export ROOTSYS=%i |
145 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
146 |
|
mkdir -p $ROOTSYS/lib/python |
147 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
147 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
148 |
|
# |
149 |
|
|
150 |
|
# SCRAM ToolBox toolfile |
154 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
155 |
|
<Tool name=rootcore version=%v> |
156 |
|
<info url="http://root.cern.ch/root/"></info> |
131 |
– |
<lib name=Cint> |
132 |
– |
<lib name=Core> |
133 |
– |
<lib name=RIO> |
134 |
– |
<lib name=Net> |
157 |
|
<lib name=Tree> |
158 |
+ |
<lib name=Net> |
159 |
+ |
<lib name=Thread> |
160 |
+ |
<lib name=MathCore> |
161 |
+ |
<lib name=RIO> |
162 |
+ |
<lib name=Core> |
163 |
+ |
<lib name=Cint> |
164 |
|
<Client> |
165 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
166 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
176 |
|
</Tool> |
177 |
|
EOF_TOOLFILE |
178 |
|
|
179 |
< |
# root toolfile |
179 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
180 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
181 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
182 |
|
<Tool name=root version=%v> |
183 |
|
<info url="http://root.cern.ch/root/"></info> |
184 |
< |
<lib name=TreePlayer> |
184 |
> |
<use name=rootphysics> |
185 |
> |
</Tool> |
186 |
> |
EOF_TOOLFILE |
187 |
> |
|
188 |
> |
# roothistmatrix toolfile |
189 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
190 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
191 |
> |
<Tool name=roothistmatrix version=%v> |
192 |
> |
<info url="http://root.cern.ch/root/"></info> |
193 |
|
<lib name=Gpad> |
158 |
– |
<lib name=Graf3d> |
194 |
|
<lib name=Graf> |
195 |
|
<lib name=Hist> |
196 |
|
<lib name=Matrix> |
197 |
+ |
<use name=ROOTCore> |
198 |
+ |
</Tool> |
199 |
+ |
EOF_TOOLFILE |
200 |
+ |
|
201 |
+ |
# rootphysics toolfile |
202 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
203 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
204 |
+ |
<Tool name=rootphysics version=%v> |
205 |
+ |
<info url="http://root.cern.ch/root/"></info> |
206 |
|
<lib name=Physics> |
207 |
+ |
<use name=roothistmatrix> |
208 |
+ |
</Tool> |
209 |
+ |
EOF_TOOLFILE |
210 |
+ |
|
211 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
212 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
213 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
214 |
+ |
<Tool name=rootgraphics version=%v> |
215 |
+ |
<info url="http://root.cern.ch/root/"></info> |
216 |
+ |
<lib name=TreePlayer> |
217 |
+ |
<lib name=Graf3d> |
218 |
|
<lib name=Postscript> |
219 |
< |
<use name=ROOTCore> |
219 |
> |
<use name=ROOTPhysics> |
220 |
|
</Tool> |
221 |
|
EOF_TOOLFILE |
222 |
|
|
231 |
|
</Tool> |
232 |
|
EOF_TOOLFILE |
233 |
|
|
234 |
< |
# rootinteractive toolfile |
234 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
235 |
> |
# have been removed for the moment) |
236 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
237 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
238 |
|
<Tool name=rootinteractive version=%v> |
239 |
|
<info url="http://root.cern.ch/root/"></info> |
240 |
|
<lib name=Rint> |
241 |
|
<lib name=GQt> |
242 |
+ |
<lib name=Gui> |
243 |
|
<use name=qt> |
244 |
|
<use name=libjpg> |
245 |
|
<use name=libpng> |
252 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
253 |
|
<Tool name=rootmath version=%v> |
254 |
|
<info url="http://root.cern.ch/root/"></info> |
255 |
< |
<lib name=MathCore> |
255 |
> |
<lib name=GenVector> |
256 |
|
<lib name=MathMore> |
257 |
|
<use name=ROOTCore> |
258 |
|
<use name=gsl> |
304 |
|
<Tool name=roothtml version=%v> |
305 |
|
<info url="http://root.cern.ch/root/"></info> |
306 |
|
<lib name=Html> |
307 |
< |
<use name=ROOT> |
307 |
> |
<use name=RootHistMatrix> |
308 |
|
</Tool> |
309 |
|
EOF_TOOLFILE |
310 |
|
|
313 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
314 |
|
<Tool name=rootroofit version=%v> |
315 |
|
<info url="http://root.cern.ch/root/"></info> |
259 |
– |
<lib name=RooFitCore> |
316 |
|
<lib name=RooFit> |
317 |
+ |
<lib name=RooFitCore> |
318 |
|
<use name=ROOTMinuit> |
319 |
|
<use name=ROOTHtml> |
320 |
|
</Tool> |
326 |
|
<Tool name=rootmlp version=%v> |
327 |
|
<info url="http://root.cern.ch/root/"></info> |
328 |
|
<lib name=MLP> |
329 |
< |
<use name=ROOT> |
329 |
> |
<use name=RootGraphics> |
330 |
|
</Tool> |
331 |
|
EOF_TOOLFILE |
332 |
|
|
345 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
346 |
|
<Tool name=rootthread version=%v> |
347 |
|
<info url="http://root.cern.ch/root/"></info> |
291 |
– |
<lib name=Thread> |
348 |
|
<use name=ROOTCore> |
349 |
|
</Tool> |
350 |
|
EOF_TOOLFILE |
352 |
|
%post |
353 |
|
%{relocateConfig}etc/scram.d/root |
354 |
|
%{relocateConfig}etc/scram.d/rootcore |
355 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
356 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
357 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
358 |
|
%{relocateConfig}etc/scram.d/rootcintex |
359 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
360 |
|
%{relocateConfig}etc/scram.d/rootmath |