1 |
< |
### RPM lcg root 5.18.00-CMS19 |
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-00-CINT-maxlongline |
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 |
> |
Patch13: root-5.18.00a-TClass-custom-streamer |
21 |
|
|
22 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
23 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
12 |
– |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
24 |
|
|
25 |
< |
%if "%cpu" != "amd64" |
25 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
26 |
> |
|
27 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
28 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
29 |
> |
%else |
30 |
> |
%define skiplibtiff true |
31 |
> |
%endif |
32 |
> |
|
33 |
> |
%if "%cpu" == "amd64" |
34 |
> |
%define skiplibtiff true |
35 |
> |
%endif |
36 |
> |
|
37 |
> |
%if "%skiplibtiff" != "true" |
38 |
|
Requires: libtiff |
39 |
|
%endif |
40 |
|
|
42 |
|
%setup -n root |
43 |
|
%patch0 -p1 |
44 |
|
%patch1 -p1 |
45 |
+ |
%patch2 -p0 |
46 |
+ |
%patch3 -p1 |
47 |
+ |
%patch4 -p0 |
48 |
+ |
%patch5 -p0 |
49 |
+ |
%patch6 -p0 |
50 |
+ |
%patch7 -p0 |
51 |
+ |
%patch8 -p1 |
52 |
+ |
%patch9 -p0 |
53 |
+ |
%patch10 -p0 |
54 |
+ |
%patch11 -p0 |
55 |
+ |
%patch12 -p1 |
56 |
+ |
%patch13 -p1 |
57 |
|
|
58 |
|
%build |
59 |
|
mkdir -p %i |
60 |
|
export ROOTSYS=%_builddir/root |
61 |
+ |
|
62 |
+ |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
63 |
+ |
# Build without mysql, and use system qt. |
64 |
+ |
# Also skip xrootd and odbc for online case: |
65 |
+ |
|
66 |
+ |
EXTRA_CONFIG_ARGS=" |
67 |
+ |
--disable-mysql |
68 |
+ |
--disable-xrootd |
69 |
+ |
--disable-odbc |
70 |
+ |
--enable-qt" |
71 |
+ |
%else |
72 |
+ |
EXTRA_CONFIG_ARGS=" |
73 |
+ |
--with-xrootd=$XROOTD_ROOT |
74 |
+ |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
75 |
+ |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
76 |
+ |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
77 |
+ |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
78 |
+ |
%endif |
79 |
+ |
|
80 |
|
CONFIG_ARGS="--enable-table |
81 |
|
--disable-builtin-pcre |
82 |
|
--disable-builtin-freetype |
83 |
|
--disable-builtin-zlib |
84 |
|
--with-gccxml=${GCCXML_ROOT} |
85 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
32 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
86 |
|
--enable-explicitlink |
87 |
|
--enable-qtgsi |
35 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
88 |
|
--enable-mathcore |
89 |
|
--enable-mathmore |
90 |
|
--enable-reflex |
93 |
|
--enable-roofit |
94 |
|
--disable-ldap |
95 |
|
--disable-krb5 |
44 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
45 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
96 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
97 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
98 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
99 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
50 |
– |
--with-xrootd=$XROOTD_ROOT |
100 |
|
--disable-pgsql |
101 |
< |
--disable-xml" |
101 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
102 |
|
|
103 |
|
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345")) |
104 |
|
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
106 |
|
|
107 |
|
case $(uname)-$(uname -p) in |
108 |
|
Linux-x86_64) |
109 |
< |
./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;; |
109 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
110 |
|
Linux-i*86) |
111 |
< |
./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;; |
111 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
112 |
|
Darwin*) |
113 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
114 |
|
Linux-ppc64*) |
162 |
|
</Tool> |
163 |
|
EOF_TOOLFILE |
164 |
|
|
165 |
< |
# root toolfile |
165 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
166 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
167 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
168 |
|
<Tool name=root version=%v> |
169 |
|
<info url="http://root.cern.ch/root/"></info> |
170 |
+ |
<use name=rootphysics> |
171 |
+ |
</Tool> |
172 |
+ |
EOF_TOOLFILE |
173 |
+ |
|
174 |
+ |
# roothistmatrix toolfile |
175 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
176 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
177 |
+ |
<Tool name=roothistmatrix version=%v> |
178 |
+ |
<info url="http://root.cern.ch/root/"></info> |
179 |
+ |
<lib name=Hist> |
180 |
+ |
<lib name=Matrix> |
181 |
+ |
<use name=ROOTCore> |
182 |
+ |
</Tool> |
183 |
+ |
EOF_TOOLFILE |
184 |
+ |
|
185 |
+ |
# rootphysics toolfile |
186 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
187 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
188 |
+ |
<Tool name=rootphysics version=%v> |
189 |
+ |
<info url="http://root.cern.ch/root/"></info> |
190 |
+ |
<lib name=Physics> |
191 |
+ |
<use name=roothistmatrix> |
192 |
+ |
</Tool> |
193 |
+ |
EOF_TOOLFILE |
194 |
+ |
|
195 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
196 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
197 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
198 |
+ |
<Tool name=rootgraphics version=%v> |
199 |
+ |
<info url="http://root.cern.ch/root/"></info> |
200 |
|
<lib name=TreePlayer> |
201 |
|
<lib name=Gpad> |
202 |
|
<lib name=Graf3d> |
340 |
|
%post |
341 |
|
%{relocateConfig}etc/scram.d/root |
342 |
|
%{relocateConfig}etc/scram.d/rootcore |
343 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
344 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
345 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
346 |
|
%{relocateConfig}etc/scram.d/rootcintex |
347 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
348 |
|
%{relocateConfig}etc/scram.d/rootmath |