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