1 |
< |
### RPM lcg root 5.22.00a |
1 |
> |
### RPM lcg root 5.26.00a |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
## INITENV SET ROOTSYS %i |
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 |
+ |
%define closingbrace ) |
7 |
+ |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac) |
8 |
|
|
9 |
|
Patch0: root-5.18-00-libpng |
10 |
< |
Patch1: root-5.21-04-CINT-maxlongline |
11 |
< |
Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once |
12 |
< |
Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again |
13 |
< |
Patch4: root-5.22-00a-CINTFunctional |
14 |
< |
Patch5: root-5.22-00a-TClass |
13 |
< |
Patch6: root-5.22-00a-fireworks-graf3d-gui |
14 |
< |
Patch7: root-5.22-00a-Reflex-Class |
15 |
< |
Patch8: root-5.22-00a-Cintex |
16 |
< |
Patch9: root-5.22-00a-roofit-silence-static-printout |
17 |
< |
Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up |
10 |
> |
Patch1: root-5.22-00-TMVA-shut-the-hell-up-for-once |
11 |
> |
Patch2: root-5.22-00a-roofit-silence-static-printout |
12 |
> |
Patch3: root-5.22-00d-linker-gnu-hash-style |
13 |
> |
Patch4: root-5.26-00a-CINT-maxlongline |
14 |
> |
Patch5: root-5.26-00a-silence-TMVA |
15 |
|
|
16 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
20 |
– |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
17 |
|
|
18 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
19 |
|
|
20 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
21 |
< |
Requires: qt openssl mysql libpng zlib libungif xrootd |
20 |
> |
%if "%online" != "true" |
21 |
> |
Requires: qt openssl libpng zlib libungif xrootd |
22 |
|
%else |
23 |
|
%define skiplibtiff true |
24 |
|
%endif |
39 |
|
%patch3 -p1 |
40 |
|
%patch4 -p1 |
41 |
|
%patch5 -p1 |
46 |
– |
%patch6 -p1 |
47 |
– |
%patch7 -p0 |
48 |
– |
%patch8 -p0 |
49 |
– |
%patch9 -p1 |
50 |
– |
%patch10 -p1 |
42 |
|
|
43 |
|
%build |
44 |
+ |
|
45 |
|
mkdir -p %i |
46 |
|
export ROOTSYS=%_builddir/root |
47 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
48 |
|
|
49 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
50 |
< |
# Build without mysql, and use system qt. |
58 |
< |
# Also skip xrootd and odbc for online case: |
49 |
> |
%if "%online" == "true" |
50 |
> |
# Use system qt. Also skip xrootd and odbc for online case: |
51 |
|
|
52 |
< |
EXTRA_CONFIG_ARGS=" |
61 |
< |
--disable-mysql |
52 |
> |
EXTRA_CONFIG_ARGS="--with-f77=/usr |
53 |
|
--disable-xrootd |
54 |
|
--disable-odbc |
55 |
< |
--enable-qt" |
55 |
> |
--disable-qt --disable-qtgsi" |
56 |
|
%else |
57 |
< |
EXTRA_CONFIG_ARGS=" |
57 |
> |
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
58 |
|
--with-xrootd=$XROOTD_ROOT |
68 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
59 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
60 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
61 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
61 |
> |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
62 |
> |
--enable-qtgsi" |
63 |
|
%endif |
64 |
|
|
65 |
< |
CONFIG_ARGS="--with-f77=${GCC_ROOT} |
75 |
< |
--enable-table |
65 |
> |
CONFIG_ARGS="--enable-table |
66 |
|
--disable-builtin-pcre |
67 |
|
--disable-builtin-freetype |
68 |
|
--disable-builtin-zlib |
69 |
|
--with-gccxml=${GCCXML_ROOT} |
70 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
70 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV} |
71 |
|
--enable-explicitlink |
82 |
– |
--enable-qtgsi |
72 |
|
--enable-mathmore |
73 |
|
--enable-reflex |
74 |
|
--enable-cintex |
75 |
|
--enable-minuit2 |
87 |
– |
--enable-roofit |
76 |
|
--disable-ldap |
77 |
|
--disable-krb5 |
78 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
80 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
81 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
82 |
|
--disable-pgsql |
83 |
+ |
--disable-mysql |
84 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
85 |
|
|
86 |
< |
#case %gccver in |
98 |
< |
# 4.*) |
99 |
< |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
100 |
< |
# ;; |
101 |
< |
#esac |
102 |
< |
|
103 |
< |
case $(uname)-$(uname -p) in |
86 |
> |
case $(uname)-$(uname -m) in |
87 |
|
Linux-x86_64) |
88 |
|
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
89 |
|
Linux-i*86) |
90 |
|
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
91 |
|
Darwin*) |
92 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
92 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
93 |
|
Linux-ppc64*) |
94 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
95 |
|
esac |
127 |
|
# SCRAM ToolBox toolfile |
128 |
|
mkdir -p %i/etc/scram.d |
129 |
|
# rootcore toolfile |
130 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
131 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
132 |
< |
<Tool name=rootcore version=%v> |
133 |
< |
<info url="http://root.cern.ch/root/"></info> |
134 |
< |
<lib name=Tree> |
135 |
< |
<lib name=Net> |
136 |
< |
<lib name=Thread> |
137 |
< |
<lib name=MathCore> |
138 |
< |
<lib name=RIO> |
139 |
< |
<lib name=Core> |
140 |
< |
<lib name=Cint> |
141 |
< |
<Client> |
142 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
143 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
144 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
145 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
146 |
< |
</Client> |
147 |
< |
<use name=sockets> |
148 |
< |
<use name=pcre> |
149 |
< |
<use name=zlib> |
150 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
151 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
152 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
170 |
< |
</Tool> |
130 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
131 |
> |
<tool name="rootcore" version="%v"> |
132 |
> |
<info url="http://root.cern.ch/root/"/> |
133 |
> |
<lib name="Tree"/> |
134 |
> |
<lib name="Net"/> |
135 |
> |
<lib name="Thread"/> |
136 |
> |
<lib name="MathCore"/> |
137 |
> |
<lib name="RIO"/> |
138 |
> |
<lib name="Core"/> |
139 |
> |
<lib name="Cint"/> |
140 |
> |
<client> |
141 |
> |
<environment name="ROOTCORE_BASE" default="%i"/> |
142 |
> |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
143 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
144 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
145 |
> |
</client> |
146 |
> |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
147 |
> |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
148 |
> |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
149 |
> |
<use name="sockets"/> |
150 |
> |
<use name="pcre"/> |
151 |
> |
<use name="zlib"/> |
152 |
> |
</tool> |
153 |
|
EOF_TOOLFILE |
154 |
|
|
155 |
|
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
156 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
157 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
158 |
< |
<Tool name=root version=%v> |
159 |
< |
<info url="http://root.cern.ch/root/"></info> |
160 |
< |
<use name=rootphysics> |
179 |
< |
</Tool> |
156 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
157 |
> |
<tool name="root" version="%v"> |
158 |
> |
<info url="http://root.cern.ch/root/"/> |
159 |
> |
<use name="rootphysics"/> |
160 |
> |
</tool> |
161 |
|
EOF_TOOLFILE |
162 |
|
|
163 |
|
# roothistmatrix toolfile |
164 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
165 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
166 |
< |
<Tool name=roothistmatrix version=%v> |
167 |
< |
<info url="http://root.cern.ch/root/"></info> |
168 |
< |
<lib name=Gpad> |
169 |
< |
<lib name=Graf> |
170 |
< |
<lib name=Hist> |
171 |
< |
<lib name=Matrix> |
172 |
< |
<use name=ROOTCore> |
173 |
< |
</Tool> |
164 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
165 |
> |
<tool name="roothistmatrix" version="%v"> |
166 |
> |
<info url="http://root.cern.ch/root/"/> |
167 |
> |
<lib name="Hist"/> |
168 |
> |
<lib name="Matrix"/> |
169 |
> |
<use name="ROOTCore"/> |
170 |
> |
</tool> |
171 |
> |
EOF_TOOLFILE |
172 |
> |
|
173 |
> |
# rootgpad toolfile |
174 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
175 |
> |
<tool name="rootgpad" version="%v"> |
176 |
> |
<info url="http://root.cern.ch/root/"/> |
177 |
> |
<lib name="Gpad"/> |
178 |
> |
<lib name="Graf"/> |
179 |
> |
<use name="roothistmatrix"/> |
180 |
> |
</tool> |
181 |
|
EOF_TOOLFILE |
182 |
|
|
183 |
|
# rootphysics toolfile |
184 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
185 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
186 |
< |
<Tool name=rootphysics version=%v> |
187 |
< |
<info url="http://root.cern.ch/root/"></info> |
188 |
< |
<lib name=Physics> |
189 |
< |
<use name=roothistmatrix> |
202 |
< |
</Tool> |
184 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
185 |
> |
<tool name="rootphysics" version="%v"> |
186 |
> |
<info url="http://root.cern.ch/root/"/> |
187 |
> |
<lib name="Physics"/> |
188 |
> |
<use name="roothistmatrix"/> |
189 |
> |
</tool> |
190 |
|
EOF_TOOLFILE |
191 |
|
|
192 |
|
# rootgraphics toolfile, identical to old "root" toolfile |
193 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
194 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
195 |
< |
<Tool name=rootgraphics version=%v> |
196 |
< |
<info url="http://root.cern.ch/root/"></info> |
197 |
< |
<lib name=TreePlayer> |
198 |
< |
<lib name=Graf3d> |
199 |
< |
<lib name=Postscript> |
200 |
< |
<use name=ROOTPhysics> |
214 |
< |
</Tool> |
193 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
194 |
> |
<tool name="rootgraphics" version="%v"> |
195 |
> |
<info url="http://root.cern.ch/root/"/> |
196 |
> |
<lib name="TreePlayer"/> |
197 |
> |
<lib name="Graf3d"/> |
198 |
> |
<lib name="Postscript"/> |
199 |
> |
<use name="rootgpad"/> |
200 |
> |
</tool> |
201 |
|
EOF_TOOLFILE |
202 |
|
|
203 |
|
# rootcintex toolfile |
204 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
205 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
206 |
< |
<Tool name=rootcintex version=%v> |
207 |
< |
<info url="http://root.cern.ch/root/"></info> |
208 |
< |
<lib name=Cintex> |
209 |
< |
<use name=ROOTRflx> |
210 |
< |
<use name=ROOTCore> |
225 |
< |
</Tool> |
204 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
205 |
> |
<tool name="rootcintex" version="%v"> |
206 |
> |
<info url="http://root.cern.ch/root/"/> |
207 |
> |
<lib name="Cintex"/> |
208 |
> |
<use name="ROOTRflx"/> |
209 |
> |
<use name="ROOTCore"/> |
210 |
> |
</tool> |
211 |
|
EOF_TOOLFILE |
212 |
|
|
213 |
|
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
214 |
|
# have been removed for the moment) |
215 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
216 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
217 |
< |
<Tool name=rootinteractive version=%v> |
218 |
< |
<info url="http://root.cern.ch/root/"></info> |
219 |
< |
<lib name=Rint> |
220 |
< |
<lib name=GQt> |
221 |
< |
<lib name=Gui> |
222 |
< |
<use name=qt> |
223 |
< |
<use name=libjpg> |
224 |
< |
<use name=libpng> |
225 |
< |
<use name=ROOT> |
241 |
< |
</Tool> |
215 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
216 |
> |
<tool name="rootinteractive" version="%v"> |
217 |
> |
<info url="http://root.cern.ch/root/"/> |
218 |
> |
<lib name="Rint"/> |
219 |
> |
<lib name="GQt"/> |
220 |
> |
<lib name="Gui"/> |
221 |
> |
<use name="qt"/> |
222 |
> |
<use name="libjpg"/> |
223 |
> |
<use name="libpng"/> |
224 |
> |
<use name="rootgpad"/> |
225 |
> |
</tool> |
226 |
|
EOF_TOOLFILE |
227 |
|
|
228 |
|
# rootmath toolfile |
229 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
230 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
231 |
< |
<Tool name=rootmath version=%v> |
232 |
< |
<info url="http://root.cern.ch/root/"></info> |
233 |
< |
<lib name=GenVector> |
234 |
< |
<lib name=MathMore> |
235 |
< |
<use name=ROOTCore> |
236 |
< |
<use name=gsl> |
253 |
< |
</Tool> |
229 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
230 |
> |
<tool name="rootmath" version="%v"> |
231 |
> |
<info url="http://root.cern.ch/root/"/> |
232 |
> |
<lib name="GenVector"/> |
233 |
> |
<lib name="MathMore"/> |
234 |
> |
<use name="ROOTCore"/> |
235 |
> |
<use name="gsl"/> |
236 |
> |
</tool> |
237 |
|
EOF_TOOLFILE |
238 |
|
|
239 |
|
# rootminuit toolfile |
240 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
241 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
242 |
< |
<Tool name=rootminuit version=%v> |
243 |
< |
<info url="http://root.cern.ch/root/"></info> |
244 |
< |
<lib name=Minuit> |
245 |
< |
<use name=ROOT> |
263 |
< |
</Tool> |
240 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
241 |
> |
<tool name="rootminuit" version="%v"> |
242 |
> |
<info url="http://root.cern.ch/root/"/> |
243 |
> |
<lib name="Minuit"/> |
244 |
> |
<use name="rootgpad"/> |
245 |
> |
</tool> |
246 |
|
EOF_TOOLFILE |
247 |
|
|
248 |
|
# rootminuit2 toolfile |
249 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
250 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
251 |
< |
<Tool name=rootminuit2 version=%v> |
252 |
< |
<info url="http://root.cern.ch/root/"></info> |
253 |
< |
<lib name=Minuit2> |
254 |
< |
<use name=ROOT> |
273 |
< |
</Tool> |
249 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
250 |
> |
<tool name="rootminuit2" version="%v"> |
251 |
> |
<info url="http://root.cern.ch/root/"/> |
252 |
> |
<lib name="Minuit2"/> |
253 |
> |
<use name="rootgpad"/> |
254 |
> |
</tool> |
255 |
|
EOF_TOOLFILE |
256 |
|
|
257 |
|
# rootrflx toolfile |
258 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
259 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
260 |
< |
<Tool name=rootrflx version=%v> |
261 |
< |
<info url="http://root.cern.ch/root/"></info> |
262 |
< |
<lib name=Reflex> |
263 |
< |
<Client> |
264 |
< |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
265 |
< |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
266 |
< |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
267 |
< |
</Client> |
268 |
< |
<use name=sockets> |
269 |
< |
<use name=gccxml> |
270 |
< |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
271 |
< |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
272 |
< |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
292 |
< |
</Tool> |
258 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
259 |
> |
<tool name="rootrflx" version="%v"> |
260 |
> |
<info url="http://root.cern.ch/root/"/> |
261 |
> |
<lib name="Reflex"/> |
262 |
> |
<client> |
263 |
> |
<environment name="ROOTRFLX_BASE" default="%i"/> |
264 |
> |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
265 |
> |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
266 |
> |
</client> |
267 |
> |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
268 |
> |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
269 |
> |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
270 |
> |
<use name="sockets"/> |
271 |
> |
<use name="gccxml"/> |
272 |
> |
</tool> |
273 |
|
EOF_TOOLFILE |
274 |
|
|
275 |
|
# roothtml toolfile |
276 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
277 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
278 |
< |
<Tool name=roothtml version=%v> |
279 |
< |
<info url="http://root.cern.ch/root/"></info> |
280 |
< |
<lib name=Html> |
281 |
< |
<use name=RootHistMatrix> |
302 |
< |
</Tool> |
303 |
< |
EOF_TOOLFILE |
304 |
< |
|
305 |
< |
# rootroofit toolfile |
306 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
307 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
308 |
< |
<Tool name=rootroofit version=%v> |
309 |
< |
<info url="http://root.cern.ch/root/"></info> |
310 |
< |
<lib name=RooFit> |
311 |
< |
<lib name=RooFitCore> |
312 |
< |
<use name=ROOTMinuit> |
313 |
< |
<use name=ROOTHtml> |
314 |
< |
</Tool> |
276 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
277 |
> |
<tool name="roothtml" version="%v"> |
278 |
> |
<info url="http://root.cern.ch/root/"/> |
279 |
> |
<lib name="Html"/> |
280 |
> |
<use name="rootgpad"/> |
281 |
> |
</tool> |
282 |
|
EOF_TOOLFILE |
283 |
|
|
284 |
|
# rootmlp toolfile |
285 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
286 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
287 |
< |
<Tool name=rootmlp version=%v> |
288 |
< |
<info url="http://root.cern.ch/root/"></info> |
289 |
< |
<lib name=MLP> |
290 |
< |
<use name=RootGraphics> |
324 |
< |
</Tool> |
285 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
286 |
> |
<tool name="rootmlp" version="%v"> |
287 |
> |
<info url="http://root.cern.ch/root/"/> |
288 |
> |
<lib name="MLP"/> |
289 |
> |
<use name="RootGraphics"/> |
290 |
> |
</tool> |
291 |
|
EOF_TOOLFILE |
292 |
|
|
293 |
|
# roottmva toolfile |
294 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
295 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
296 |
< |
<Tool name=roottmva version=%v> |
297 |
< |
<info url="http://root.cern.ch/root/"></info> |
298 |
< |
<lib name=TMVA> |
299 |
< |
<use name=ROOTMLP> |
300 |
< |
</Tool> |
294 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
295 |
> |
<tool name="roottmva" version="%v"> |
296 |
> |
<info url="http://root.cern.ch/root/"/> |
297 |
> |
<lib name="TMVA"/> |
298 |
> |
<use name="ROOTMLP"/> |
299 |
> |
<use name="rootminuit"/> |
300 |
> |
</tool> |
301 |
|
EOF_TOOLFILE |
302 |
|
|
303 |
|
# rootthread toolfile |
304 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
305 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
306 |
< |
<Tool name=rootthread version=%v> |
307 |
< |
<info url="http://root.cern.ch/root/"></info> |
308 |
< |
<use name=ROOTCore> |
343 |
< |
</Tool> |
304 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
305 |
> |
<tool name="rootthread" version="%v"> |
306 |
> |
<info url="http://root.cern.ch/root/"/> |
307 |
> |
<use name="ROOTCore"/> |
308 |
> |
</tool> |
309 |
|
EOF_TOOLFILE |
310 |
|
|
311 |
|
%post |
312 |
< |
%{relocateConfig}etc/scram.d/root |
348 |
< |
%{relocateConfig}etc/scram.d/rootcore |
349 |
< |
%{relocateConfig}etc/scram.d/roothistmatrix |
350 |
< |
%{relocateConfig}etc/scram.d/rootphysics |
351 |
< |
%{relocateConfig}etc/scram.d/rootgraphics |
352 |
< |
%{relocateConfig}etc/scram.d/rootcintex |
353 |
< |
%{relocateConfig}etc/scram.d/rootinteractive |
354 |
< |
%{relocateConfig}etc/scram.d/rootmath |
355 |
< |
%{relocateConfig}etc/scram.d/rootminuit |
356 |
< |
%{relocateConfig}etc/scram.d/rootminuit2 |
357 |
< |
%{relocateConfig}etc/scram.d/rootrflx |
358 |
< |
%{relocateConfig}etc/scram.d/roothtml |
359 |
< |
%{relocateConfig}etc/scram.d/rootroofit |
360 |
< |
%{relocateConfig}etc/scram.d/rootmlp |
361 |
< |
%{relocateConfig}etc/scram.d/roottmva |
362 |
< |
%{relocateConfig}etc/scram.d/rootthread |
312 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |