1 |
< |
### RPM lcg root 5.12.00 |
2 |
< |
# INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %v | tr . -)&module=root&output=/%{n}_v%{v}.source.tar.gz |
4 |
< |
#Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz |
5 |
< |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg libtiff dcap pcre zlib |
6 |
< |
Patch: root-cint-bug |
1 |
> |
### RPM lcg root 5.14.00g-CMS11 |
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 |
> |
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 |
13 |
> |
Patch6: root_Reflex_Cintex |
14 |
> |
Patch7: root_CallFunc |
15 |
> |
Patch8: root-proofd |
16 |
> |
|
17 |
> |
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
18 |
> |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
19 |
> |
|
20 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
21 |
> |
|
22 |
> |
%if "%{?online_release:set}" != "set" |
23 |
> |
Requires: qt openssl mysql libpng zlib oracle libungif xrootd |
24 |
> |
%else |
25 |
> |
%define skiplibtiff true |
26 |
> |
%endif |
27 |
> |
|
28 |
> |
%if "%cpu" == "amd64" |
29 |
> |
%define skiplibtiff true |
30 |
> |
%endif |
31 |
> |
|
32 |
> |
%if "%skiplibtiff" != "true" |
33 |
> |
Requires: libtiff |
34 |
> |
%endif |
35 |
> |
|
36 |
|
%prep |
37 |
|
%setup -n root |
38 |
|
%patch -p0 |
39 |
+ |
%patch1 -p2 |
40 |
+ |
%patch2 -p2 |
41 |
+ |
%patch3 -p1 |
42 |
+ |
%patch4 -p0 |
43 |
+ |
%patch5 -p1 |
44 |
+ |
%patch6 -p0 |
45 |
+ |
%patch7 -p0 |
46 |
+ |
%patch8 -p1 |
47 |
|
%build |
48 |
|
mkdir -p %i |
49 |
|
export ROOTSYS=%_builddir/root |
50 |
< |
CONFIG_ARGS="--enable-table |
50 |
> |
|
51 |
> |
%if "%{?online_release:set}" != "set" |
52 |
> |
EXTRA_CONFIG_ARGS=" |
53 |
> |
--with-xrootd=$XROOTD_ROOT |
54 |
> |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
55 |
> |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
56 |
> |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
57 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
58 |
> |
%else |
59 |
> |
ORACLE_ROOT="/opt/xdaq" |
60 |
> |
EXTRA_CONFIG_ARGS="--disable-mysql --enable-ssl" |
61 |
> |
%endif |
62 |
> |
|
63 |
> |
CONFIG_ARGS="--enable-table |
64 |
|
--disable-builtin-pcre |
65 |
|
--disable-builtin-freetype |
66 |
|
--disable-builtin-zlib |
67 |
|
--with-gccxml=${GCCXML_ROOT} |
68 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include |
69 |
< |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
20 |
< |
--with-dcap-libdir=${DCAP_ROOT}/lib |
21 |
< |
--with-dcap-incdir=${DCAP_ROOT}/include |
68 |
> |
--enable-python |
69 |
> |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
70 |
|
--enable-explicitlink |
71 |
|
--enable-qtgsi |
72 |
< |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
72 |
> |
--enable-qt |
73 |
|
--enable-mathcore |
74 |
|
--enable-mathmore |
75 |
|
--enable-reflex |
78 |
|
--enable-roofit |
79 |
|
--disable-ldap |
80 |
|
--disable-krb5 |
81 |
< |
--with-dcap-libdir=${DCAP_ROOT}/lib |
81 |
> |
--with-gsl-incdir=${GSL_ROOT}/include |
82 |
> |
--with-gsl-libdir=${GSL_ROOT}/lib |
83 |
> |
--with-dcap-libdir=${DCAP_ROOT}/lib |
84 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
35 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
36 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
37 |
– |
--with-shift-incdir=${CASTOR_ROOT}/include |
38 |
– |
--with-shift-libdir=${CASTOR_ROOT}/lib |
85 |
|
--disable-pgsql |
86 |
< |
--disable-xml" |
86 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
87 |
|
|
88 |
< |
case $(uname)-$(uname -m) in |
88 |
> |
case $(uname)-$(uname -p) in |
89 |
|
Linux-x86_64) |
90 |
< |
./configure linuxx8664gcc $CONFIG_ARGS;; |
91 |
< |
Linux*) |
92 |
< |
./configure linux $CONFIG_ARGS;; |
90 |
> |
./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;; |
91 |
> |
Linux-i*86) |
92 |
> |
./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;; |
93 |
|
Darwin*) |
94 |
< |
./configure macosx $CONFIG_ARGS;; |
94 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
95 |
> |
Linux-ppc64*) |
96 |
> |
./configure linux $CONFIG_ARGS --disable-rfio;; |
97 |
|
esac |
98 |
|
|
99 |
< |
make |
99 |
> |
make %makeprocesses |
100 |
|
make cintdlls |
101 |
|
%install |
102 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
110 |
|
cp="cp -pPR" |
111 |
|
fi |
112 |
|
|
113 |
< |
#export ROOTSYS=%i/root |
113 |
> |
export ROOTSYS=%i |
114 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
115 |
< |
mkdir -p %i/root/lib/python |
116 |
< |
cp -r reflex/python/genreflex %i/root/lib/python |
115 |
> |
mkdir -p $ROOTSYS/lib/python |
116 |
> |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
117 |
> |
# |
118 |
> |
|
119 |
> |
# SCRAM ToolBox toolfile |
120 |
> |
mkdir -p %i/etc/scram.d |
121 |
> |
# rootcore toolfile |
122 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
123 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
124 |
> |
<Tool name=rootcore version=%v> |
125 |
> |
<info url="http://root.cern.ch/root/"></info> |
126 |
> |
<lib name=Cint> |
127 |
> |
<lib name=Core> |
128 |
> |
<lib name=Tree> |
129 |
> |
<Client> |
130 |
> |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
131 |
> |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
132 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
133 |
> |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
134 |
> |
</Client> |
135 |
> |
<use name=sockets> |
136 |
> |
<use name=pcre> |
137 |
> |
<use name=zlib> |
138 |
> |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
139 |
> |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
140 |
> |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
141 |
> |
</Tool> |
142 |
> |
EOF_TOOLFILE |
143 |
> |
|
144 |
> |
# root toolfile |
145 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
146 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
147 |
> |
<Tool name=root version=%v> |
148 |
> |
<info url="http://root.cern.ch/root/"></info> |
149 |
> |
<lib name=TreePlayer> |
150 |
> |
<lib name=Gpad> |
151 |
> |
<lib name=Graf3d> |
152 |
> |
<lib name=Graf> |
153 |
> |
<lib name=Hist> |
154 |
> |
<lib name=Matrix> |
155 |
> |
<lib name=Physics> |
156 |
> |
<lib name=Postscript> |
157 |
> |
<use name=ROOTCore> |
158 |
> |
</Tool> |
159 |
> |
EOF_TOOLFILE |
160 |
> |
|
161 |
> |
# rootcintex toolfile |
162 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
163 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
164 |
> |
<Tool name=rootcintex version=%v> |
165 |
> |
<info url="http://root.cern.ch/root/"></info> |
166 |
> |
<lib name=Cintex> |
167 |
> |
<use name=ROOTRflx> |
168 |
> |
<use name=ROOTCore> |
169 |
> |
</Tool> |
170 |
> |
EOF_TOOLFILE |
171 |
> |
|
172 |
> |
# rootinteractive toolfile |
173 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
174 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
175 |
> |
<Tool name=rootinteractive version=%v> |
176 |
> |
<info url="http://root.cern.ch/root/"></info> |
177 |
> |
<lib name=Rint> |
178 |
> |
<lib name=GQt> |
179 |
> |
<use name=qt> |
180 |
> |
<use name=libjpg> |
181 |
> |
<use name=libpng> |
182 |
> |
<use name=ROOT> |
183 |
> |
</Tool> |
184 |
> |
EOF_TOOLFILE |
185 |
> |
|
186 |
> |
# rootmath toolfile |
187 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
188 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
189 |
> |
<Tool name=rootmath version=%v> |
190 |
> |
<info url="http://root.cern.ch/root/"></info> |
191 |
> |
<lib name=MathCore> |
192 |
> |
<lib name=MathMore> |
193 |
> |
<use name=ROOTCore> |
194 |
> |
<use name=gsl> |
195 |
> |
</Tool> |
196 |
> |
EOF_TOOLFILE |
197 |
> |
|
198 |
> |
# rootminuit toolfile |
199 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
200 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
201 |
> |
<Tool name=rootminuit version=%v> |
202 |
> |
<info url="http://root.cern.ch/root/"></info> |
203 |
> |
<lib name=Minuit> |
204 |
> |
<use name=ROOT> |
205 |
> |
</Tool> |
206 |
> |
EOF_TOOLFILE |
207 |
> |
|
208 |
> |
# rootminuit2 toolfile |
209 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
210 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
211 |
> |
<Tool name=rootminuit2 version=%v> |
212 |
> |
<info url="http://root.cern.ch/root/"></info> |
213 |
> |
<lib name=Minuit2> |
214 |
> |
<use name=ROOT> |
215 |
> |
</Tool> |
216 |
> |
EOF_TOOLFILE |
217 |
> |
|
218 |
> |
# rootrflx toolfile |
219 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
220 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
221 |
> |
<Tool name=rootrflx version=%v> |
222 |
> |
<info url="http://root.cern.ch/root/"></info> |
223 |
> |
<lib name=Reflex> |
224 |
> |
<Client> |
225 |
> |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
226 |
> |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
227 |
> |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
228 |
> |
</Client> |
229 |
> |
<use name=sockets> |
230 |
> |
<use name=gccxml> |
231 |
> |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
232 |
> |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
233 |
> |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
234 |
> |
</Tool> |
235 |
> |
EOF_TOOLFILE |
236 |
> |
|
237 |
> |
# roothtml toolfile |
238 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
239 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
240 |
> |
<Tool name=roothtml version=%v> |
241 |
> |
<info url="http://root.cern.ch/root/"></info> |
242 |
> |
<lib name=Html> |
243 |
> |
<use name=ROOT> |
244 |
> |
</Tool> |
245 |
> |
EOF_TOOLFILE |
246 |
> |
|
247 |
> |
# rootroofit toolfile |
248 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
249 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
250 |
> |
<Tool name=rootroofit version=%v> |
251 |
> |
<info url="http://root.cern.ch/root/"></info> |
252 |
> |
<lib name=RooFit> |
253 |
> |
<use name=ROOTMinuit> |
254 |
> |
<use name=ROOTHtml> |
255 |
> |
</Tool> |
256 |
> |
EOF_TOOLFILE |
257 |
> |
|
258 |
> |
# rootmlp toolfile |
259 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
260 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
261 |
> |
<Tool name=rootmlp version=%v> |
262 |
> |
<info url="http://root.cern.ch/root/"></info> |
263 |
> |
<lib name=MLP> |
264 |
> |
<use name=ROOT> |
265 |
> |
</Tool> |
266 |
> |
EOF_TOOLFILE |
267 |
> |
|
268 |
> |
# roottmva toolfile |
269 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
270 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
271 |
> |
<Tool name=roottmva version=%v> |
272 |
> |
<info url="http://root.cern.ch/root/"></info> |
273 |
> |
<lib name=TMVA> |
274 |
> |
<use name=ROOTMLP> |
275 |
> |
</Tool> |
276 |
> |
EOF_TOOLFILE |
277 |
> |
|
278 |
> |
# rootthread toolfile |
279 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
280 |
> |
<doc type=BuildSystem::ToolDoc version=1.0> |
281 |
> |
<Tool name=rootthread version=%v> |
282 |
> |
<info url="http://root.cern.ch/root/"></info> |
283 |
> |
<lib name=Thread> |
284 |
> |
<use name=ROOTCore> |
285 |
> |
</Tool> |
286 |
> |
EOF_TOOLFILE |
287 |
> |
|
288 |
> |
%post |
289 |
> |
%{relocateConfig}etc/scram.d/root |
290 |
> |
%{relocateConfig}etc/scram.d/rootcore |
291 |
> |
%{relocateConfig}etc/scram.d/rootcintex |
292 |
> |
%{relocateConfig}etc/scram.d/rootinteractive |
293 |
> |
%{relocateConfig}etc/scram.d/rootmath |
294 |
> |
%{relocateConfig}etc/scram.d/rootminuit |
295 |
> |
%{relocateConfig}etc/scram.d/rootminuit2 |
296 |
> |
%{relocateConfig}etc/scram.d/rootrflx |
297 |
> |
%{relocateConfig}etc/scram.d/roothtml |
298 |
> |
%{relocateConfig}etc/scram.d/rootroofit |
299 |
> |
%{relocateConfig}etc/scram.d/rootmlp |
300 |
> |
%{relocateConfig}etc/scram.d/roottmva |
301 |
> |
%{relocateConfig}etc/scram.d/rootthread |