ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/root.spec
(Generate patch)

Comparing COMP/CMSDIST/root.spec (file contents):
Revision 1.155 by elmer, Thu Apr 16 21:08:49 2009 UTC vs.
Revision 1.189 by eulisse, Mon Feb 15 14:12:21 2010 UTC

# Line 1 | Line 1
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
# Line 43 | Line 39 | Requires: libtiff
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
# Line 92 | Line 80 | CONFIG_ARGS="--with-f77=${GCC_ROOT}
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
# Line 144 | Line 127 | cp -r cint/reflex/python/genreflex $ROOT
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>
211 < </Tool>
212 < EOF_TOOLFILE
213 <
214 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
215 < # have been removed for the moment)
216 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
217 < <doc type=BuildSystem::ToolDoc version=1.0>
218 < <Tool name=rootinteractive version=%v>
219 < <info url="http://root.cern.ch/root/"></info>
220 < <lib name=Rint>
221 < <lib name=GQt>
222 < <lib name=Gui>
223 < <use name=qt>
224 < <use name=libjpg>
225 < <use name=libpng>
226 < <use name=ROOT>
227 < </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 > # rootinteractive toolfile (GQt/qt lib dependencies
214 > # have been moved to rootqt.xml)
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="Gui"/>
220 >    <use name="libjpg"/>
221 >    <use name="libpng"/>
222 >    <use name="rootgpad"/>
223 >  </tool>
224 > EOF_TOOLFILE
225 >
226 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
227 >  <tool name="rootqt" version="%v">
228 >    <info url="http://root.cern.ch/root/"/>
229 >    <lib name="GQt"/>
230 >    <use name="qt"/>
231 >  </tool>
232   EOF_TOOLFILE
233  
234   # rootmath toolfile
235 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
236 < <doc type=BuildSystem::ToolDoc version=1.0>
237 < <Tool name=rootmath version=%v>
238 < <info url="http://root.cern.ch/root/"></info>
239 < <lib name=GenVector>
240 < <lib name=MathMore>
241 < <use name=ROOTCore>
242 < <use name=gsl>
253 < </Tool>
235 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
236 >  <tool name="rootmath" version="%v">
237 >    <info url="http://root.cern.ch/root/"/>
238 >    <lib name="GenVector"/>
239 >    <lib name="MathMore"/>
240 >    <use name="ROOTCore"/>
241 >    <use name="gsl"/>
242 >  </tool>
243   EOF_TOOLFILE
244  
245   # rootminuit toolfile
246 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
247 < <doc type=BuildSystem::ToolDoc version=1.0>
248 < <Tool name=rootminuit version=%v>
249 < <info url="http://root.cern.ch/root/"></info>
250 < <lib name=Minuit>
251 < <use name=ROOT>
263 < </Tool>
246 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
247 >  <tool name="rootminuit" version="%v">
248 >    <info url="http://root.cern.ch/root/"/>
249 >    <lib name="Minuit"/>
250 >    <use name="rootgpad"/>
251 >  </tool>
252   EOF_TOOLFILE
253  
254   # rootminuit2 toolfile
255 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
256 < <doc type=BuildSystem::ToolDoc version=1.0>
257 < <Tool name=rootminuit2 version=%v>
258 < <info url="http://root.cern.ch/root/"></info>
259 < <lib name=Minuit2>
260 < <use name=ROOT>
273 < </Tool>
255 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
256 >  <tool name="rootminuit2" version="%v">
257 >    <info url="http://root.cern.ch/root/"/>
258 >    <lib name="Minuit2"/>
259 >    <use name="rootgpad"/>
260 >  </tool>
261   EOF_TOOLFILE
262  
263   # rootrflx toolfile
264 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
265 < <doc type=BuildSystem::ToolDoc version=1.0>
266 < <Tool name=rootrflx version=%v>
267 < <info url="http://root.cern.ch/root/"></info>
268 < <lib name=Reflex>
269 < <Client>
270 < <Environment name=ROOTRFLX_BASE default="%i"></Environment>
271 < <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
272 < <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
273 < </Client>
274 < <use name=sockets>
275 < <use name=gccxml>
276 < <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
277 < <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
278 < <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
292 < </Tool>
264 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
265 >  <tool name="rootrflx" version="%v">
266 >    <info url="http://root.cern.ch/root/"/>
267 >    <lib name="Reflex"/>
268 >    <client>
269 >      <environment name="ROOTRFLX_BASE" default="%i"/>
270 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
271 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
272 >    </client>
273 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
274 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
275 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
276 >    <use name="sockets"/>
277 >    <use name="gccxml"/>
278 >  </tool>
279   EOF_TOOLFILE
280  
281   # roothtml toolfile
282 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
283 < <doc type=BuildSystem::ToolDoc version=1.0>
284 < <Tool name=roothtml version=%v>
285 < <info url="http://root.cern.ch/root/"></info>
286 < <lib name=Html>
287 < <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>
282 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
283 >  <tool name="roothtml" version="%v">
284 >    <info url="http://root.cern.ch/root/"/>
285 >    <lib name="Html"/>
286 >    <use name="rootgpad"/>
287 >  </tool>
288   EOF_TOOLFILE
289  
290   # rootmlp toolfile
291 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
292 < <doc type=BuildSystem::ToolDoc version=1.0>
293 < <Tool name=rootmlp version=%v>
294 < <info url="http://root.cern.ch/root/"></info>
295 < <lib name=MLP>
296 < <use name=RootGraphics>
324 < </Tool>
291 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
292 >  <tool name="rootmlp" version="%v">
293 >    <info url="http://root.cern.ch/root/"/>
294 >    <lib name="MLP"/>
295 >    <use name="RootGraphics"/>
296 >  </tool>
297   EOF_TOOLFILE
298  
299   # roottmva toolfile
300 < cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
301 < <doc type=BuildSystem::ToolDoc version=1.0>
302 < <Tool name=roottmva version=%v>
303 < <info url="http://root.cern.ch/root/"></info>
304 < <lib name=TMVA>
305 < <use name=ROOTMLP>
306 < </Tool>
300 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
301 >  <tool name="roottmva" version="%v">
302 >    <info url="http://root.cern.ch/root/"/>
303 >    <lib name="TMVA"/>
304 >    <use name="ROOTMLP"/>
305 >    <use name="rootminuit"/>
306 >  </tool>
307   EOF_TOOLFILE
308  
309   # rootthread toolfile
310 < cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
311 < <doc type=BuildSystem::ToolDoc version=1.0>
312 < <Tool name=rootthread version=%v>
313 < <info url="http://root.cern.ch/root/"></info>
314 < <use name=ROOTCore>
343 < </Tool>
310 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
311 >  <tool name="rootthread" version="%v">
312 >    <info url="http://root.cern.ch/root/"/>
313 >    <use name="ROOTCore"/>
314 >  </tool>
315   EOF_TOOLFILE
316  
317   %post
318 < %{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
318 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines