1 |
< |
### RPM lcg root 5.14.00g-CMS11 |
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 |
13 |
< |
Patch6: root_Reflex_Cintex |
14 |
< |
Patch7: root_CallFunc |
15 |
< |
Patch8: root-proofd |
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 |
|
|
13 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
14 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
19 |
– |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
15 |
|
|
16 |
< |
%if "%cpu" != "amd64" |
16 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
17 |
> |
|
18 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
19 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
20 |
> |
%else |
21 |
> |
%define skiplibtiff true |
22 |
> |
%endif |
23 |
> |
|
24 |
> |
%if "%cpu" == "amd64" |
25 |
> |
%define skiplibtiff true |
26 |
> |
%endif |
27 |
> |
|
28 |
> |
%if "%skiplibtiff" != "true" |
29 |
|
Requires: libtiff |
30 |
|
%endif |
31 |
|
|
32 |
|
%prep |
33 |
|
%setup -n root |
34 |
< |
%patch -p0 |
35 |
< |
%patch1 -p2 |
36 |
< |
%patch2 -p2 |
34 |
> |
%patch0 -p1 |
35 |
> |
%patch1 -p1 |
36 |
> |
%patch2 -p1 |
37 |
|
%patch3 -p1 |
38 |
< |
%patch4 -p0 |
32 |
< |
%patch5 -p1 |
33 |
< |
%patch6 -p0 |
34 |
< |
%patch7 -p0 |
35 |
< |
%patch8 -p1 |
38 |
> |
%patch4 -p1 |
39 |
|
|
40 |
|
%build |
41 |
|
mkdir -p %i |
42 |
|
export ROOTSYS=%_builddir/root |
43 |
< |
CONFIG_ARGS="--enable-table |
43 |
> |
|
44 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
45 |
> |
# Build without mysql, and use system qt. |
46 |
> |
# Also skip xrootd and odbc for online case: |
47 |
> |
|
48 |
> |
EXTRA_CONFIG_ARGS=" |
49 |
> |
--disable-mysql |
50 |
> |
--disable-xrootd |
51 |
> |
--disable-odbc |
52 |
> |
--enable-qt" |
53 |
> |
%else |
54 |
> |
EXTRA_CONFIG_ARGS=" |
55 |
> |
--with-xrootd=$XROOTD_ROOT |
56 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
57 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
58 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
59 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
60 |
> |
%endif |
61 |
> |
|
62 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
63 |
> |
--enable-table |
64 |
|
--disable-builtin-pcre |
65 |
|
--disable-builtin-freetype |
66 |
|
--disable-builtin-zlib |
67 |
|
--with-gccxml=${GCCXML_ROOT} |
68 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
46 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
69 |
|
--enable-explicitlink |
70 |
|
--enable-qtgsi |
49 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
50 |
– |
--enable-mathcore |
71 |
|
--enable-mathmore |
72 |
|
--enable-reflex |
73 |
|
--enable-cintex |
75 |
|
--enable-roofit |
76 |
|
--disable-ldap |
77 |
|
--disable-krb5 |
58 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
59 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
78 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
79 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
80 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
81 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
64 |
– |
--with-xrootd=$XROOTD_ROOT |
82 |
|
--disable-pgsql |
83 |
< |
--disable-xml" |
83 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
84 |
> |
|
85 |
> |
#case %gccver in |
86 |
> |
# 4.*) |
87 |
> |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
88 |
> |
# ;; |
89 |
> |
#esac |
90 |
|
|
91 |
|
case $(uname)-$(uname -p) in |
92 |
|
Linux-x86_64) |
93 |
< |
./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;; |
93 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
94 |
|
Linux-i*86) |
95 |
< |
./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;; |
95 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
96 |
|
Darwin*) |
97 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
98 |
|
Linux-ppc64*) |
99 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
100 |
|
esac |
101 |
|
|
102 |
< |
make %makeprocesses |
102 |
> |
case %cmsplatf in |
103 |
> |
osx*) |
104 |
> |
makeopts= |
105 |
> |
;; |
106 |
> |
*) |
107 |
> |
makeopts="%makeprocesses" |
108 |
> |
;; |
109 |
> |
esac |
110 |
> |
|
111 |
> |
make $makeopts |
112 |
|
make cintdlls |
113 |
+ |
|
114 |
|
%install |
115 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
116 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
126 |
|
export ROOTSYS=%i |
127 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
128 |
|
mkdir -p $ROOTSYS/lib/python |
129 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
129 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
130 |
|
# |
131 |
|
|
132 |
|
# SCRAM ToolBox toolfile |
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> |
156 |
|
</Tool> |
157 |
|
EOF_TOOLFILE |
158 |
|
|
159 |
< |
# root toolfile |
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> |
214 |
|
</Tool> |
215 |
|
EOF_TOOLFILE |
216 |
|
|
217 |
< |
# rootinteractive toolfile |
217 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
218 |
> |
# have been removed for the moment) |
219 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
220 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
221 |
|
<Tool name=rootinteractive version=%v> |
222 |
|
<info url="http://root.cern.ch/root/"></info> |
223 |
|
<lib name=Rint> |
224 |
+ |
<use name=libjpg> |
225 |
+ |
<use name=libpng> |
226 |
+ |
<use name=ROOT> |
227 |
+ |
</Tool> |
228 |
+ |
EOF_TOOLFILE |
229 |
+ |
|
230 |
+ |
# rootinteractive2 toolfile (temporary, to allow access to Qt4) |
231 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2 |
232 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
233 |
+ |
<Tool name=rootinteractive2 version=%v> |
234 |
+ |
<info url="http://root.cern.ch/root/"></info> |
235 |
+ |
<lib name=Rint> |
236 |
|
<lib name=GQt> |
237 |
|
<use name=qt> |
238 |
|
<use name=libjpg> |
241 |
|
</Tool> |
242 |
|
EOF_TOOLFILE |
243 |
|
|
244 |
+ |
|
245 |
|
# rootmath toolfile |
246 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
247 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
249 |
|
<info url="http://root.cern.ch/root/"></info> |
250 |
|
<lib name=MathCore> |
251 |
|
<lib name=MathMore> |
252 |
+ |
<lib name=GenVector> |
253 |
|
<use name=ROOTCore> |
254 |
|
<use name=gsl> |
255 |
|
</Tool> |
309 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
310 |
|
<Tool name=rootroofit version=%v> |
311 |
|
<info url="http://root.cern.ch/root/"></info> |
312 |
+ |
<lib name=RooFitCore> |
313 |
|
<lib name=RooFit> |
314 |
|
<use name=ROOTMinuit> |
315 |
|
<use name=ROOTHtml> |
349 |
|
%post |
350 |
|
%{relocateConfig}etc/scram.d/root |
351 |
|
%{relocateConfig}etc/scram.d/rootcore |
352 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
353 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
354 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
355 |
|
%{relocateConfig}etc/scram.d/rootcintex |
356 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
357 |
|
%{relocateConfig}etc/scram.d/rootmath |