1 |
< |
### RPM lcg root 5.14.00g-CMS9 |
1 |
> |
### RPM lcg root 5.22.00 |
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 |
|
|
10 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
11 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
12 |
|
|
13 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
14 |
|
|
15 |
< |
%if "%{?online_release:set}" != "set" |
16 |
< |
Requires: qt openssl mysql libpng zlib oracle libungif |
15 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
16 |
> |
Requires: qt openssl mysql libpng zlib libungif |
17 |
|
%else |
18 |
|
%define skiplibtiff true |
19 |
|
%endif |
28 |
|
|
29 |
|
%prep |
30 |
|
%setup -n root |
31 |
< |
%patch -p0 |
32 |
< |
%patch1 -p2 |
33 |
< |
%patch2 -p2 |
38 |
< |
%patch3 -p1 |
39 |
< |
%patch4 -p0 |
40 |
< |
%patch5 -p1 |
31 |
> |
%patch0 -p1 |
32 |
> |
%patch1 -p1 |
33 |
> |
|
34 |
|
%build |
35 |
|
mkdir -p %i |
36 |
|
export ROOTSYS=%_builddir/root |
37 |
|
|
38 |
< |
%if "%{?online_release:set}" != "set" |
38 |
> |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
39 |
> |
# Build without mysql, and use system qt. |
40 |
> |
# Also skip xrootd and odbc for online case: |
41 |
> |
|
42 |
|
EXTRA_CONFIG_ARGS=" |
43 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
44 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
45 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
46 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
43 |
> |
--disable-mysql |
44 |
> |
--disable-xrootd |
45 |
> |
--disable-odbc |
46 |
> |
--enable-qt" |
47 |
|
%else |
48 |
< |
ORACLE_ROOT="/opt/xdaq" |
49 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
48 |
> |
EXTRA_CONFIG_ARGS=" |
49 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
50 |
> |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
51 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
52 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
53 |
|
%endif |
54 |
|
|
55 |
< |
CONFIG_ARGS="--enable-table |
55 |
> |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
56 |
> |
--enable-table |
57 |
|
--disable-builtin-pcre |
58 |
|
--disable-builtin-freetype |
59 |
|
--disable-builtin-zlib |
60 |
|
--with-gccxml=${GCCXML_ROOT} |
61 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
61 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
62 |
|
--enable-explicitlink |
63 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
67 |
– |
--enable-mathcore |
64 |
|
--enable-mathmore |
65 |
|
--enable-reflex |
66 |
|
--enable-cintex |
75 |
|
--disable-pgsql |
76 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
77 |
|
|
78 |
+ |
#case %gccver in |
79 |
+ |
# 4.*) |
80 |
+ |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
81 |
+ |
# ;; |
82 |
+ |
#esac |
83 |
+ |
|
84 |
|
case $(uname)-$(uname -p) in |
85 |
|
Linux-x86_64) |
86 |
< |
./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;; |
86 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
87 |
|
Linux-i*86) |
88 |
< |
./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;; |
88 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
89 |
|
Darwin*) |
90 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
91 |
|
Linux-ppc64*) |
109 |
|
export ROOTSYS=%i |
110 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
111 |
|
mkdir -p $ROOTSYS/lib/python |
112 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
112 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
113 |
|
# |
114 |
|
|
115 |
|
# SCRAM ToolBox toolfile |
121 |
|
<info url="http://root.cern.ch/root/"></info> |
122 |
|
<lib name=Cint> |
123 |
|
<lib name=Core> |
124 |
+ |
<lib name=RIO> |
125 |
+ |
<lib name=Net> |
126 |
|
<lib name=Tree> |
127 |
|
<Client> |
128 |
|
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
139 |
|
</Tool> |
140 |
|
EOF_TOOLFILE |
141 |
|
|
142 |
< |
# root toolfile |
142 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
143 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
144 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
145 |
|
<Tool name=root version=%v> |
146 |
|
<info url="http://root.cern.ch/root/"></info> |
147 |
+ |
<use name=rootphysics> |
148 |
+ |
</Tool> |
149 |
+ |
EOF_TOOLFILE |
150 |
+ |
|
151 |
+ |
# roothistmatrix toolfile |
152 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
153 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
154 |
+ |
<Tool name=roothistmatrix version=%v> |
155 |
+ |
<info url="http://root.cern.ch/root/"></info> |
156 |
+ |
<lib name=Hist> |
157 |
+ |
<lib name=Matrix> |
158 |
+ |
<use name=ROOTCore> |
159 |
+ |
</Tool> |
160 |
+ |
EOF_TOOLFILE |
161 |
+ |
|
162 |
+ |
# rootphysics toolfile |
163 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
164 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
165 |
+ |
<Tool name=rootphysics version=%v> |
166 |
+ |
<info url="http://root.cern.ch/root/"></info> |
167 |
+ |
<lib name=Physics> |
168 |
+ |
<use name=roothistmatrix> |
169 |
+ |
</Tool> |
170 |
+ |
EOF_TOOLFILE |
171 |
+ |
|
172 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
173 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
174 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
175 |
+ |
<Tool name=rootgraphics version=%v> |
176 |
+ |
<info url="http://root.cern.ch/root/"></info> |
177 |
|
<lib name=TreePlayer> |
178 |
|
<lib name=Gpad> |
179 |
|
<lib name=Graf3d> |
218 |
|
<info url="http://root.cern.ch/root/"></info> |
219 |
|
<lib name=MathCore> |
220 |
|
<lib name=MathMore> |
221 |
+ |
<lib name=GenVector> |
222 |
|
<use name=ROOTCore> |
223 |
|
<use name=gsl> |
224 |
|
</Tool> |
278 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
279 |
|
<Tool name=rootroofit version=%v> |
280 |
|
<info url="http://root.cern.ch/root/"></info> |
281 |
+ |
<lib name=RooFitCore> |
282 |
|
<lib name=RooFit> |
283 |
|
<use name=ROOTMinuit> |
284 |
|
<use name=ROOTHtml> |
318 |
|
%post |
319 |
|
%{relocateConfig}etc/scram.d/root |
320 |
|
%{relocateConfig}etc/scram.d/rootcore |
321 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
322 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
323 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
324 |
|
%{relocateConfig}etc/scram.d/rootcintex |
325 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
326 |
|
%{relocateConfig}etc/scram.d/rootmath |