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