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