1 |
< |
### RPM lcg root 5.13.04e |
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.14.00g-CMS10 |
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 |
> |
|
14 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
15 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
16 |
< |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle |
16 |
> |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif |
17 |
|
|
18 |
|
%if "%cpu" != "amd64" |
19 |
|
Requires: libtiff |
21 |
|
|
22 |
|
%prep |
23 |
|
%setup -n root |
24 |
+ |
%patch -p0 |
25 |
+ |
%patch1 -p2 |
26 |
+ |
%patch2 -p2 |
27 |
+ |
%patch3 -p1 |
28 |
+ |
%patch4 -p0 |
29 |
+ |
%patch5 -p1 |
30 |
|
%build |
31 |
|
mkdir -p %i |
32 |
|
export ROOTSYS=%_builddir/root |
37 |
|
--with-gccxml=${GCCXML_ROOT} |
38 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
39 |
|
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
26 |
– |
--enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include |
40 |
|
--enable-explicitlink |
41 |
|
--enable-qtgsi |
42 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
48 |
|
--enable-roofit |
49 |
|
--disable-ldap |
50 |
|
--disable-krb5 |
38 |
– |
--with-dcap-libdir=${DCAP_ROOT}/lib |
39 |
– |
--with-dcap-incdir=${DCAP_ROOT}/include |
51 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
52 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
42 |
– |
--with-shift-incdir=${CASTOR_ROOT}/include/shift |
43 |
– |
--with-shift-libdir=${CASTOR_ROOT}/lib |
53 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
54 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
55 |
+ |
--with-dcap-libdir=${DCAP_ROOT}/lib |
56 |
+ |
--with-dcap-incdir=${DCAP_ROOT}/include |
57 |
|
--disable-pgsql |
58 |
|
--disable-xml" |
59 |
|
|
60 |
< |
case $(uname)-$(uname -m) in |
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=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=RooFit> |
225 |
+ |
<use name=ROOTMinuit> |
226 |
+ |
<use name=ROOTHtml> |
227 |
+ |
</Tool> |
228 |
+ |
EOF_TOOLFILE |
229 |
+ |
|
230 |
+ |
# rootmlp toolfile |
231 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
232 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
233 |
+ |
<Tool name=rootmlp version=%v> |
234 |
+ |
<info url="http://root.cern.ch/root/"></info> |
235 |
+ |
<lib name=MLP> |
236 |
+ |
<use name=ROOT> |
237 |
+ |
</Tool> |
238 |
+ |
EOF_TOOLFILE |
239 |
+ |
|
240 |
+ |
# roottmva toolfile |
241 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
242 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
243 |
+ |
<Tool name=roottmva version=%v> |
244 |
+ |
<info url="http://root.cern.ch/root/"></info> |
245 |
+ |
<lib name=TMVA> |
246 |
+ |
<use name=ROOTMLP> |
247 |
+ |
</Tool> |
248 |
+ |
EOF_TOOLFILE |
249 |
+ |
|
250 |
+ |
# rootthread toolfile |
251 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
252 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
253 |
+ |
<Tool name=rootthread version=%v> |
254 |
+ |
<info url="http://root.cern.ch/root/"></info> |
255 |
+ |
<lib name=Thread> |
256 |
+ |
<use name=ROOTCore> |
257 |
+ |
</Tool> |
258 |
+ |
EOF_TOOLFILE |
259 |
+ |
|
260 |
+ |
%post |
261 |
+ |
%{relocateConfig}etc/scram.d/root |
262 |
+ |
%{relocateConfig}etc/scram.d/rootcore |
263 |
+ |
%{relocateConfig}etc/scram.d/rootcintex |
264 |
+ |
%{relocateConfig}etc/scram.d/rootinteractive |
265 |
+ |
%{relocateConfig}etc/scram.d/rootmath |
266 |
+ |
%{relocateConfig}etc/scram.d/rootminuit |
267 |
+ |
%{relocateConfig}etc/scram.d/rootminuit2 |
268 |
+ |
%{relocateConfig}etc/scram.d/rootrflx |
269 |
+ |
%{relocateConfig}etc/scram.d/roothtml |
270 |
+ |
%{relocateConfig}etc/scram.d/rootroofit |
271 |
+ |
%{relocateConfig}etc/scram.d/rootmlp |
272 |
+ |
%{relocateConfig}etc/scram.d/roottmva |
273 |
+ |
%{relocateConfig}etc/scram.d/rootthread |