1 |
< |
### RPM lcg root 5.14.00g-CMS11 |
1 |
> |
### RPM lcg root 5.18.00-lite |
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 |
|
|
5 |
< |
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 |
5 |
> |
Source: ftp://root.cern.ch/%n/%{n}_v%{realversion}.source.tar.gz |
6 |
|
|
7 |
< |
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
8 |
< |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
19 |
< |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
7 |
> |
Patch0: root-5.18-00-libpng |
8 |
> |
Patch1: root-5.18-00-CINT-maxlongline-maxtypedef |
9 |
|
|
10 |
< |
%if "%cpu" != "amd64" |
11 |
< |
Requires: libtiff |
23 |
< |
%endif |
10 |
> |
#Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif |
11 |
> |
Requires: gccxml python gsl libjpg libpng dcap pcre libtiff libungif zlib |
12 |
|
|
13 |
|
%prep |
14 |
|
%setup -n root |
15 |
< |
%patch -p0 |
16 |
< |
%patch1 -p2 |
29 |
< |
%patch2 -p2 |
30 |
< |
%patch3 -p1 |
31 |
< |
%patch4 -p0 |
32 |
< |
%patch5 -p1 |
33 |
< |
%patch6 -p0 |
34 |
< |
%patch7 -p0 |
35 |
< |
%patch8 -p1 |
15 |
> |
%patch0 -p1 |
16 |
> |
%patch1 -p1 |
17 |
|
|
18 |
|
%build |
19 |
|
mkdir -p %i |
22 |
|
--disable-builtin-pcre |
23 |
|
--disable-builtin-freetype |
24 |
|
--disable-builtin-zlib |
25 |
< |
--with-gccxml=${GCCXML_ROOT} |
25 |
> |
--disable-oracle |
26 |
> |
--disable-mysql |
27 |
> |
--disable-qtgsi |
28 |
> |
--disable-qt |
29 |
> |
--disable-rfio |
30 |
> |
--disable-castor |
31 |
> |
--disable-ldap |
32 |
> |
--disable-krb5 |
33 |
> |
--disable-pgsql |
34 |
> |
--disable-xml |
35 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
46 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
36 |
|
--enable-explicitlink |
48 |
– |
--enable-qtgsi |
49 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
37 |
|
--enable-mathcore |
38 |
|
--enable-mathmore |
39 |
|
--enable-reflex |
40 |
|
--enable-cintex |
41 |
|
--enable-minuit2 |
42 |
|
--enable-roofit |
43 |
< |
--disable-ldap |
57 |
< |
--disable-krb5 |
43 |
> |
--with-gccxml=${GCCXML_ROOT} |
44 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
45 |
|
--with-ssl-libdir=${OPENSSL_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 |
64 |
< |
--with-xrootd=$XROOTD_ROOT |
65 |
< |
--disable-pgsql |
66 |
< |
--disable-xml" |
49 |
> |
--with-dcap-incdir=${DCAP_ROOT}/include" |
50 |
|
|
51 |
|
case $(uname)-$(uname -p) in |
52 |
|
Linux-x86_64) |
53 |
< |
./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;; |
53 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --disable-astiff --disable-cern;; |
54 |
|
Linux-i*86) |
55 |
< |
./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;; |
55 |
> |
./configure linux $CONFIG_ARGS;; |
56 |
|
Darwin*) |
57 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
57 |
> |
./configure macosx $CONFIG_ARGS;; |
58 |
|
Linux-ppc64*) |
59 |
< |
./configure linux $CONFIG_ARGS --disable-rfio;; |
59 |
> |
./configure linux $CONFIG_ARGS;; |
60 |
|
esac |
61 |
|
|
62 |
|
make %makeprocesses |
78 |
|
mkdir -p $ROOTSYS/lib/python |
79 |
|
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
80 |
|
# |
98 |
– |
|
99 |
– |
# SCRAM ToolBox toolfile |
100 |
– |
mkdir -p %i/etc/scram.d |
101 |
– |
# rootcore toolfile |
102 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
103 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
104 |
– |
<Tool name=rootcore version=%v> |
105 |
– |
<info url="http://root.cern.ch/root/"></info> |
106 |
– |
<lib name=Cint> |
107 |
– |
<lib name=Core> |
108 |
– |
<lib name=Tree> |
109 |
– |
<Client> |
110 |
– |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
111 |
– |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
112 |
– |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
113 |
– |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
114 |
– |
</Client> |
115 |
– |
<use name=sockets> |
116 |
– |
<use name=pcre> |
117 |
– |
<use name=zlib> |
118 |
– |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
119 |
– |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
120 |
– |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
121 |
– |
</Tool> |
122 |
– |
EOF_TOOLFILE |
123 |
– |
|
124 |
– |
# root toolfile |
125 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
126 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
127 |
– |
<Tool name=root version=%v> |
128 |
– |
<info url="http://root.cern.ch/root/"></info> |
129 |
– |
<lib name=TreePlayer> |
130 |
– |
<lib name=Gpad> |
131 |
– |
<lib name=Graf3d> |
132 |
– |
<lib name=Graf> |
133 |
– |
<lib name=Hist> |
134 |
– |
<lib name=Matrix> |
135 |
– |
<lib name=Physics> |
136 |
– |
<lib name=Postscript> |
137 |
– |
<use name=ROOTCore> |
138 |
– |
</Tool> |
139 |
– |
EOF_TOOLFILE |
140 |
– |
|
141 |
– |
# rootcintex toolfile |
142 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
143 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
144 |
– |
<Tool name=rootcintex version=%v> |
145 |
– |
<info url="http://root.cern.ch/root/"></info> |
146 |
– |
<lib name=Cintex> |
147 |
– |
<use name=ROOTRflx> |
148 |
– |
<use name=ROOTCore> |
149 |
– |
</Tool> |
150 |
– |
EOF_TOOLFILE |
151 |
– |
|
152 |
– |
# rootinteractive toolfile |
153 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
154 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
155 |
– |
<Tool name=rootinteractive version=%v> |
156 |
– |
<info url="http://root.cern.ch/root/"></info> |
157 |
– |
<lib name=Rint> |
158 |
– |
<lib name=GQt> |
159 |
– |
<use name=qt> |
160 |
– |
<use name=libjpg> |
161 |
– |
<use name=libpng> |
162 |
– |
<use name=ROOT> |
163 |
– |
</Tool> |
164 |
– |
EOF_TOOLFILE |
165 |
– |
|
166 |
– |
# rootmath toolfile |
167 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
168 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
169 |
– |
<Tool name=rootmath version=%v> |
170 |
– |
<info url="http://root.cern.ch/root/"></info> |
171 |
– |
<lib name=MathCore> |
172 |
– |
<lib name=MathMore> |
173 |
– |
<use name=ROOTCore> |
174 |
– |
<use name=gsl> |
175 |
– |
</Tool> |
176 |
– |
EOF_TOOLFILE |
177 |
– |
|
178 |
– |
# rootminuit toolfile |
179 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
180 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
181 |
– |
<Tool name=rootminuit version=%v> |
182 |
– |
<info url="http://root.cern.ch/root/"></info> |
183 |
– |
<lib name=Minuit> |
184 |
– |
<use name=ROOT> |
185 |
– |
</Tool> |
186 |
– |
EOF_TOOLFILE |
187 |
– |
|
188 |
– |
# rootminuit2 toolfile |
189 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
190 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
191 |
– |
<Tool name=rootminuit2 version=%v> |
192 |
– |
<info url="http://root.cern.ch/root/"></info> |
193 |
– |
<lib name=Minuit2> |
194 |
– |
<use name=ROOT> |
195 |
– |
</Tool> |
196 |
– |
EOF_TOOLFILE |
197 |
– |
|
198 |
– |
# rootrflx toolfile |
199 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
200 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
201 |
– |
<Tool name=rootrflx version=%v> |
202 |
– |
<info url="http://root.cern.ch/root/"></info> |
203 |
– |
<lib name=Reflex> |
204 |
– |
<Client> |
205 |
– |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
206 |
– |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
207 |
– |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
208 |
– |
</Client> |
209 |
– |
<use name=sockets> |
210 |
– |
<use name=gccxml> |
211 |
– |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
212 |
– |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
213 |
– |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
214 |
– |
</Tool> |
215 |
– |
EOF_TOOLFILE |
216 |
– |
|
217 |
– |
# roothtml toolfile |
218 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
219 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
220 |
– |
<Tool name=roothtml version=%v> |
221 |
– |
<info url="http://root.cern.ch/root/"></info> |
222 |
– |
<lib name=Html> |
223 |
– |
<use name=ROOT> |
224 |
– |
</Tool> |
225 |
– |
EOF_TOOLFILE |
226 |
– |
|
227 |
– |
# rootroofit toolfile |
228 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
229 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
230 |
– |
<Tool name=rootroofit version=%v> |
231 |
– |
<info url="http://root.cern.ch/root/"></info> |
232 |
– |
<lib name=RooFit> |
233 |
– |
<use name=ROOTMinuit> |
234 |
– |
<use name=ROOTHtml> |
235 |
– |
</Tool> |
236 |
– |
EOF_TOOLFILE |
237 |
– |
|
238 |
– |
# rootmlp toolfile |
239 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
240 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
241 |
– |
<Tool name=rootmlp version=%v> |
242 |
– |
<info url="http://root.cern.ch/root/"></info> |
243 |
– |
<lib name=MLP> |
244 |
– |
<use name=ROOT> |
245 |
– |
</Tool> |
246 |
– |
EOF_TOOLFILE |
247 |
– |
|
248 |
– |
# roottmva toolfile |
249 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
250 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
251 |
– |
<Tool name=roottmva version=%v> |
252 |
– |
<info url="http://root.cern.ch/root/"></info> |
253 |
– |
<lib name=TMVA> |
254 |
– |
<use name=ROOTMLP> |
255 |
– |
</Tool> |
256 |
– |
EOF_TOOLFILE |
257 |
– |
|
258 |
– |
# rootthread toolfile |
259 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
260 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
261 |
– |
<Tool name=rootthread version=%v> |
262 |
– |
<info url="http://root.cern.ch/root/"></info> |
263 |
– |
<lib name=Thread> |
264 |
– |
<use name=ROOTCore> |
265 |
– |
</Tool> |
266 |
– |
EOF_TOOLFILE |
267 |
– |
|
268 |
– |
%post |
269 |
– |
%{relocateConfig}etc/scram.d/root |
270 |
– |
%{relocateConfig}etc/scram.d/rootcore |
271 |
– |
%{relocateConfig}etc/scram.d/rootcintex |
272 |
– |
%{relocateConfig}etc/scram.d/rootinteractive |
273 |
– |
%{relocateConfig}etc/scram.d/rootmath |
274 |
– |
%{relocateConfig}etc/scram.d/rootminuit |
275 |
– |
%{relocateConfig}etc/scram.d/rootminuit2 |
276 |
– |
%{relocateConfig}etc/scram.d/rootrflx |
277 |
– |
%{relocateConfig}etc/scram.d/roothtml |
278 |
– |
%{relocateConfig}etc/scram.d/rootroofit |
279 |
– |
%{relocateConfig}etc/scram.d/rootmlp |
280 |
– |
%{relocateConfig}etc/scram.d/roottmva |
281 |
– |
%{relocateConfig}etc/scram.d/rootthread |