1 |
< |
### RPM lcg root 5.18.00-CMS19 |
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 |
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.21-04-CINT-maxlongline |
9 |
> |
Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once |
10 |
|
|
11 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
12 |
|
%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 |
13 |
|
|
14 |
< |
%if "%cpu" != "amd64" |
14 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
15 |
> |
|
16 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
17 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
18 |
> |
%else |
19 |
> |
%define skiplibtiff true |
20 |
> |
%endif |
21 |
> |
|
22 |
> |
%if "%cpu" == "amd64" |
23 |
> |
%define skiplibtiff true |
24 |
> |
%endif |
25 |
> |
|
26 |
> |
%if "%skiplibtiff" != "true" |
27 |
|
Requires: libtiff |
28 |
|
%endif |
29 |
|
|
31 |
|
%setup -n root |
32 |
|
%patch0 -p1 |
33 |
|
%patch1 -p1 |
34 |
+ |
%patch2 -p1 |
35 |
|
|
36 |
|
%build |
37 |
|
mkdir -p %i |
38 |
|
export ROOTSYS=%_builddir/root |
39 |
< |
CONFIG_ARGS="--enable-table |
39 |
> |
|
40 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
41 |
> |
# Build without mysql, and use system qt. |
42 |
> |
# Also skip xrootd and odbc for online case: |
43 |
> |
|
44 |
> |
EXTRA_CONFIG_ARGS=" |
45 |
> |
--disable-mysql |
46 |
> |
--disable-xrootd |
47 |
> |
--disable-odbc |
48 |
> |
--enable-qt" |
49 |
> |
%else |
50 |
> |
EXTRA_CONFIG_ARGS=" |
51 |
> |
--with-xrootd=$XROOTD_ROOT |
52 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
53 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
54 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
55 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
56 |
> |
%endif |
57 |
> |
|
58 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
59 |
> |
--enable-table |
60 |
|
--disable-builtin-pcre |
61 |
|
--disable-builtin-freetype |
62 |
|
--disable-builtin-zlib |
63 |
|
--with-gccxml=${GCCXML_ROOT} |
64 |
|
--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 |
65 |
|
--enable-explicitlink |
66 |
|
--enable-qtgsi |
35 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
36 |
– |
--enable-mathcore |
67 |
|
--enable-mathmore |
68 |
|
--enable-reflex |
69 |
|
--enable-cintex |
71 |
|
--enable-roofit |
72 |
|
--disable-ldap |
73 |
|
--disable-krb5 |
44 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
45 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
74 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
75 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
76 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
77 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
50 |
– |
--with-xrootd=$XROOTD_ROOT |
78 |
|
--disable-pgsql |
79 |
< |
--disable-xml" |
79 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
80 |
|
|
81 |
< |
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345")) |
82 |
< |
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
83 |
< |
%endif |
81 |
> |
#case %gccver in |
82 |
> |
# 4.*) |
83 |
> |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
84 |
> |
# ;; |
85 |
> |
#esac |
86 |
|
|
87 |
|
case $(uname)-$(uname -p) in |
88 |
|
Linux-x86_64) |
89 |
< |
./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;; |
89 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
90 |
|
Linux-i*86) |
91 |
< |
./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;; |
91 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
92 |
|
Darwin*) |
93 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
94 |
|
Linux-ppc64*) |
95 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
96 |
|
esac |
97 |
|
|
98 |
< |
make %makeprocesses |
98 |
> |
case %cmsplatf in |
99 |
> |
osx*) |
100 |
> |
makeopts= |
101 |
> |
;; |
102 |
> |
*) |
103 |
> |
makeopts="%makeprocesses" |
104 |
> |
;; |
105 |
> |
esac |
106 |
> |
|
107 |
> |
make $makeopts |
108 |
|
make cintdlls |
109 |
+ |
|
110 |
|
%install |
111 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
112 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
122 |
|
export ROOTSYS=%i |
123 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
124 |
|
mkdir -p $ROOTSYS/lib/python |
125 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
125 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
126 |
|
# |
127 |
|
|
128 |
|
# SCRAM ToolBox toolfile |
152 |
|
</Tool> |
153 |
|
EOF_TOOLFILE |
154 |
|
|
155 |
< |
# root toolfile |
155 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
156 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
157 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
158 |
|
<Tool name=root version=%v> |
159 |
|
<info url="http://root.cern.ch/root/"></info> |
160 |
+ |
<use name=rootphysics> |
161 |
+ |
</Tool> |
162 |
+ |
EOF_TOOLFILE |
163 |
+ |
|
164 |
+ |
# roothistmatrix toolfile |
165 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
166 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
167 |
+ |
<Tool name=roothistmatrix version=%v> |
168 |
+ |
<info url="http://root.cern.ch/root/"></info> |
169 |
+ |
<lib name=Hist> |
170 |
+ |
<lib name=Matrix> |
171 |
+ |
<use name=ROOTCore> |
172 |
+ |
</Tool> |
173 |
+ |
EOF_TOOLFILE |
174 |
+ |
|
175 |
+ |
# rootphysics toolfile |
176 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
177 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
178 |
+ |
<Tool name=rootphysics version=%v> |
179 |
+ |
<info url="http://root.cern.ch/root/"></info> |
180 |
+ |
<lib name=Physics> |
181 |
+ |
<use name=roothistmatrix> |
182 |
+ |
</Tool> |
183 |
+ |
EOF_TOOLFILE |
184 |
+ |
|
185 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
186 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
187 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
188 |
+ |
<Tool name=rootgraphics version=%v> |
189 |
+ |
<info url="http://root.cern.ch/root/"></info> |
190 |
|
<lib name=TreePlayer> |
191 |
|
<lib name=Gpad> |
192 |
|
<lib name=Graf3d> |
210 |
|
</Tool> |
211 |
|
EOF_TOOLFILE |
212 |
|
|
213 |
< |
# rootinteractive toolfile |
213 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
214 |
> |
# have been removed for the moment) |
215 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
216 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
217 |
|
<Tool name=rootinteractive version=%v> |
218 |
|
<info url="http://root.cern.ch/root/"></info> |
219 |
|
<lib name=Rint> |
220 |
+ |
<use name=libjpg> |
221 |
+ |
<use name=libpng> |
222 |
+ |
<use name=ROOT> |
223 |
+ |
</Tool> |
224 |
+ |
EOF_TOOLFILE |
225 |
+ |
|
226 |
+ |
# rootinteractive2 toolfile (temporary, to allow access to Qt4) |
227 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2 |
228 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
229 |
+ |
<Tool name=rootinteractive2 version=%v> |
230 |
+ |
<info url="http://root.cern.ch/root/"></info> |
231 |
+ |
<lib name=Rint> |
232 |
|
<lib name=GQt> |
233 |
|
<use name=qt> |
234 |
|
<use name=libjpg> |
237 |
|
</Tool> |
238 |
|
EOF_TOOLFILE |
239 |
|
|
240 |
+ |
|
241 |
|
# rootmath toolfile |
242 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
243 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
245 |
|
<info url="http://root.cern.ch/root/"></info> |
246 |
|
<lib name=MathCore> |
247 |
|
<lib name=MathMore> |
248 |
+ |
<lib name=GenVector> |
249 |
|
<use name=ROOTCore> |
250 |
|
<use name=gsl> |
251 |
|
</Tool> |
345 |
|
%post |
346 |
|
%{relocateConfig}etc/scram.d/root |
347 |
|
%{relocateConfig}etc/scram.d/rootcore |
348 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
349 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
350 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
351 |
|
%{relocateConfig}etc/scram.d/rootcintex |
352 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
353 |
|
%{relocateConfig}etc/scram.d/rootmath |