1 |
< |
### RPM lcg root 5.18.00a |
1 |
> |
### RPM lcg root 5.20.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 |
6 |
|
|
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 |
< |
|
7 |
> |
Patch0: root-5.20-00-libpng |
8 |
> |
Patch1: root-5.20-00-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 xrootd |
15 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
16 |
> |
Requires: qt openssl mysql libpng zlib libungif xrootd |
17 |
|
%else |
18 |
|
%define skiplibtiff true |
19 |
|
%endif |
30 |
|
%setup -n root |
31 |
|
%patch0 -p1 |
32 |
|
%patch1 -p1 |
37 |
– |
%patch2 -p0 |
38 |
– |
%patch3 -p1 |
39 |
– |
%patch4 -p0 |
33 |
|
|
34 |
|
%build |
35 |
|
mkdir -p %i |
36 |
|
export ROOTSYS=%_builddir/root |
37 |
|
|
38 |
< |
%if "%{?online_release:set}" == "set" |
39 |
< |
# Use oracle from xdaq installation: |
40 |
< |
ORACLE_ROOT="/opt/xdaq" |
41 |
< |
# Build without mysql, and use system qt and openssl: |
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 |
< |
--disable-mysql |
44 |
< |
--enable-qt |
45 |
< |
--enable-ssl" |
46 |
< |
# Also skip xrootd option for online case. |
43 |
> |
--disable-mysql |
44 |
> |
--disable-xrootd |
45 |
> |
--disable-odbc |
46 |
> |
--enable-qt" |
47 |
|
%else |
48 |
|
EXTRA_CONFIG_ARGS=" |
49 |
|
--with-xrootd=$XROOTD_ROOT |
82 |
|
|
83 |
|
case $(uname)-$(uname -p) in |
84 |
|
Linux-x86_64) |
85 |
< |
./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;; |
85 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;; |
86 |
|
Linux-i*86) |
87 |
< |
./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;; |
87 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
88 |
|
Darwin*) |
89 |
|
./configure macosx $CONFIG_ARGS --disable-rfio;; |
90 |
|
Linux-ppc64*) |
108 |
|
export ROOTSYS=%i |
109 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
110 |
|
mkdir -p $ROOTSYS/lib/python |
111 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
111 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
112 |
|
# |
113 |
|
|
114 |
|
# SCRAM ToolBox toolfile |
138 |
|
</Tool> |
139 |
|
EOF_TOOLFILE |
140 |
|
|
141 |
< |
# root toolfile |
141 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
142 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
143 |
|
<doc type=BuildSystem::ToolDoc version=1.0> |
144 |
|
<Tool name=root version=%v> |
145 |
|
<info url="http://root.cern.ch/root/"></info> |
146 |
+ |
<use name=rootphysics> |
147 |
+ |
</Tool> |
148 |
+ |
EOF_TOOLFILE |
149 |
+ |
|
150 |
+ |
# roothistmatrix toolfile |
151 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
152 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
153 |
+ |
<Tool name=roothistmatrix version=%v> |
154 |
+ |
<info url="http://root.cern.ch/root/"></info> |
155 |
+ |
<lib name=Hist> |
156 |
+ |
<lib name=Matrix> |
157 |
+ |
<use name=ROOTCore> |
158 |
+ |
</Tool> |
159 |
+ |
EOF_TOOLFILE |
160 |
+ |
|
161 |
+ |
# rootphysics toolfile |
162 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
163 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
164 |
+ |
<Tool name=rootphysics version=%v> |
165 |
+ |
<info url="http://root.cern.ch/root/"></info> |
166 |
+ |
<lib name=Physics> |
167 |
+ |
<use name=roothistmatrix> |
168 |
+ |
</Tool> |
169 |
+ |
EOF_TOOLFILE |
170 |
+ |
|
171 |
+ |
# rootgraphics toolfile, identical to old "root" toolfile |
172 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
173 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
174 |
+ |
<Tool name=rootgraphics version=%v> |
175 |
+ |
<info url="http://root.cern.ch/root/"></info> |
176 |
|
<lib name=TreePlayer> |
177 |
|
<lib name=Gpad> |
178 |
|
<lib name=Graf3d> |
316 |
|
%post |
317 |
|
%{relocateConfig}etc/scram.d/root |
318 |
|
%{relocateConfig}etc/scram.d/rootcore |
319 |
+ |
%{relocateConfig}etc/scram.d/roothistmatrix |
320 |
+ |
%{relocateConfig}etc/scram.d/rootphysics |
321 |
+ |
%{relocateConfig}etc/scram.d/rootgraphics |
322 |
|
%{relocateConfig}etc/scram.d/rootcintex |
323 |
|
%{relocateConfig}etc/scram.d/rootinteractive |
324 |
|
%{relocateConfig}etc/scram.d/rootmath |