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 |
|
|
24 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
25 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
26 |
|
|
27 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
28 |
|
|
29 |
< |
%if "%{?online_release:set}" != "set" |
30 |
< |
Requires: qt openssl mysql libpng zlib oracle libungif |
29 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
30 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
31 |
|
%else |
32 |
|
%define skiplibtiff true |
33 |
|
%endif |
42 |
|
|
43 |
|
%prep |
44 |
|
%setup -n root |
45 |
< |
%patch -p0 |
46 |
< |
%patch1 -p2 |
47 |
< |
%patch2 -p2 |
45 |
> |
%patch0 -p1 |
46 |
> |
%patch1 -p1 |
47 |
> |
%patch2 -p1 |
48 |
|
%patch3 -p1 |
49 |
< |
%patch4 -p0 |
49 |
> |
%patch4 -p1 |
50 |
|
%patch5 -p1 |
51 |
+ |
%patch6 -p1 |
52 |
+ |
%patch7 -p0 |
53 |
+ |
%patch8 -p0 |
54 |
+ |
%patch9 -p1 |
55 |
+ |
%patch10 -p1 |
56 |
+ |
%patch11 -p1 |
57 |
+ |
%patch12 -p1 |
58 |
+ |
%patch13 -p1 |
59 |
+ |
%patch14 -p0 |
60 |
+ |
%patch15 -p0 |
61 |
+ |
|
62 |
|
%build |
63 |
|
mkdir -p %i |
64 |
|
export ROOTSYS=%_builddir/root |
65 |
|
|
66 |
< |
%if "%{?online_release:set}" != "set" |
66 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
67 |
> |
# Build without mysql, and use system qt. |
68 |
> |
# Also skip xrootd and odbc for online case: |
69 |
> |
|
70 |
|
EXTRA_CONFIG_ARGS=" |
71 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
72 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
73 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
74 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
71 |
> |
--disable-mysql |
72 |
> |
--disable-xrootd |
73 |
> |
--disable-odbc |
74 |
> |
--enable-qt" |
75 |
|
%else |
76 |
< |
ORACLE_ROOT="/opt/xdaq" |
77 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
76 |
> |
EXTRA_CONFIG_ARGS=" |
77 |
> |
--with-xrootd=$XROOTD_ROOT |
78 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
79 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
80 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
81 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
82 |
|
%endif |
83 |
|
|
84 |
< |
CONFIG_ARGS="--enable-table |
84 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
85 |
> |
--enable-table |
86 |
|
--disable-builtin-pcre |
87 |
|
--disable-builtin-freetype |
88 |
|
--disable-builtin-zlib |
89 |
|
--with-gccxml=${GCCXML_ROOT} |
90 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
90 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
91 |
|
--enable-explicitlink |
92 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
67 |
– |
--enable-mathcore |
93 |
|
--enable-mathmore |
94 |
|
--enable-reflex |
95 |
|
--enable-cintex |
104 |
|
--disable-pgsql |
105 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
106 |
|
|
107 |
+ |
#case %gccver in |
108 |
+ |
# 4.*) |
109 |
+ |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
110 |
+ |
# ;; |
111 |
+ |
#esac |
112 |
+ |
|
113 |
|
case $(uname)-$(uname -p) in |
114 |
|
Linux-x86_64) |
115 |
< |
./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;; |
115 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
116 |
|
Linux-i*86) |
117 |
< |
./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;; |
117 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
118 |
|
Darwin*) |
119 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
120 |
|
Linux-ppc64*) |
121 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
122 |
|
esac |
123 |
|
|
124 |
< |
make %makeprocesses |
124 |
> |
case %cmsplatf in |
125 |
> |
osx*) |
126 |
> |
makeopts= |
127 |
> |
;; |
128 |
> |
*) |
129 |
> |
makeopts="%makeprocesses" |
130 |
> |
;; |
131 |
> |
esac |
132 |
> |
|
133 |
> |
make $makeopts |
134 |
|
make cintdlls |
135 |
+ |
|
136 |
|
%install |
137 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
138 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
148 |
|
export ROOTSYS=%i |
149 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
150 |
|
mkdir -p $ROOTSYS/lib/python |
151 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
151 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
152 |
|
# |
153 |
|
|
154 |
|
# SCRAM ToolBox toolfile |
158 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
159 |
|
<Tool name=rootcore version=%v> |
160 |
|
<info url="http://root.cern.ch/root/"></info> |
120 |
– |
<lib name=Cint> |
121 |
– |
<lib name=Core> |
161 |
|
<lib name=Tree> |
162 |
+ |
<lib name=Net> |
163 |
+ |
<lib name=Thread> |
164 |
+ |
<lib name=MathCore> |
165 |
+ |
<lib name=RIO> |
166 |
+ |
<lib name=Core> |
167 |
+ |
<lib name=Cint> |
168 |
|
<Client> |
169 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
170 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
180 |
|
</Tool> |
181 |
|
EOF_TOOLFILE |
182 |
|
|
183 |
< |
# root toolfile |
183 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
184 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
185 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
186 |
|
<Tool name=root version=%v> |
187 |
|
<info url="http://root.cern.ch/root/"></info> |
188 |
< |
<lib name=TreePlayer> |
188 |
> |
<use name=rootphysics> |
189 |
> |
</Tool> |
190 |
> |
EOF_TOOLFILE |
191 |
> |
|
192 |
> |
# roothistmatrix toolfile |
193 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
194 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
195 |
> |
<Tool name=roothistmatrix version=%v> |
196 |
> |
<info url="http://root.cern.ch/root/"></info> |
197 |
|
<lib name=Gpad> |
145 |
– |
<lib name=Graf3d> |
198 |
|
<lib name=Graf> |
199 |
|
<lib name=Hist> |
200 |
|
<lib name=Matrix> |
201 |
+ |
<use name=ROOTCore> |
202 |
+ |
</Tool> |
203 |
+ |
EOF_TOOLFILE |
204 |
+ |
|
205 |
+ |
# rootphysics toolfile |
206 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
207 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
208 |
+ |
<Tool name=rootphysics version=%v> |
209 |
+ |
<info url="http://root.cern.ch/root/"></info> |
210 |
|
<lib name=Physics> |
211 |
+ |
<use name=roothistmatrix> |
212 |
+ |
</Tool> |
213 |
+ |
EOF_TOOLFILE |
214 |
+ |
|
215 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
216 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
217 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
218 |
+ |
<Tool name=rootgraphics version=%v> |
219 |
+ |
<info url="http://root.cern.ch/root/"></info> |
220 |
+ |
<lib name=TreePlayer> |
221 |
+ |
<lib name=Graf3d> |
222 |
|
<lib name=Postscript> |
223 |
< |
<use name=ROOTCore> |
223 |
> |
<use name=ROOTPhysics> |
224 |
|
</Tool> |
225 |
|
EOF_TOOLFILE |
226 |
|
|
235 |
|
</Tool> |
236 |
|
EOF_TOOLFILE |
237 |
|
|
238 |
< |
# rootinteractive toolfile |
238 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
239 |
> |
# have been removed for the moment) |
240 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
241 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
242 |
|
<Tool name=rootinteractive version=%v> |
243 |
|
<info url="http://root.cern.ch/root/"></info> |
244 |
|
<lib name=Rint> |
245 |
|
<lib name=GQt> |
246 |
+ |
<lib name=Gui> |
247 |
|
<use name=qt> |
248 |
|
<use name=libjpg> |
249 |
|
<use name=libpng> |
256 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
257 |
|
<Tool name=rootmath version=%v> |
258 |
|
<info url="http://root.cern.ch/root/"></info> |
259 |
< |
<lib name=MathCore> |
259 |
> |
<lib name=GenVector> |
260 |
|
<lib name=MathMore> |
261 |
|
<use name=ROOTCore> |
262 |
|
<use name=gsl> |
308 |
|
<Tool name=roothtml version=%v> |
309 |
|
<info url="http://root.cern.ch/root/"></info> |
310 |
|
<lib name=Html> |
311 |
< |
<use name=ROOT> |
311 |
> |
<use name=RootHistMatrix> |
312 |
|
</Tool> |
313 |
|
EOF_TOOLFILE |
314 |
|
|
318 |
|
<Tool name=rootroofit version=%v> |
319 |
|
<info url="http://root.cern.ch/root/"></info> |
320 |
|
<lib name=RooFit> |
321 |
+ |
<lib name=RooFitCore> |
322 |
|
<use name=ROOTMinuit> |
323 |
|
<use name=ROOTHtml> |
324 |
|
</Tool> |
330 |
|
<Tool name=rootmlp version=%v> |
331 |
|
<info url="http://root.cern.ch/root/"></info> |
332 |
|
<lib name=MLP> |
333 |
< |
<use name=ROOT> |
333 |
> |
<use name=RootGraphics> |
334 |
|
</Tool> |
335 |
|
EOF_TOOLFILE |
336 |
|
|
349 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
350 |
|
<Tool name=rootthread version=%v> |
351 |
|
<info url="http://root.cern.ch/root/"></info> |
277 |
– |
<lib name=Thread> |
352 |
|
<use name=ROOTCore> |
353 |
|
</Tool> |
354 |
|
EOF_TOOLFILE |
356 |
|
%post |
357 |
|
%{relocateConfig}etc/scram.d/root |
358 |
|
%{relocateConfig}etc/scram.d/rootcore |
359 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
360 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
361 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
362 |
|
%{relocateConfig}etc/scram.d/rootcintex |
363 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
364 |
|
%{relocateConfig}etc/scram.d/rootmath |