1 |
< |
### RPM lcg root 5.13.04c-p1 |
2 |
< |
# INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
%define realVersion %(echo %v | cut -d- -f1) |
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 |
1 |
> |
### RPM lcg root 5.18.00-CMS19 |
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 |
9 |
> |
|
10 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
11 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
12 |
< |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle |
12 |
> |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
13 |
|
|
14 |
|
%if "%cpu" != "amd64" |
15 |
|
Requires: libtiff |
16 |
|
%endif |
17 |
|
|
14 |
– |
Patch: root-cint-bug |
15 |
– |
Patch1: cintex_5.13.04e |
16 |
– |
|
18 |
|
%prep |
19 |
|
%setup -n root |
20 |
+ |
%patch0 -p1 |
21 |
+ |
%patch1 -p1 |
22 |
+ |
|
23 |
|
%build |
24 |
|
mkdir -p %i |
25 |
|
export ROOTSYS=%_builddir/root |
30 |
|
--with-gccxml=${GCCXML_ROOT} |
31 |
|
--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 |
29 |
– |
--enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include |
33 |
|
--enable-explicitlink |
34 |
|
--enable-qtgsi |
35 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
41 |
|
--enable-roofit |
42 |
|
--disable-ldap |
43 |
|
--disable-krb5 |
41 |
– |
--with-dcap-libdir=${DCAP_ROOT}/lib |
42 |
– |
--with-dcap-incdir=${DCAP_ROOT}/include |
44 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
45 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
45 |
– |
--with-shift-incdir=${CASTOR_ROOT}/include/shift |
46 |
– |
--with-shift-libdir=${CASTOR_ROOT}/lib |
46 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
47 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
48 |
+ |
--with-dcap-libdir=${DCAP_ROOT}/lib |
49 |
+ |
--with-dcap-incdir=${DCAP_ROOT}/include |
50 |
+ |
--with-xrootd=$XROOTD_ROOT |
51 |
|
--disable-pgsql |
52 |
|
--disable-xml" |
53 |
|
|
54 |
< |
case $(uname)-$(uname -m) in |
54 |
> |
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345")) |
55 |
> |
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
56 |
> |
%endif |
57 |
> |
|
58 |
> |
case $(uname)-$(uname -p) in |
59 |
|
Linux-x86_64) |
60 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --disable-astiff;; |
61 |
< |
Linux*) |
62 |
< |
./configure linux $CONFIG_ARGS;; |
60 |
> |
./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;; |
61 |
> |
Linux-i*86) |
62 |
> |
./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;; |
63 |
|
Darwin*) |
64 |
< |
./configure macosx $CONFIG_ARGS;; |
64 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
65 |
> |
Linux-ppc64*) |
66 |
> |
./configure linux $CONFIG_ARGS --disable-rfio;; |
67 |
|
esac |
68 |
|
|
69 |
< |
make |
69 |
> |
make %makeprocesses |
70 |
|
make cintdlls |
71 |
|
%install |
72 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
80 |
|
cp="cp -pPR" |
81 |
|
fi |
82 |
|
|
83 |
< |
export ROOTSYS=%i/root |
83 |
> |
export ROOTSYS=%i |
84 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
85 |
< |
mkdir -p %i/root/lib/python |
86 |
< |
cp -r reflex/python/genreflex %i/root/lib/python |
85 |
> |
mkdir -p $ROOTSYS/lib/python |
86 |
> |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
87 |
|
# |
88 |
+ |
|
89 |
+ |
# SCRAM ToolBox toolfile |
90 |
+ |
mkdir -p %i/etc/scram.d |
91 |
+ |
# rootcore toolfile |
92 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
93 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
94 |
+ |
<Tool name=rootcore version=%v> |
95 |
+ |
<info url="http://root.cern.ch/root/"></info> |
96 |
+ |
<lib name=Cint> |
97 |
+ |
<lib name=Core> |
98 |
+ |
<lib name=RIO> |
99 |
+ |
<lib name=Net> |
100 |
+ |
<lib name=Tree> |
101 |
+ |
<Client> |
102 |
+ |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
103 |
+ |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
104 |
+ |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
105 |
+ |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
106 |
+ |
</Client> |
107 |
+ |
<use name=sockets> |
108 |
+ |
<use name=pcre> |
109 |
+ |
<use name=zlib> |
110 |
+ |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
111 |
+ |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
112 |
+ |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
113 |
+ |
</Tool> |
114 |
+ |
EOF_TOOLFILE |
115 |
+ |
|
116 |
+ |
# root toolfile |
117 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
118 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
119 |
+ |
<Tool name=root version=%v> |
120 |
+ |
<info url="http://root.cern.ch/root/"></info> |
121 |
+ |
<lib name=TreePlayer> |
122 |
+ |
<lib name=Gpad> |
123 |
+ |
<lib name=Graf3d> |
124 |
+ |
<lib name=Graf> |
125 |
+ |
<lib name=Hist> |
126 |
+ |
<lib name=Matrix> |
127 |
+ |
<lib name=Physics> |
128 |
+ |
<lib name=Postscript> |
129 |
+ |
<use name=ROOTCore> |
130 |
+ |
</Tool> |
131 |
+ |
EOF_TOOLFILE |
132 |
+ |
|
133 |
+ |
# rootcintex toolfile |
134 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
135 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
136 |
+ |
<Tool name=rootcintex version=%v> |
137 |
+ |
<info url="http://root.cern.ch/root/"></info> |
138 |
+ |
<lib name=Cintex> |
139 |
+ |
<use name=ROOTRflx> |
140 |
+ |
<use name=ROOTCore> |
141 |
+ |
</Tool> |
142 |
+ |
EOF_TOOLFILE |
143 |
+ |
|
144 |
+ |
# rootinteractive toolfile |
145 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
146 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
147 |
+ |
<Tool name=rootinteractive version=%v> |
148 |
+ |
<info url="http://root.cern.ch/root/"></info> |
149 |
+ |
<lib name=Rint> |
150 |
+ |
<lib name=GQt> |
151 |
+ |
<use name=qt> |
152 |
+ |
<use name=libjpg> |
153 |
+ |
<use name=libpng> |
154 |
+ |
<use name=ROOT> |
155 |
+ |
</Tool> |
156 |
+ |
EOF_TOOLFILE |
157 |
+ |
|
158 |
+ |
# rootmath toolfile |
159 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
160 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
161 |
+ |
<Tool name=rootmath version=%v> |
162 |
+ |
<info url="http://root.cern.ch/root/"></info> |
163 |
+ |
<lib name=MathCore> |
164 |
+ |
<lib name=MathMore> |
165 |
+ |
<use name=ROOTCore> |
166 |
+ |
<use name=gsl> |
167 |
+ |
</Tool> |
168 |
+ |
EOF_TOOLFILE |
169 |
+ |
|
170 |
+ |
# rootminuit toolfile |
171 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
172 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
173 |
+ |
<Tool name=rootminuit version=%v> |
174 |
+ |
<info url="http://root.cern.ch/root/"></info> |
175 |
+ |
<lib name=Minuit> |
176 |
+ |
<use name=ROOT> |
177 |
+ |
</Tool> |
178 |
+ |
EOF_TOOLFILE |
179 |
+ |
|
180 |
+ |
# rootminuit2 toolfile |
181 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
182 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
183 |
+ |
<Tool name=rootminuit2 version=%v> |
184 |
+ |
<info url="http://root.cern.ch/root/"></info> |
185 |
+ |
<lib name=Minuit2> |
186 |
+ |
<use name=ROOT> |
187 |
+ |
</Tool> |
188 |
+ |
EOF_TOOLFILE |
189 |
+ |
|
190 |
+ |
# rootrflx toolfile |
191 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
192 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
193 |
+ |
<Tool name=rootrflx version=%v> |
194 |
+ |
<info url="http://root.cern.ch/root/"></info> |
195 |
+ |
<lib name=Reflex> |
196 |
+ |
<Client> |
197 |
+ |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
198 |
+ |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
199 |
+ |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
200 |
+ |
</Client> |
201 |
+ |
<use name=sockets> |
202 |
+ |
<use name=gccxml> |
203 |
+ |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
204 |
+ |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
205 |
+ |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
206 |
+ |
</Tool> |
207 |
+ |
EOF_TOOLFILE |
208 |
+ |
|
209 |
+ |
# roothtml toolfile |
210 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
211 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
212 |
+ |
<Tool name=roothtml version=%v> |
213 |
+ |
<info url="http://root.cern.ch/root/"></info> |
214 |
+ |
<lib name=Html> |
215 |
+ |
<use name=ROOT> |
216 |
+ |
</Tool> |
217 |
+ |
EOF_TOOLFILE |
218 |
+ |
|
219 |
+ |
# rootroofit toolfile |
220 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
221 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
222 |
+ |
<Tool name=rootroofit version=%v> |
223 |
+ |
<info url="http://root.cern.ch/root/"></info> |
224 |
+ |
<lib name=RooFitCore> |
225 |
+ |
<lib name=RooFit> |
226 |
+ |
<use name=ROOTMinuit> |
227 |
+ |
<use name=ROOTHtml> |
228 |
+ |
</Tool> |
229 |
+ |
EOF_TOOLFILE |
230 |
+ |
|
231 |
+ |
# rootmlp toolfile |
232 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
233 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
234 |
+ |
<Tool name=rootmlp version=%v> |
235 |
+ |
<info url="http://root.cern.ch/root/"></info> |
236 |
+ |
<lib name=MLP> |
237 |
+ |
<use name=ROOT> |
238 |
+ |
</Tool> |
239 |
+ |
EOF_TOOLFILE |
240 |
+ |
|
241 |
+ |
# roottmva toolfile |
242 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
243 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
244 |
+ |
<Tool name=roottmva version=%v> |
245 |
+ |
<info url="http://root.cern.ch/root/"></info> |
246 |
+ |
<lib name=TMVA> |
247 |
+ |
<use name=ROOTMLP> |
248 |
+ |
</Tool> |
249 |
+ |
EOF_TOOLFILE |
250 |
+ |
|
251 |
+ |
# rootthread toolfile |
252 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
253 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
254 |
+ |
<Tool name=rootthread version=%v> |
255 |
+ |
<info url="http://root.cern.ch/root/"></info> |
256 |
+ |
<lib name=Thread> |
257 |
+ |
<use name=ROOTCore> |
258 |
+ |
</Tool> |
259 |
+ |
EOF_TOOLFILE |
260 |
+ |
|
261 |
+ |
%post |
262 |
+ |
%{relocateConfig}etc/scram.d/root |
263 |
+ |
%{relocateConfig}etc/scram.d/rootcore |
264 |
+ |
%{relocateConfig}etc/scram.d/rootcintex |
265 |
+ |
%{relocateConfig}etc/scram.d/rootinteractive |
266 |
+ |
%{relocateConfig}etc/scram.d/rootmath |
267 |
+ |
%{relocateConfig}etc/scram.d/rootminuit |
268 |
+ |
%{relocateConfig}etc/scram.d/rootminuit2 |
269 |
+ |
%{relocateConfig}etc/scram.d/rootrflx |
270 |
+ |
%{relocateConfig}etc/scram.d/roothtml |
271 |
+ |
%{relocateConfig}etc/scram.d/rootroofit |
272 |
+ |
%{relocateConfig}etc/scram.d/rootmlp |
273 |
+ |
%{relocateConfig}etc/scram.d/roottmva |
274 |
+ |
%{relocateConfig}etc/scram.d/rootthread |