1 |
< |
### RPM lcg root 5.14.00g-CMS18 |
1 |
> |
### RPM lcg root 5.22.00d |
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 |
< |
# The following patch should only be applied for gcc4.x (x>0) and when |
16 |
< |
# using gccxml 0.7.0 |
17 |
< |
Patch9: root_5.14_reflex_gccxml070_update |
18 |
< |
Patch10: root-5.14-xrootd-20071001-0000a |
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-00d-fireworks-graf3d-gui |
14 |
> |
Patch5: root-5.22-00a-roofit-silence-static-printout |
15 |
> |
Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up |
16 |
> |
Patch7: root-5.22-00a-th1 |
17 |
> |
Patch8: root-5.22-00a-smatrix |
18 |
> |
Patch9: root-5.22-00a-fireworks1 |
19 |
> |
Patch10: root-5.22-00a-gcc44 |
20 |
> |
Patch11: root-5.22-00a-fireworks2 |
21 |
> |
Patch12: root-5.22-00a-fireworks3 |
22 |
> |
Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround |
23 |
> |
Patch14: root-5.22-00a-fireworks4 |
24 |
> |
Patch15: root-5.22-00d-fireworks5 |
25 |
> |
Patch16: root-5.22-00d-genreflex_python26_popen3 |
26 |
> |
Patch17: root-5.22-00d-fireworks6 |
27 |
> |
Patch18: root-5.22-00d-linker-gnu-hash-style |
28 |
> |
Patch19: root-5.22-00d-TFile-version3-Init |
29 |
|
|
30 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
21 |
– |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
22 |
– |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
31 |
|
|
32 |
< |
%if "%cpu" != "amd64" |
32 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
33 |
> |
|
34 |
> |
%if "%online" != "true" |
35 |
> |
Requires: qt openssl libpng zlib libungif xrootd |
36 |
> |
%else |
37 |
> |
%define skiplibtiff true |
38 |
> |
%endif |
39 |
> |
|
40 |
> |
%if "%cpu" == "amd64" |
41 |
> |
%define skiplibtiff true |
42 |
> |
%endif |
43 |
> |
|
44 |
> |
%if "%skiplibtiff" != "true" |
45 |
|
Requires: libtiff |
46 |
|
%endif |
47 |
|
|
48 |
|
%prep |
49 |
|
%setup -n root |
50 |
< |
%patch -p0 |
51 |
< |
%patch1 -p2 |
52 |
< |
%patch2 -p2 |
50 |
> |
%patch0 -p1 |
51 |
> |
%patch1 -p1 |
52 |
> |
%patch2 -p1 |
53 |
|
%patch3 -p1 |
54 |
< |
%patch4 -p0 |
54 |
> |
%patch4 -p1 |
55 |
> |
|
56 |
|
%patch5 -p1 |
57 |
< |
%patch6 -p0 |
58 |
< |
%patch7 -p0 |
59 |
< |
%if "%cmsplatf" == "slc4_ia32_gcc412" |
57 |
> |
%patch6 -p1 |
58 |
> |
%patch7 -p1 |
59 |
> |
%patch8 -p1 |
60 |
|
%patch9 -p1 |
61 |
< |
%endif |
61 |
> |
|
62 |
> |
# patch10 is compiler version dependent, see below |
63 |
> |
%patch11 -p1 |
64 |
> |
%patch12 -p1 |
65 |
> |
# patch13 is compiler version dependent, see below |
66 |
> |
|
67 |
> |
# work around patch issue... |
68 |
> |
rm graf3d/gl/src/gl2ps.c |
69 |
> |
%patch14 -p1 |
70 |
> |
#work around patch issues in patch14(?) |
71 |
> |
rm graf3d/eve/inc/TEveLegoOverlay.h.orig |
72 |
> |
rm graf3d/eve/src/TEveLegoOverlay.cxx |
73 |
> |
rm graf3d/gl/inc/gl2ps.h.orig |
74 |
> |
rm graf3d/gl/src/gl2ps.c.orig |
75 |
> |
%patch15 -p1 |
76 |
> |
%patch16 -p1 |
77 |
> |
%patch17 -p1 |
78 |
> |
%patch19 -p1 |
79 |
> |
|
80 |
> |
case %gccver in |
81 |
> |
4.3.*) |
82 |
> |
%patch13 -p1 |
83 |
> |
;; |
84 |
> |
4.4.*) |
85 |
|
%patch10 -p1 |
86 |
+ |
;; |
87 |
+ |
esac |
88 |
+ |
|
89 |
+ |
# The following patch can only be applied on SLC5 or later (extra linker |
90 |
+ |
# options only available with the SLC5 binutils) |
91 |
+ |
case %cmsplatf in |
92 |
+ |
slc5_* | slc5onl_* ) |
93 |
+ |
%patch18 -p1 |
94 |
+ |
;; |
95 |
+ |
esac |
96 |
|
|
97 |
|
%build |
98 |
+ |
|
99 |
|
mkdir -p %i |
100 |
|
export ROOTSYS=%_builddir/root |
101 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
102 |
+ |
|
103 |
+ |
%if "%online" == "true" |
104 |
+ |
# Use system qt. Also skip xrootd and odbc for online case: |
105 |
+ |
|
106 |
+ |
EXTRA_CONFIG_ARGS="--with-f77=/usr |
107 |
+ |
--disable-xrootd |
108 |
+ |
--disable-odbc |
109 |
+ |
--disable-qt --disable-qtgsi" |
110 |
+ |
%else |
111 |
+ |
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
112 |
+ |
--with-xrootd=$XROOTD_ROOT |
113 |
+ |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
114 |
+ |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
115 |
+ |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
116 |
+ |
--enable-qtgsi" |
117 |
+ |
%endif |
118 |
+ |
|
119 |
|
CONFIG_ARGS="--enable-table |
120 |
|
--disable-builtin-pcre |
121 |
|
--disable-builtin-freetype |
122 |
|
--disable-builtin-zlib |
123 |
|
--with-gccxml=${GCCXML_ROOT} |
124 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
52 |
< |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
124 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV} |
125 |
|
--enable-explicitlink |
54 |
– |
--enable-qtgsi |
55 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
56 |
– |
--enable-mathcore |
126 |
|
--enable-mathmore |
127 |
|
--enable-reflex |
128 |
|
--enable-cintex |
129 |
|
--enable-minuit2 |
61 |
– |
--enable-roofit |
130 |
|
--disable-ldap |
131 |
|
--disable-krb5 |
64 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
65 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
132 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
133 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
134 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
135 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
70 |
– |
--with-xrootd=$XROOTD_ROOT |
136 |
|
--disable-pgsql |
137 |
< |
--disable-xml" |
137 |
> |
--disable-mysql |
138 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
139 |
|
|
140 |
< |
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_amd64_gcc345")) |
75 |
< |
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
76 |
< |
%endif |
77 |
< |
|
78 |
< |
case $(uname)-$(uname -p) in |
140 |
> |
case $(uname)-$(uname -m) in |
141 |
|
Linux-x86_64) |
142 |
< |
./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;; |
142 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
143 |
|
Linux-i*86) |
144 |
< |
./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;; |
144 |
> |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
145 |
|
Darwin*) |
146 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio;; |
146 |
> |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
147 |
|
Linux-ppc64*) |
148 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
149 |
|
esac |
150 |
|
|
151 |
< |
make %makeprocesses |
151 |
> |
case %cmsplatf in |
152 |
> |
osx*) |
153 |
> |
makeopts= |
154 |
> |
;; |
155 |
> |
*) |
156 |
> |
makeopts="%makeprocesses" |
157 |
> |
;; |
158 |
> |
esac |
159 |
> |
|
160 |
> |
make $makeopts |
161 |
|
make cintdlls |
162 |
+ |
|
163 |
|
%install |
164 |
|
# Override installers if we are using GNU fileutils cp. On OS X |
165 |
|
# ROOT's INSTALL is defined to "cp -pPR", which only works with |
175 |
|
export ROOTSYS=%i |
176 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
177 |
|
mkdir -p $ROOTSYS/lib/python |
178 |
< |
cp -r reflex/python/genreflex $ROOTSYS/lib/python |
178 |
> |
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
179 |
|
# |
180 |
|
|
181 |
|
# SCRAM ToolBox toolfile |
182 |
|
mkdir -p %i/etc/scram.d |
183 |
|
# rootcore toolfile |
184 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
185 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
186 |
< |
<Tool name=rootcore version=%v> |
187 |
< |
<info url="http://root.cern.ch/root/"></info> |
188 |
< |
<lib name=Cint> |
189 |
< |
<lib name=Core> |
190 |
< |
<lib name=Tree> |
191 |
< |
<Client> |
192 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
193 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
194 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
195 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
196 |
< |
</Client> |
197 |
< |
<use name=sockets> |
198 |
< |
<use name=pcre> |
199 |
< |
<use name=zlib> |
200 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
201 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
202 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
203 |
< |
</Tool> |
204 |
< |
EOF_TOOLFILE |
205 |
< |
|
206 |
< |
# root toolfile |
207 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
208 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
209 |
< |
<Tool name=root version=%v> |
210 |
< |
<info url="http://root.cern.ch/root/"></info> |
211 |
< |
<lib name=TreePlayer> |
212 |
< |
<lib name=Gpad> |
213 |
< |
<lib name=Graf3d> |
214 |
< |
<lib name=Graf> |
215 |
< |
<lib name=Hist> |
216 |
< |
<lib name=Matrix> |
217 |
< |
<lib name=Physics> |
218 |
< |
<lib name=Postscript> |
219 |
< |
<use name=ROOTCore> |
220 |
< |
</Tool> |
184 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
185 |
> |
<tool name="rootcore" version="%v"> |
186 |
> |
<info url="http://root.cern.ch/root/"/> |
187 |
> |
<lib name="Tree"/> |
188 |
> |
<lib name="Net"/> |
189 |
> |
<lib name="Thread"/> |
190 |
> |
<lib name="MathCore"/> |
191 |
> |
<lib name="RIO"/> |
192 |
> |
<lib name="Core"/> |
193 |
> |
<lib name="Cint"/> |
194 |
> |
<client> |
195 |
> |
<environment name="ROOTCORE_BASE" default="%i"/> |
196 |
> |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
197 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
198 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
199 |
> |
</client> |
200 |
> |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
201 |
> |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
202 |
> |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
203 |
> |
<use name="sockets"/> |
204 |
> |
<use name="pcre"/> |
205 |
> |
<use name="zlib"/> |
206 |
> |
</tool> |
207 |
> |
EOF_TOOLFILE |
208 |
> |
|
209 |
> |
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
210 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
211 |
> |
<tool name="root" version="%v"> |
212 |
> |
<info url="http://root.cern.ch/root/"/> |
213 |
> |
<use name="rootphysics"/> |
214 |
> |
</tool> |
215 |
> |
EOF_TOOLFILE |
216 |
> |
|
217 |
> |
# roothistmatrix toolfile |
218 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
219 |
> |
<tool name="roothistmatrix" version="%v"> |
220 |
> |
<info url="http://root.cern.ch/root/"/> |
221 |
> |
<lib name="Hist"/> |
222 |
> |
<lib name="Matrix"/> |
223 |
> |
<use name="ROOTCore"/> |
224 |
> |
</tool> |
225 |
> |
EOF_TOOLFILE |
226 |
> |
|
227 |
> |
# rootgpad toolfile |
228 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
229 |
> |
<tool name="rootgpad" version="%v"> |
230 |
> |
<info url="http://root.cern.ch/root/"/> |
231 |
> |
<lib name="Gpad"/> |
232 |
> |
<lib name="Graf"/> |
233 |
> |
<use name="roothistmatrix"/> |
234 |
> |
</tool> |
235 |
> |
EOF_TOOLFILE |
236 |
> |
|
237 |
> |
# rootphysics toolfile |
238 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
239 |
> |
<tool name="rootphysics" version="%v"> |
240 |
> |
<info url="http://root.cern.ch/root/"/> |
241 |
> |
<lib name="Physics"/> |
242 |
> |
<use name="roothistmatrix"/> |
243 |
> |
</tool> |
244 |
> |
EOF_TOOLFILE |
245 |
> |
|
246 |
> |
# rootgraphics toolfile, identical to old "root" toolfile |
247 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
248 |
> |
<tool name="rootgraphics" version="%v"> |
249 |
> |
<info url="http://root.cern.ch/root/"/> |
250 |
> |
<lib name="TreePlayer"/> |
251 |
> |
<lib name="Graf3d"/> |
252 |
> |
<lib name="Postscript"/> |
253 |
> |
<use name="rootgpad"/> |
254 |
> |
</tool> |
255 |
|
EOF_TOOLFILE |
256 |
|
|
257 |
|
# rootcintex toolfile |
258 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
259 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
260 |
< |
<Tool name=rootcintex version=%v> |
261 |
< |
<info url="http://root.cern.ch/root/"></info> |
262 |
< |
<lib name=Cintex> |
263 |
< |
<use name=ROOTRflx> |
264 |
< |
<use name=ROOTCore> |
265 |
< |
</Tool> |
266 |
< |
EOF_TOOLFILE |
267 |
< |
|
268 |
< |
# rootinteractive toolfile |
269 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
270 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
271 |
< |
<Tool name=rootinteractive version=%v> |
272 |
< |
<info url="http://root.cern.ch/root/"></info> |
273 |
< |
<lib name=Rint> |
274 |
< |
<lib name=GQt> |
275 |
< |
<use name=qt> |
276 |
< |
<use name=libjpg> |
277 |
< |
<use name=libpng> |
278 |
< |
<use name=ROOT> |
279 |
< |
</Tool> |
258 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
259 |
> |
<tool name="rootcintex" version="%v"> |
260 |
> |
<info url="http://root.cern.ch/root/"/> |
261 |
> |
<lib name="Cintex"/> |
262 |
> |
<use name="ROOTRflx"/> |
263 |
> |
<use name="ROOTCore"/> |
264 |
> |
</tool> |
265 |
> |
EOF_TOOLFILE |
266 |
> |
|
267 |
> |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
268 |
> |
# have been removed for the moment) |
269 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
270 |
> |
<tool name="rootinteractive" version="%v"> |
271 |
> |
<info url="http://root.cern.ch/root/"/> |
272 |
> |
<lib name="Rint"/> |
273 |
> |
<lib name="GQt"/> |
274 |
> |
<lib name="Gui"/> |
275 |
> |
<use name="qt"/> |
276 |
> |
<use name="libjpg"/> |
277 |
> |
<use name="libpng"/> |
278 |
> |
<use name="rootgpad"/> |
279 |
> |
</tool> |
280 |
|
EOF_TOOLFILE |
281 |
|
|
282 |
|
# rootmath toolfile |
283 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
284 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
285 |
< |
<Tool name=rootmath version=%v> |
286 |
< |
<info url="http://root.cern.ch/root/"></info> |
287 |
< |
<lib name=MathCore> |
288 |
< |
<lib name=MathMore> |
289 |
< |
<use name=ROOTCore> |
290 |
< |
<use name=gsl> |
185 |
< |
</Tool> |
283 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
284 |
> |
<tool name="rootmath" version="%v"> |
285 |
> |
<info url="http://root.cern.ch/root/"/> |
286 |
> |
<lib name="GenVector"/> |
287 |
> |
<lib name="MathMore"/> |
288 |
> |
<use name="ROOTCore"/> |
289 |
> |
<use name="gsl"/> |
290 |
> |
</tool> |
291 |
|
EOF_TOOLFILE |
292 |
|
|
293 |
|
# rootminuit toolfile |
294 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
295 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
296 |
< |
<Tool name=rootminuit version=%v> |
297 |
< |
<info url="http://root.cern.ch/root/"></info> |
298 |
< |
<lib name=Minuit> |
299 |
< |
<use name=ROOT> |
195 |
< |
</Tool> |
294 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
295 |
> |
<tool name="rootminuit" version="%v"> |
296 |
> |
<info url="http://root.cern.ch/root/"/> |
297 |
> |
<lib name="Minuit"/> |
298 |
> |
<use name="rootgpad"/> |
299 |
> |
</tool> |
300 |
|
EOF_TOOLFILE |
301 |
|
|
302 |
|
# rootminuit2 toolfile |
303 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
304 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
305 |
< |
<Tool name=rootminuit2 version=%v> |
306 |
< |
<info url="http://root.cern.ch/root/"></info> |
307 |
< |
<lib name=Minuit2> |
308 |
< |
<use name=ROOT> |
205 |
< |
</Tool> |
303 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
304 |
> |
<tool name="rootminuit2" version="%v"> |
305 |
> |
<info url="http://root.cern.ch/root/"/> |
306 |
> |
<lib name="Minuit2"/> |
307 |
> |
<use name="rootgpad"/> |
308 |
> |
</tool> |
309 |
|
EOF_TOOLFILE |
310 |
|
|
311 |
|
# rootrflx toolfile |
312 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
313 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
314 |
< |
<Tool name=rootrflx version=%v> |
315 |
< |
<info url="http://root.cern.ch/root/"></info> |
316 |
< |
<lib name=Reflex> |
317 |
< |
<Client> |
318 |
< |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
319 |
< |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
320 |
< |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
321 |
< |
</Client> |
322 |
< |
<use name=sockets> |
323 |
< |
<use name=gccxml> |
324 |
< |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
325 |
< |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
326 |
< |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
224 |
< |
</Tool> |
312 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
313 |
> |
<tool name="rootrflx" version="%v"> |
314 |
> |
<info url="http://root.cern.ch/root/"/> |
315 |
> |
<lib name="Reflex"/> |
316 |
> |
<client> |
317 |
> |
<environment name="ROOTRFLX_BASE" default="%i"/> |
318 |
> |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
319 |
> |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
320 |
> |
</client> |
321 |
> |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
322 |
> |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
323 |
> |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
324 |
> |
<use name="sockets"/> |
325 |
> |
<use name="gccxml"/> |
326 |
> |
</tool> |
327 |
|
EOF_TOOLFILE |
328 |
|
|
329 |
|
# roothtml toolfile |
330 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
331 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
332 |
< |
<Tool name=roothtml version=%v> |
333 |
< |
<info url="http://root.cern.ch/root/"></info> |
334 |
< |
<lib name=Html> |
335 |
< |
<use name=ROOT> |
234 |
< |
</Tool> |
235 |
< |
EOF_TOOLFILE |
236 |
< |
|
237 |
< |
# rootroofit toolfile |
238 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit |
239 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
240 |
< |
<Tool name=rootroofit version=%v> |
241 |
< |
<info url="http://root.cern.ch/root/"></info> |
242 |
< |
<lib name=RooFit> |
243 |
< |
<use name=ROOTMinuit> |
244 |
< |
<use name=ROOTHtml> |
245 |
< |
</Tool> |
330 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
331 |
> |
<tool name="roothtml" version="%v"> |
332 |
> |
<info url="http://root.cern.ch/root/"/> |
333 |
> |
<lib name="Html"/> |
334 |
> |
<use name="rootgpad"/> |
335 |
> |
</tool> |
336 |
|
EOF_TOOLFILE |
337 |
|
|
338 |
|
# rootmlp toolfile |
339 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
340 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
341 |
< |
<Tool name=rootmlp version=%v> |
342 |
< |
<info url="http://root.cern.ch/root/"></info> |
343 |
< |
<lib name=MLP> |
344 |
< |
<use name=ROOT> |
255 |
< |
</Tool> |
339 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
340 |
> |
<tool name="rootmlp" version="%v"> |
341 |
> |
<info url="http://root.cern.ch/root/"/> |
342 |
> |
<lib name="MLP"/> |
343 |
> |
<use name="RootGraphics"/> |
344 |
> |
</tool> |
345 |
|
EOF_TOOLFILE |
346 |
|
|
347 |
|
# roottmva toolfile |
348 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
349 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
350 |
< |
<Tool name=roottmva version=%v> |
351 |
< |
<info url="http://root.cern.ch/root/"></info> |
352 |
< |
<lib name=TMVA> |
353 |
< |
<use name=ROOTMLP> |
354 |
< |
</Tool> |
348 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
349 |
> |
<tool name="roottmva" version="%v"> |
350 |
> |
<info url="http://root.cern.ch/root/"/> |
351 |
> |
<lib name="TMVA"/> |
352 |
> |
<use name="ROOTMLP"/> |
353 |
> |
<use name="rootminuit"/> |
354 |
> |
</tool> |
355 |
|
EOF_TOOLFILE |
356 |
|
|
357 |
|
# rootthread toolfile |
358 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
359 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
360 |
< |
<Tool name=rootthread version=%v> |
361 |
< |
<info url="http://root.cern.ch/root/"></info> |
362 |
< |
<lib name=Thread> |
274 |
< |
<use name=ROOTCore> |
275 |
< |
</Tool> |
358 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
359 |
> |
<tool name="rootthread" version="%v"> |
360 |
> |
<info url="http://root.cern.ch/root/"/> |
361 |
> |
<use name="ROOTCore"/> |
362 |
> |
</tool> |
363 |
|
EOF_TOOLFILE |
364 |
|
|
365 |
|
%post |
366 |
< |
%{relocateConfig}etc/scram.d/root |
280 |
< |
%{relocateConfig}etc/scram.d/rootcore |
281 |
< |
%{relocateConfig}etc/scram.d/rootcintex |
282 |
< |
%{relocateConfig}etc/scram.d/rootinteractive |
283 |
< |
%{relocateConfig}etc/scram.d/rootmath |
284 |
< |
%{relocateConfig}etc/scram.d/rootminuit |
285 |
< |
%{relocateConfig}etc/scram.d/rootminuit2 |
286 |
< |
%{relocateConfig}etc/scram.d/rootrflx |
287 |
< |
%{relocateConfig}etc/scram.d/roothtml |
288 |
< |
%{relocateConfig}etc/scram.d/rootroofit |
289 |
< |
%{relocateConfig}etc/scram.d/rootmlp |
290 |
< |
%{relocateConfig}etc/scram.d/roottmva |
291 |
< |
%{relocateConfig}etc/scram.d/rootthread |
366 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |