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 |
|
|
18 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
19 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
20 |
|
|
21 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
22 |
|
|
23 |
< |
%if "%{?online_release:set}" != "set" |
24 |
< |
Requires: qt openssl mysql libpng zlib oracle libungif |
23 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
24 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
25 |
|
%else |
26 |
|
%define skiplibtiff true |
27 |
|
%endif |
36 |
|
|
37 |
|
%prep |
38 |
|
%setup -n root |
39 |
< |
%patch -p0 |
40 |
< |
%patch1 -p2 |
41 |
< |
%patch2 -p2 |
39 |
> |
%patch0 -p1 |
40 |
> |
%patch1 -p1 |
41 |
> |
%patch2 -p1 |
42 |
|
%patch3 -p1 |
43 |
< |
%patch4 -p0 |
43 |
> |
%patch4 -p1 |
44 |
|
%patch5 -p1 |
45 |
+ |
%patch6 -p1 |
46 |
+ |
%patch7 -p0 |
47 |
+ |
%patch8 -p0 |
48 |
+ |
%patch9 -p1 |
49 |
+ |
|
50 |
|
%build |
51 |
|
mkdir -p %i |
52 |
|
export ROOTSYS=%_builddir/root |
53 |
|
|
54 |
< |
%if "%{?online_release:set}" != "set" |
54 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
55 |
> |
# Build without mysql, and use system qt. |
56 |
> |
# Also skip xrootd and odbc for online case: |
57 |
> |
|
58 |
|
EXTRA_CONFIG_ARGS=" |
59 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
60 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
61 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
62 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
59 |
> |
--disable-mysql |
60 |
> |
--disable-xrootd |
61 |
> |
--disable-odbc |
62 |
> |
--enable-qt" |
63 |
|
%else |
64 |
< |
ORACLE_ROOT="/opt/xdaq" |
65 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
64 |
> |
EXTRA_CONFIG_ARGS=" |
65 |
> |
--with-xrootd=$XROOTD_ROOT |
66 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
67 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
68 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
69 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
70 |
|
%endif |
71 |
|
|
72 |
< |
CONFIG_ARGS="--enable-table |
72 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
73 |
> |
--enable-table |
74 |
|
--disable-builtin-pcre |
75 |
|
--disable-builtin-freetype |
76 |
|
--disable-builtin-zlib |
77 |
|
--with-gccxml=${GCCXML_ROOT} |
78 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
78 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
79 |
|
--enable-explicitlink |
80 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
67 |
– |
--enable-mathcore |
81 |
|
--enable-mathmore |
82 |
|
--enable-reflex |
83 |
|
--enable-cintex |
92 |
|
--disable-pgsql |
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 -p) in |
102 |
|
Linux-x86_64) |
103 |
< |
./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;; |
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 --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;; |
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 --disable-rfio;; |
108 |
|
Linux-ppc64*) |
109 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
110 |
|
esac |
111 |
|
|
112 |
< |
make %makeprocesses |
112 |
> |
case %cmsplatf in |
113 |
> |
osx*) |
114 |
> |
makeopts= |
115 |
> |
;; |
116 |
> |
*) |
117 |
> |
makeopts="%makeprocesses" |
118 |
> |
;; |
119 |
> |
esac |
120 |
> |
|
121 |
> |
make $makeopts |
122 |
|
make cintdlls |
123 |
+ |
|
124 |
|
%install |
125 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
126 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
136 |
|
export ROOTSYS=%i |
137 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
138 |
|
mkdir -p $ROOTSYS/lib/python |
139 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
139 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
140 |
|
# |
141 |
|
|
142 |
|
# SCRAM ToolBox toolfile |
146 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
147 |
|
<Tool name=rootcore version=%v> |
148 |
|
<info url="http://root.cern.ch/root/"></info> |
120 |
– |
<lib name=Cint> |
121 |
– |
<lib name=Core> |
149 |
|
<lib name=Tree> |
150 |
+ |
<lib name=Net> |
151 |
+ |
<lib name=Thread> |
152 |
+ |
<lib name=MathCore> |
153 |
+ |
<lib name=RIO> |
154 |
+ |
<lib name=Core> |
155 |
+ |
<lib name=Cint> |
156 |
|
<Client> |
157 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
158 |
|
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
168 |
|
</Tool> |
169 |
|
EOF_TOOLFILE |
170 |
|
|
171 |
< |
# root toolfile |
171 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
172 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
173 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
174 |
|
<Tool name=root version=%v> |
175 |
|
<info url="http://root.cern.ch/root/"></info> |
176 |
< |
<lib name=TreePlayer> |
176 |
> |
<use name=rootphysics> |
177 |
> |
</Tool> |
178 |
> |
EOF_TOOLFILE |
179 |
> |
|
180 |
> |
# roothistmatrix toolfile |
181 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
182 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
183 |
> |
<Tool name=roothistmatrix version=%v> |
184 |
> |
<info url="http://root.cern.ch/root/"></info> |
185 |
|
<lib name=Gpad> |
145 |
– |
<lib name=Graf3d> |
186 |
|
<lib name=Graf> |
187 |
|
<lib name=Hist> |
188 |
|
<lib name=Matrix> |
189 |
+ |
<use name=ROOTCore> |
190 |
+ |
</Tool> |
191 |
+ |
EOF_TOOLFILE |
192 |
+ |
|
193 |
+ |
# rootphysics toolfile |
194 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
195 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
196 |
+ |
<Tool name=rootphysics version=%v> |
197 |
+ |
<info url="http://root.cern.ch/root/"></info> |
198 |
|
<lib name=Physics> |
199 |
+ |
<use name=roothistmatrix> |
200 |
+ |
</Tool> |
201 |
+ |
EOF_TOOLFILE |
202 |
+ |
|
203 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
204 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
205 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
206 |
+ |
<Tool name=rootgraphics version=%v> |
207 |
+ |
<info url="http://root.cern.ch/root/"></info> |
208 |
+ |
<lib name=TreePlayer> |
209 |
+ |
<lib name=Graf3d> |
210 |
|
<lib name=Postscript> |
211 |
< |
<use name=ROOTCore> |
211 |
> |
<use name=ROOTPhysics> |
212 |
|
</Tool> |
213 |
|
EOF_TOOLFILE |
214 |
|
|
223 |
|
</Tool> |
224 |
|
EOF_TOOLFILE |
225 |
|
|
226 |
< |
# rootinteractive toolfile |
226 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
227 |
> |
# have been removed for the moment) |
228 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
229 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
230 |
|
<Tool name=rootinteractive version=%v> |
231 |
|
<info url="http://root.cern.ch/root/"></info> |
232 |
|
<lib name=Rint> |
233 |
|
<lib name=GQt> |
234 |
+ |
<lib name=Gui> |
235 |
|
<use name=qt> |
236 |
|
<use name=libjpg> |
237 |
|
<use name=libpng> |
244 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
245 |
|
<Tool name=rootmath version=%v> |
246 |
|
<info url="http://root.cern.ch/root/"></info> |
247 |
< |
<lib name=MathCore> |
247 |
> |
<lib name=GenVector> |
248 |
|
<lib name=MathMore> |
249 |
|
<use name=ROOTCore> |
250 |
|
<use name=gsl> |
296 |
|
<Tool name=roothtml version=%v> |
297 |
|
<info url="http://root.cern.ch/root/"></info> |
298 |
|
<lib name=Html> |
299 |
< |
<use name=ROOT> |
299 |
> |
<use name=RootHistMatrix> |
300 |
|
</Tool> |
301 |
|
EOF_TOOLFILE |
302 |
|
|
306 |
|
<Tool name=rootroofit version=%v> |
307 |
|
<info url="http://root.cern.ch/root/"></info> |
308 |
|
<lib name=RooFit> |
309 |
+ |
<lib name=RooFitCore> |
310 |
|
<use name=ROOTMinuit> |
311 |
|
<use name=ROOTHtml> |
312 |
|
</Tool> |
318 |
|
<Tool name=rootmlp version=%v> |
319 |
|
<info url="http://root.cern.ch/root/"></info> |
320 |
|
<lib name=MLP> |
321 |
< |
<use name=ROOT> |
321 |
> |
<use name=RootGraphics> |
322 |
|
</Tool> |
323 |
|
EOF_TOOLFILE |
324 |
|
|
337 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
338 |
|
<Tool name=rootthread version=%v> |
339 |
|
<info url="http://root.cern.ch/root/"></info> |
277 |
– |
<lib name=Thread> |
340 |
|
<use name=ROOTCore> |
341 |
|
</Tool> |
342 |
|
EOF_TOOLFILE |
344 |
|
%post |
345 |
|
%{relocateConfig}etc/scram.d/root |
346 |
|
%{relocateConfig}etc/scram.d/rootcore |
347 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
348 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
349 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
350 |
|
%{relocateConfig}etc/scram.d/rootcintex |
351 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
352 |
|
%{relocateConfig}etc/scram.d/rootmath |