1 |
< |
### RPM lcg root 5.22.00d |
1 |
> |
### RPM lcg root 5.27.06b |
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 flase;; esac) |
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 |
9 |
> |
Patch0: root-5.27-06-externals |
10 |
> |
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
11 |
> |
Patch2: root-5.22-00a-roofit-silence-static-printout |
12 |
> |
Patch3: root-5.22-00d-linker-gnu-hash-style |
13 |
> |
Patch4: root-5.22-00d-TBranchElement-dropped-data-member |
14 |
> |
Patch5: root-5.27-06-fireworks9 |
15 |
> |
Patch6: root-5.27-06b-gdb-backtrace |
16 |
> |
Patch7: root-5.27-06-tmva-DecisionTreeNode |
17 |
> |
Patch8: root-5.27-06b-r36567 |
18 |
> |
Patch9: root-5.27-06b-r36572 |
19 |
> |
Patch10: root-5.27-06b-r36707 |
20 |
> |
Patch11: root-5.27-06b-r36594 |
21 |
> |
Patch12: root-5.27-06b-tmva-MethodBase-initvar |
22 |
> |
Patch13: root-5.27-06b-tmva_Event_dynamic_hack |
23 |
> |
Patch14: root-5.27-06b-r37405 |
24 |
> |
Patch15: root-5.27-06b-r37556 |
25 |
|
|
26 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
27 |
– |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
28 |
– |
|
29 |
– |
Requires: gccxml gsl castor libjpg dcap pcre python |
27 |
|
|
28 |
+ |
Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3 |
29 |
|
%if "%online" != "true" |
30 |
< |
Requires: qt openssl mysql libpng zlib libungif xrootd |
33 |
< |
%else |
34 |
< |
%define skiplibtiff true |
35 |
< |
%endif |
36 |
< |
|
37 |
< |
%if "%cpu" == "amd64" |
38 |
< |
%define skiplibtiff true |
39 |
< |
%endif |
40 |
< |
|
41 |
< |
%if "%skiplibtiff" != "true" |
42 |
< |
Requires: libtiff |
30 |
> |
Requires: qt openssl libpng zlib libungif libtiff |
31 |
|
%endif |
32 |
|
|
33 |
|
%prep |
35 |
|
%patch0 -p1 |
36 |
|
%patch1 -p1 |
37 |
|
%patch2 -p1 |
38 |
< |
%patch3 -p1 |
38 |
> |
# patch3 is OS version dependent, see below |
39 |
|
%patch4 -p1 |
52 |
– |
|
40 |
|
%patch5 -p1 |
41 |
|
%patch6 -p1 |
42 |
|
%patch7 -p1 |
43 |
|
%patch8 -p1 |
44 |
|
%patch9 -p1 |
45 |
< |
|
59 |
< |
# patch10 is compiler version dependent, see below |
45 |
> |
%patch10 -p1 |
46 |
|
%patch11 -p1 |
47 |
|
%patch12 -p1 |
48 |
< |
# patch13 is compiler version dependent, see below |
63 |
< |
|
64 |
< |
# work around patch issue... |
65 |
< |
rm graf3d/gl/src/gl2ps.c |
48 |
> |
%patch13 -p1 |
49 |
|
%patch14 -p1 |
67 |
– |
#work around patch issues in patch14(?) |
68 |
– |
rm graf3d/eve/inc/TEveLegoOverlay.h.orig |
69 |
– |
rm graf3d/eve/src/TEveLegoOverlay.cxx |
70 |
– |
rm graf3d/gl/inc/gl2ps.h.orig |
71 |
– |
rm graf3d/gl/src/gl2ps.c.orig |
50 |
|
%patch15 -p1 |
51 |
|
|
52 |
< |
case %gccver in |
53 |
< |
4.3.*) |
54 |
< |
%patch13 -p1 |
55 |
< |
;; |
56 |
< |
4.4.*) |
79 |
< |
%patch10 -p1 |
52 |
> |
# The following patch can only be applied on SLC5 or later (extra linker |
53 |
> |
# options only available with the SLC5 binutils) |
54 |
> |
case %cmsplatf in |
55 |
> |
slc5_* | slc5onl_* ) |
56 |
> |
%patch3 -p1 |
57 |
|
;; |
58 |
|
esac |
59 |
< |
|
59 |
> |
|
60 |
|
%build |
61 |
|
|
62 |
|
mkdir -p %i |
63 |
+ |
export LIBJPG_ROOT |
64 |
|
export ROOTSYS=%_builddir/root |
65 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
66 |
|
|
67 |
|
%if "%online" == "true" |
68 |
< |
# Build without mysql, and use system qt. |
90 |
< |
# Also skip xrootd and odbc for online case: |
68 |
> |
# Use system qt. Also skip xrootd and odbc for online case: |
69 |
|
|
70 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
93 |
– |
--disable-mysql |
94 |
– |
--disable-xrootd |
71 |
|
--disable-odbc |
72 |
< |
--disable-qt --disable-qtgsi" |
72 |
> |
--disable-qt --disable-qtgsi --disable-astiff" |
73 |
|
%else |
74 |
+ |
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
75 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
99 |
– |
--with-xrootd=$XROOTD_ROOT |
100 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
76 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
77 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
78 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
84 |
|
--disable-builtin-freetype |
85 |
|
--disable-builtin-zlib |
86 |
|
--with-gccxml=${GCCXML_ROOT} |
87 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
87 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV} |
88 |
|
--enable-explicitlink |
89 |
|
--enable-mathmore |
90 |
|
--enable-reflex |
91 |
|
--enable-cintex |
92 |
|
--enable-minuit2 |
93 |
+ |
--enable-fftw3 |
94 |
+ |
--with-fftw3-incdir=${FFTW3_ROOT}/include |
95 |
+ |
--with-fftw3-libdir=${FFTW3_ROOT}/lib |
96 |
|
--disable-ldap |
97 |
|
--disable-krb5 |
98 |
+ |
--with-xrootd=${XROOTD_ROOT} |
99 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
100 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
101 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
102 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
103 |
|
--disable-pgsql |
104 |
+ |
--disable-mysql |
105 |
|
--disable-xml ${EXTRA_CONFIG_ARGS}" |
106 |
|
|
107 |
< |
#case %gccver in |
128 |
< |
# 4.*) |
129 |
< |
# CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |
130 |
< |
# ;; |
131 |
< |
#esac |
132 |
< |
|
133 |
< |
case $(uname)-$(uname -p) in |
107 |
> |
case $(uname)-$(uname -m) in |
108 |
|
Linux-x86_64) |
109 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
109 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
110 |
|
Linux-i*86) |
111 |
< |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
111 |
> |
./configure linux $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
112 |
|
Darwin*) |
113 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
113 |
> |
case %cmsplatf in |
114 |
> |
*_ia32_* ) |
115 |
> |
comparch=i386 ;; |
116 |
> |
*_amd64_* ) |
117 |
> |
comparch=x86_64 ;; |
118 |
> |
* ) |
119 |
> |
comparch=ppc ;; |
120 |
> |
esac |
121 |
> |
export CC="gcc -arch $comparch" CXX="g++ -arch $comparch" |
122 |
> |
./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
123 |
|
Linux-ppc64*) |
124 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
125 |
|
esac |
152 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
153 |
|
mkdir -p $ROOTSYS/lib/python |
154 |
|
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
172 |
– |
# |
155 |
|
|
156 |
|
# SCRAM ToolBox toolfile |
157 |
|
mkdir -p %i/etc/scram.d |
158 |
|
# rootcore toolfile |
159 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore |
160 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
161 |
< |
<Tool name=rootcore version=%v> |
162 |
< |
<info url="http://root.cern.ch/root/"></info> |
163 |
< |
<lib name=Tree> |
164 |
< |
<lib name=Net> |
165 |
< |
<lib name=Thread> |
166 |
< |
<lib name=MathCore> |
167 |
< |
<lib name=RIO> |
168 |
< |
<lib name=Core> |
169 |
< |
<lib name=Cint> |
170 |
< |
<Client> |
171 |
< |
<Environment name=ROOTCORE_BASE default="%i"></Environment> |
172 |
< |
<Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment> |
173 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment> |
174 |
< |
<Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment> |
175 |
< |
</Client> |
176 |
< |
<use name=sockets> |
177 |
< |
<use name=pcre> |
178 |
< |
<use name=zlib> |
179 |
< |
<Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path> |
180 |
< |
<Runtime name=ROOTSYS value="$ROOTCORE_BASE/"> |
181 |
< |
<Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path> |
200 |
< |
</Tool> |
159 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml |
160 |
> |
<tool name="rootcore" version="%v"> |
161 |
> |
<info url="http://root.cern.ch/root/"/> |
162 |
> |
<lib name="Tree"/> |
163 |
> |
<lib name="Net"/> |
164 |
> |
<lib name="Thread"/> |
165 |
> |
<lib name="MathCore"/> |
166 |
> |
<lib name="RIO"/> |
167 |
> |
<lib name="Core"/> |
168 |
> |
<lib name="Cint"/> |
169 |
> |
<client> |
170 |
> |
<environment name="ROOTCORE_BASE" default="%i"/> |
171 |
> |
<environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/> |
172 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/include"/> |
173 |
> |
<environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/> |
174 |
> |
</client> |
175 |
> |
<runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/> |
176 |
> |
<runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/> |
177 |
> |
<runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/> |
178 |
> |
<use name="sockets"/> |
179 |
> |
<use name="pcre"/> |
180 |
> |
<use name="zlib"/> |
181 |
> |
</tool> |
182 |
|
EOF_TOOLFILE |
183 |
|
|
184 |
|
# root toolfile, alias for rootphysics. Using rootphysics is preferred. |
185 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root |
186 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
187 |
< |
<Tool name=root version=%v> |
188 |
< |
<info url="http://root.cern.ch/root/"></info> |
189 |
< |
<use name=rootphysics> |
209 |
< |
</Tool> |
185 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml |
186 |
> |
<tool name="root" version="%v"> |
187 |
> |
<info url="http://root.cern.ch/root/"/> |
188 |
> |
<use name="rootphysics"/> |
189 |
> |
</tool> |
190 |
|
EOF_TOOLFILE |
191 |
|
|
192 |
|
# roothistmatrix toolfile |
193 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix |
194 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
195 |
< |
<Tool name=roothistmatrix version=%v> |
196 |
< |
<info url="http://root.cern.ch/root/"></info> |
197 |
< |
<lib name=Hist> |
198 |
< |
<lib name=Matrix> |
199 |
< |
<use name=ROOTCore> |
220 |
< |
</Tool> |
193 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
194 |
> |
<tool name="roothistmatrix" version="%v"> |
195 |
> |
<info url="http://root.cern.ch/root/"/> |
196 |
> |
<lib name="Hist"/> |
197 |
> |
<lib name="Matrix"/> |
198 |
> |
<use name="ROOTCore"/> |
199 |
> |
</tool> |
200 |
|
EOF_TOOLFILE |
201 |
|
|
202 |
|
# rootgpad toolfile |
203 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad |
204 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
205 |
< |
<Tool name=rootgpad version=%v> |
206 |
< |
<info url="http://root.cern.ch/root/"></info> |
207 |
< |
<lib name=Gpad> |
208 |
< |
<lib name=Graf> |
209 |
< |
<use name=roothistmatrix> |
231 |
< |
</Tool> |
203 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
204 |
> |
<tool name="rootgpad" version="%v"> |
205 |
> |
<info url="http://root.cern.ch/root/"/> |
206 |
> |
<lib name="Gpad"/> |
207 |
> |
<lib name="Graf"/> |
208 |
> |
<use name="roothistmatrix"/> |
209 |
> |
</tool> |
210 |
|
EOF_TOOLFILE |
211 |
|
|
212 |
|
# rootphysics toolfile |
213 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics |
214 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
215 |
< |
<Tool name=rootphysics version=%v> |
216 |
< |
<info url="http://root.cern.ch/root/"></info> |
217 |
< |
<lib name=Physics> |
218 |
< |
<use name=roothistmatrix> |
241 |
< |
</Tool> |
213 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml |
214 |
> |
<tool name="rootphysics" version="%v"> |
215 |
> |
<info url="http://root.cern.ch/root/"/> |
216 |
> |
<lib name="Physics"/> |
217 |
> |
<use name="roothistmatrix"/> |
218 |
> |
</tool> |
219 |
|
EOF_TOOLFILE |
220 |
|
|
221 |
|
# rootgraphics toolfile, identical to old "root" toolfile |
222 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics |
223 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
224 |
< |
<Tool name=rootgraphics version=%v> |
225 |
< |
<info url="http://root.cern.ch/root/"></info> |
226 |
< |
<lib name=TreePlayer> |
227 |
< |
<lib name=Graf3d> |
228 |
< |
<lib name=Postscript> |
229 |
< |
<use name=rootgpad> |
253 |
< |
</Tool> |
222 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml |
223 |
> |
<tool name="rootgraphics" version="%v"> |
224 |
> |
<info url="http://root.cern.ch/root/"/> |
225 |
> |
<lib name="TreePlayer"/> |
226 |
> |
<lib name="Graf3d"/> |
227 |
> |
<lib name="Postscript"/> |
228 |
> |
<use name="rootgpad"/> |
229 |
> |
</tool> |
230 |
|
EOF_TOOLFILE |
231 |
|
|
232 |
|
# rootcintex toolfile |
233 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex |
234 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
235 |
< |
<Tool name=rootcintex version=%v> |
236 |
< |
<info url="http://root.cern.ch/root/"></info> |
237 |
< |
<lib name=Cintex> |
238 |
< |
<use name=ROOTRflx> |
239 |
< |
<use name=ROOTCore> |
240 |
< |
</Tool> |
241 |
< |
EOF_TOOLFILE |
242 |
< |
|
243 |
< |
# (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies |
244 |
< |
# have been removed for the moment) |
245 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive |
246 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
247 |
< |
<Tool name=rootinteractive version=%v> |
248 |
< |
<info url="http://root.cern.ch/root/"></info> |
249 |
< |
<lib name=Rint> |
250 |
< |
<lib name=GQt> |
251 |
< |
<lib name=Gui> |
252 |
< |
<use name=qt> |
253 |
< |
<use name=libjpg> |
254 |
< |
<use name=libpng> |
255 |
< |
<use name=rootgpad> |
256 |
< |
</Tool> |
233 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml |
234 |
> |
<tool name="rootcintex" version="%v"> |
235 |
> |
<info url="http://root.cern.ch/root/"/> |
236 |
> |
<lib name="Cintex"/> |
237 |
> |
<use name="ROOTRflx"/> |
238 |
> |
<use name="ROOTCore"/> |
239 |
> |
</tool> |
240 |
> |
EOF_TOOLFILE |
241 |
> |
|
242 |
> |
# rootinteractive toolfile (GQt/qt lib dependencies |
243 |
> |
# have been moved to rootqt.xml) |
244 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml |
245 |
> |
<tool name="rootinteractive" version="%v"> |
246 |
> |
<info url="http://root.cern.ch/root/"/> |
247 |
> |
<lib name="Rint"/> |
248 |
> |
<lib name="Gui"/> |
249 |
> |
<use name="libjpg"/> |
250 |
> |
<use name="libpng"/> |
251 |
> |
<use name="rootgpad"/> |
252 |
> |
</tool> |
253 |
> |
EOF_TOOLFILE |
254 |
> |
|
255 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml |
256 |
> |
<tool name="rootqt" version="%v"> |
257 |
> |
<info url="http://root.cern.ch/root/"/> |
258 |
> |
<lib name="GQt"/> |
259 |
> |
<use name="qt"/> |
260 |
> |
</tool> |
261 |
|
EOF_TOOLFILE |
262 |
|
|
263 |
|
# rootmath toolfile |
264 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath |
265 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
266 |
< |
<Tool name=rootmath version=%v> |
267 |
< |
<info url="http://root.cern.ch/root/"></info> |
268 |
< |
<lib name=GenVector> |
269 |
< |
<lib name=MathMore> |
270 |
< |
<use name=ROOTCore> |
271 |
< |
<use name=gsl> |
292 |
< |
</Tool> |
264 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml |
265 |
> |
<tool name="rootmath" version="%v"> |
266 |
> |
<info url="http://root.cern.ch/root/"/> |
267 |
> |
<lib name="GenVector"/> |
268 |
> |
<lib name="MathMore"/> |
269 |
> |
<use name="ROOTCore"/> |
270 |
> |
<use name="gsl"/> |
271 |
> |
</tool> |
272 |
|
EOF_TOOLFILE |
273 |
|
|
274 |
|
# rootminuit toolfile |
275 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit |
276 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
277 |
< |
<Tool name=rootminuit version=%v> |
278 |
< |
<info url="http://root.cern.ch/root/"></info> |
279 |
< |
<lib name=Minuit> |
280 |
< |
<use name=rootgpad> |
302 |
< |
</Tool> |
275 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml |
276 |
> |
<tool name="rootminuit" version="%v"> |
277 |
> |
<info url="http://root.cern.ch/root/"/> |
278 |
> |
<lib name="Minuit"/> |
279 |
> |
<use name="rootgpad"/> |
280 |
> |
</tool> |
281 |
|
EOF_TOOLFILE |
282 |
|
|
283 |
|
# rootminuit2 toolfile |
284 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2 |
285 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
286 |
< |
<Tool name=rootminuit2 version=%v> |
287 |
< |
<info url="http://root.cern.ch/root/"></info> |
288 |
< |
<lib name=Minuit2> |
289 |
< |
<use name=rootgpad> |
312 |
< |
</Tool> |
284 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml |
285 |
> |
<tool name="rootminuit2" version="%v"> |
286 |
> |
<info url="http://root.cern.ch/root/"/> |
287 |
> |
<lib name="Minuit2"/> |
288 |
> |
<use name="rootgpad"/> |
289 |
> |
</tool> |
290 |
|
EOF_TOOLFILE |
291 |
|
|
292 |
|
# rootrflx toolfile |
293 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx |
294 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
295 |
< |
<Tool name=rootrflx version=%v> |
296 |
< |
<info url="http://root.cern.ch/root/"></info> |
297 |
< |
<lib name=Reflex> |
298 |
< |
<Client> |
299 |
< |
<Environment name=ROOTRFLX_BASE default="%i"></Environment> |
300 |
< |
<Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment> |
301 |
< |
<Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment> |
302 |
< |
</Client> |
303 |
< |
<use name=sockets> |
304 |
< |
<use name=gccxml> |
305 |
< |
<Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path> |
306 |
< |
<Runtime name=ROOTSYS value="$ROOTRFLX_BASE/"> |
307 |
< |
<Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex"> |
331 |
< |
</Tool> |
293 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml |
294 |
> |
<tool name="rootrflx" version="%v"> |
295 |
> |
<info url="http://root.cern.ch/root/"/> |
296 |
> |
<lib name="Reflex"/> |
297 |
> |
<client> |
298 |
> |
<environment name="ROOTRFLX_BASE" default="%i"/> |
299 |
> |
<environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/> |
300 |
> |
<environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/> |
301 |
> |
</client> |
302 |
> |
<runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/> |
303 |
> |
<runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/> |
304 |
> |
<runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/> |
305 |
> |
<use name="sockets"/> |
306 |
> |
<use name="gccxml"/> |
307 |
> |
</tool> |
308 |
|
EOF_TOOLFILE |
309 |
|
|
310 |
|
# roothtml toolfile |
311 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml |
312 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
313 |
< |
<Tool name=roothtml version=%v> |
314 |
< |
<info url="http://root.cern.ch/root/"></info> |
315 |
< |
<lib name=Html> |
316 |
< |
<use name=rootgpad> |
341 |
< |
</Tool> |
311 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml |
312 |
> |
<tool name="roothtml" version="%v"> |
313 |
> |
<info url="http://root.cern.ch/root/"/> |
314 |
> |
<lib name="Html"/> |
315 |
> |
<use name="rootgpad"/> |
316 |
> |
</tool> |
317 |
|
EOF_TOOLFILE |
318 |
|
|
319 |
|
# rootmlp toolfile |
320 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp |
321 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
322 |
< |
<Tool name=rootmlp version=%v> |
323 |
< |
<info url="http://root.cern.ch/root/"></info> |
324 |
< |
<lib name=MLP> |
325 |
< |
<use name=RootGraphics> |
351 |
< |
</Tool> |
320 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml |
321 |
> |
<tool name="rootmlp" version="%v"> |
322 |
> |
<info url="http://root.cern.ch/root/"/> |
323 |
> |
<lib name="MLP"/> |
324 |
> |
<use name="RootGraphics"/> |
325 |
> |
</tool> |
326 |
|
EOF_TOOLFILE |
327 |
|
|
328 |
|
# roottmva toolfile |
329 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva |
330 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
331 |
< |
<Tool name=roottmva version=%v> |
332 |
< |
<info url="http://root.cern.ch/root/"></info> |
333 |
< |
<lib name=TMVA> |
334 |
< |
<use name=ROOTMLP> |
335 |
< |
<use name=rootminuit> |
362 |
< |
</Tool> |
329 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml |
330 |
> |
<tool name="roottmva" version="%v"> |
331 |
> |
<info url="http://root.cern.ch/root/"/> |
332 |
> |
<lib name="TMVA"/> |
333 |
> |
<use name="ROOTMLP"/> |
334 |
> |
<use name="rootminuit"/> |
335 |
> |
</tool> |
336 |
|
EOF_TOOLFILE |
337 |
|
|
338 |
|
# rootthread toolfile |
339 |
< |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread |
340 |
< |
<doc type=BuildSystem::ToolDoc version=1.0> |
341 |
< |
<Tool name=rootthread version=%v> |
342 |
< |
<info url="http://root.cern.ch/root/"></info> |
343 |
< |
<use name=ROOTCore> |
371 |
< |
</Tool> |
339 |
> |
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml |
340 |
> |
<tool name="rootthread" version="%v"> |
341 |
> |
<info url="http://root.cern.ch/root/"/> |
342 |
> |
<use name="ROOTCore"/> |
343 |
> |
</tool> |
344 |
|
EOF_TOOLFILE |
345 |
|
|
346 |
|
%post |
347 |
< |
%{relocateConfig}etc/scram.d/root |
348 |
< |
%{relocateConfig}etc/scram.d/rootcore |
377 |
< |
%{relocateConfig}etc/scram.d/roothistmatrix |
378 |
< |
%{relocateConfig}etc/scram.d/rootphysics |
379 |
< |
%{relocateConfig}etc/scram.d/rootgraphics |
380 |
< |
%{relocateConfig}etc/scram.d/rootcintex |
381 |
< |
%{relocateConfig}etc/scram.d/rootinteractive |
382 |
< |
%{relocateConfig}etc/scram.d/rootmath |
383 |
< |
%{relocateConfig}etc/scram.d/rootminuit |
384 |
< |
%{relocateConfig}etc/scram.d/rootminuit2 |
385 |
< |
%{relocateConfig}etc/scram.d/rootrflx |
386 |
< |
%{relocateConfig}etc/scram.d/roothtml |
387 |
< |
%{relocateConfig}etc/scram.d/rootmlp |
388 |
< |
%{relocateConfig}etc/scram.d/roottmva |
389 |
< |
%{relocateConfig}etc/scram.d/rootthread |
347 |
> |
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
348 |
> |
|