1 |
< |
### RPM lcg root 5.10.00b |
2 |
< |
# INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
# 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 |
4 |
< |
Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz |
5 |
< |
Requires: gccxml python qt gsl |
6 |
< |
Patch0: root |
1 |
> |
### RPM lcg root 5.18.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 |
14 |
> |
Patch7: root-5.18-00a-cintexquickfix2 |
15 |
> |
Patch8: root-5.18-00a-gendict-performance |
16 |
> |
Patch9: root-5.18-00a-TClass-classNameSize |
17 |
> |
Patch10: root-5.18-00a-TFile-stlStreamerInfo |
18 |
> |
Patch11: root-5.18-00-cintex_functional_mmap |
19 |
> |
Patch12: root-5.18-00a-TMVA-fSilent |
20 |
> |
Patch13: root-5.18.00a-TClass-custom-streamer |
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 "%cmsplatf" != "slc4onl_ia32_gcc346" |
28 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
29 |
> |
%else |
30 |
> |
%define skiplibtiff true |
31 |
> |
%endif |
32 |
> |
|
33 |
> |
%if "%cpu" == "amd64" |
34 |
> |
%define skiplibtiff true |
35 |
> |
%endif |
36 |
> |
|
37 |
> |
%if "%skiplibtiff" != "true" |
38 |
> |
Requires: libtiff |
39 |
> |
%endif |
40 |
> |
|
41 |
|
%prep |
42 |
|
%setup -n root |
43 |
< |
%patch0 |
43 |
> |
%patch0 -p1 |
44 |
> |
%patch1 -p1 |
45 |
> |
%patch2 -p0 |
46 |
> |
%patch3 -p1 |
47 |
> |
%patch4 -p0 |
48 |
> |
%patch5 -p0 |
49 |
> |
%patch6 -p0 |
50 |
> |
%patch7 -p0 |
51 |
> |
%patch8 -p1 |
52 |
> |
%patch9 -p0 |
53 |
> |
%patch10 -p0 |
54 |
> |
%patch11 -p0 |
55 |
> |
%patch12 -p1 |
56 |
> |
%patch13 -p1 |
57 |
|
|
58 |
|
%build |
59 |
|
mkdir -p %i |
60 |
< |
export ROOTSYS=%i |
60 |
> |
export ROOTSYS=%_builddir/root |
61 |
> |
|
62 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
63 |
> |
# Build without mysql, and use system qt. |
64 |
> |
# Also skip xrootd and odbc for online case: |
65 |
> |
|
66 |
> |
EXTRA_CONFIG_ARGS=" |
67 |
> |
--disable-mysql |
68 |
> |
--disable-xrootd |
69 |
> |
--disable-odbc |
70 |
> |
--enable-qt" |
71 |
> |
%else |
72 |
> |
EXTRA_CONFIG_ARGS=" |
73 |
> |
--with-xrootd=$XROOTD_ROOT |
74 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
75 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
76 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
77 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
78 |
> |
%endif |
79 |
> |
|
80 |
|
CONFIG_ARGS="--enable-table |
81 |
+ |
--disable-builtin-pcre |
82 |
+ |
--disable-builtin-freetype |
83 |
+ |
--disable-builtin-zlib |
84 |
|
--with-gccxml=${GCCXML_ROOT} |
85 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include |
85 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
86 |
|
--enable-explicitlink |
87 |
< |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
87 |
> |
--enable-qtgsi |
88 |
|
--enable-mathcore |
89 |
+ |
--enable-mathmore |
90 |
|
--enable-reflex |
91 |
|
--enable-cintex |
92 |
|
--enable-minuit2 |
93 |
< |
--enable-roofit" |
93 |
> |
--enable-roofit |
94 |
> |
--disable-ldap |
95 |
> |
--disable-krb5 |
96 |
> |
--with-gsl-incdir=${GSL_ROOT}/include |
97 |
> |
--with-gsl-libdir=${GSL_ROOT}/lib |
98 |
> |
--with-dcap-libdir=${DCAP_ROOT}/lib |
99 |
> |
--with-dcap-incdir=${DCAP_ROOT}/include |
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 |
106 |
|
|
107 |
< |
case $(uname)-$(uname -m) in |
107 |
> |
case $(uname)-$(uname -p) in |
108 |
|
Linux-x86_64) |
109 |
< |
./configure linuxx8664gcc $CONFIG_ARGS;; |
110 |
< |
Linux*) |
111 |
< |
./configure linux $CONFIG_ARGS;; |
112 |
< |
Darwin) |
113 |
< |
./configure macosx $CONFIG_ARGS;; |
109 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
110 |
> |
Linux-i*86) |
111 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
112 |
> |
Darwin*) |
113 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
114 |
> |
Linux-ppc64*) |
115 |
> |
./configure linux $CONFIG_ARGS --disable-rfio;; |
116 |
|
esac |
117 |
|
|
118 |
< |
make %makeprocesses |
119 |
< |
|
118 |
> |
make %makeprocesses |
119 |
> |
make cintdlls |
120 |
|
%install |
121 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
122 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
131 |
|
|
132 |
|
export ROOTSYS=%i |
133 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
134 |
< |
mkdir -p %i/lib/python |
135 |
< |
cp -r reflex/python/genreflex %i/lib/python |
134 |
> |
mkdir -p $ROOTSYS/lib/python |
135 |
> |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
136 |
> |
# |
137 |
> |
|
138 |
> |
# SCRAM ToolBox toolfile |
139 |
> |
mkdir -p %i/etc/scram.d |
140 |
> |
# rootcore toolfile |
141 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
142 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
143 |
> |
<Tool name=rootcore version=%v> |
144 |
> |
<info url="http://root.cern.ch/root/"></info> |
145 |
> |
<lib name=Cint> |
146 |
> |
<lib name=Core> |
147 |
> |
<lib name=RIO> |
148 |
> |
<lib name=Net> |
149 |
> |
<lib name=Tree> |
150 |
> |
<Client> |
151 |
> |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
152 |
> |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
153 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
154 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
155 |
> |
</Client> |
156 |
> |
<use name=sockets> |
157 |
> |
<use name=pcre> |
158 |
> |
<use name=zlib> |
159 |
> |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
160 |
> |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
161 |
> |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
162 |
> |
</Tool> |
163 |
> |
EOF_TOOLFILE |
164 |
> |
|
165 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
166 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
167 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
168 |
> |
<Tool name=root version=%v> |
169 |
> |
<info url="http://root.cern.ch/root/"></info> |
170 |
> |
<use name=rootphysics> |
171 |
> |
</Tool> |
172 |
> |
EOF_TOOLFILE |
173 |
> |
|
174 |
> |
# roothistmatrix toolfile |
175 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
176 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
177 |
> |
<Tool name=roothistmatrix version=%v> |
178 |
> |
<info url="http://root.cern.ch/root/"></info> |
179 |
> |
<lib name=Hist> |
180 |
> |
<lib name=Matrix> |
181 |
> |
<use name=ROOTCore> |
182 |
> |
</Tool> |
183 |
> |
EOF_TOOLFILE |
184 |
> |
|
185 |
> |
# rootphysics toolfile |
186 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
187 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
188 |
> |
<Tool name=rootphysics version=%v> |
189 |
> |
<info url="http://root.cern.ch/root/"></info> |
190 |
> |
<lib name=Physics> |
191 |
> |
<use name=roothistmatrix> |
192 |
> |
</Tool> |
193 |
> |
EOF_TOOLFILE |
194 |
> |
|
195 |
> |
# rootgraphics toolfile, identical to old "root" toolfile |
196 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
197 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
198 |
> |
<Tool name=rootgraphics version=%v> |
199 |
> |
<info url="http://root.cern.ch/root/"></info> |
200 |
> |
<lib name=TreePlayer> |
201 |
> |
<lib name=Gpad> |
202 |
> |
<lib name=Graf3d> |
203 |
> |
<lib name=Graf> |
204 |
> |
<lib name=Hist> |
205 |
> |
<lib name=Matrix> |
206 |
> |
<lib name=Physics> |
207 |
> |
<lib name=Postscript> |
208 |
> |
<use name=ROOTCore> |
209 |
> |
</Tool> |
210 |
> |
EOF_TOOLFILE |
211 |
> |
|
212 |
> |
# rootcintex toolfile |
213 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
214 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
215 |
> |
<Tool name=rootcintex version=%v> |
216 |
> |
<info url="http://root.cern.ch/root/"></info> |
217 |
> |
<lib name=Cintex> |
218 |
> |
<use name=ROOTRflx> |
219 |
> |
<use name=ROOTCore> |
220 |
> |
</Tool> |
221 |
> |
EOF_TOOLFILE |
222 |
> |
|
223 |
> |
# rootinteractive toolfile |
224 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
225 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
226 |
> |
<Tool name=rootinteractive version=%v> |
227 |
> |
<info url="http://root.cern.ch/root/"></info> |
228 |
> |
<lib name=Rint> |
229 |
> |
<lib name=GQt> |
230 |
> |
<use name=qt> |
231 |
> |
<use name=libjpg> |
232 |
> |
<use name=libpng> |
233 |
> |
<use name=ROOT> |
234 |
> |
</Tool> |
235 |
> |
EOF_TOOLFILE |
236 |
> |
|
237 |
> |
# rootmath toolfile |
238 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
239 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
240 |
> |
<Tool name=rootmath version=%v> |
241 |
> |
<info url="http://root.cern.ch/root/"></info> |
242 |
> |
<lib name=MathCore> |
243 |
> |
<lib name=MathMore> |
244 |
> |
<use name=ROOTCore> |
245 |
> |
<use name=gsl> |
246 |
> |
</Tool> |
247 |
> |
EOF_TOOLFILE |
248 |
> |
|
249 |
> |
# rootminuit toolfile |
250 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
251 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
252 |
> |
<Tool name=rootminuit version=%v> |
253 |
> |
<info url="http://root.cern.ch/root/"></info> |
254 |
> |
<lib name=Minuit> |
255 |
> |
<use name=ROOT> |
256 |
> |
</Tool> |
257 |
> |
EOF_TOOLFILE |
258 |
> |
|
259 |
> |
# rootminuit2 toolfile |
260 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
261 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
262 |
> |
<Tool name=rootminuit2 version=%v> |
263 |
> |
<info url="http://root.cern.ch/root/"></info> |
264 |
> |
<lib name=Minuit2> |
265 |
> |
<use name=ROOT> |
266 |
> |
</Tool> |
267 |
> |
EOF_TOOLFILE |
268 |
> |
|
269 |
> |
# rootrflx toolfile |
270 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
271 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
272 |
> |
<Tool name=rootrflx version=%v> |
273 |
> |
<info url="http://root.cern.ch/root/"></info> |
274 |
> |
<lib name=Reflex> |
275 |
> |
<Client> |
276 |
> |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
277 |
> |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
278 |
> |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
279 |
> |
</Client> |
280 |
> |
<use name=sockets> |
281 |
> |
<use name=gccxml> |
282 |
> |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
283 |
> |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
284 |
> |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
285 |
> |
</Tool> |
286 |
> |
EOF_TOOLFILE |
287 |
> |
|
288 |
> |
# roothtml toolfile |
289 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
290 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
291 |
> |
<Tool name=roothtml version=%v> |
292 |
> |
<info url="http://root.cern.ch/root/"></info> |
293 |
> |
<lib name=Html> |
294 |
> |
<use name=ROOT> |
295 |
> |
</Tool> |
296 |
> |
EOF_TOOLFILE |
297 |
> |
|
298 |
> |
# rootroofit toolfile |
299 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
300 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
301 |
> |
<Tool name=rootroofit version=%v> |
302 |
> |
<info url="http://root.cern.ch/root/"></info> |
303 |
> |
<lib name=RooFitCore> |
304 |
> |
<lib name=RooFit> |
305 |
> |
<use name=ROOTMinuit> |
306 |
> |
<use name=ROOTHtml> |
307 |
> |
</Tool> |
308 |
> |
EOF_TOOLFILE |
309 |
> |
|
310 |
> |
# rootmlp toolfile |
311 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
312 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
313 |
> |
<Tool name=rootmlp version=%v> |
314 |
> |
<info url="http://root.cern.ch/root/"></info> |
315 |
> |
<lib name=MLP> |
316 |
> |
<use name=ROOT> |
317 |
> |
</Tool> |
318 |
> |
EOF_TOOLFILE |
319 |
> |
|
320 |
> |
# roottmva toolfile |
321 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
322 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
323 |
> |
<Tool name=roottmva version=%v> |
324 |
> |
<info url="http://root.cern.ch/root/"></info> |
325 |
> |
<lib name=TMVA> |
326 |
> |
<use name=ROOTMLP> |
327 |
> |
</Tool> |
328 |
> |
EOF_TOOLFILE |
329 |
> |
|
330 |
> |
# rootthread toolfile |
331 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
332 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
333 |
> |
<Tool name=rootthread version=%v> |
334 |
> |
<info url="http://root.cern.ch/root/"></info> |
335 |
> |
<lib name=Thread> |
336 |
> |
<use name=ROOTCore> |
337 |
> |
</Tool> |
338 |
> |
EOF_TOOLFILE |
339 |
> |
|
340 |
> |
%post |
341 |
> |
%{relocateConfig}etc/scram.d/root |
342 |
> |
%{relocateConfig}etc/scram.d/rootcore |
343 |
> |
%{relocateConfig}etc/scram.d/roothistmatrix |
344 |
> |
%{relocateConfig}etc/scram.d/rootphysics |
345 |
> |
%{relocateConfig}etc/scram.d/rootgraphics |
346 |
> |
%{relocateConfig}etc/scram.d/rootcintex |
347 |
> |
%{relocateConfig}etc/scram.d/rootinteractive |
348 |
> |
%{relocateConfig}etc/scram.d/rootmath |
349 |
> |
%{relocateConfig}etc/scram.d/rootminuit |
350 |
> |
%{relocateConfig}etc/scram.d/rootminuit2 |
351 |
> |
%{relocateConfig}etc/scram.d/rootrflx |
352 |
> |
%{relocateConfig}etc/scram.d/roothtml |
353 |
> |
%{relocateConfig}etc/scram.d/rootroofit |
354 |
> |
%{relocateConfig}etc/scram.d/rootmlp |
355 |
> |
%{relocateConfig}etc/scram.d/roottmva |
356 |
> |
%{relocateConfig}etc/scram.d/rootthread |