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.203 by muzaffar, Wed Aug 11 13:04:10 2010 UTC vs.
Revision 1.210 by elmer, Thu Sep 23 09:21:57 2010 UTC

# Line 33 | Line 33 | Patch23: root-5.22-00d-TBranchElement-dr
33   Patch24: root-5.22-00d-fireworks8
34   Patch25: root-5.22-00d-fix-python-shebang
35   Patch26: root-5.22-00d-RootsysOnMac
36 + Patch27: root-5.22-00d-TString-Clear
37 + Patch28: root-5.22-00d-libgfortran-dylib-detection
38 + Patch29: root-5.22-00d-cint-dll-correct-install-name
39  
40   %define cpu %(echo %cmsplatf | cut -d_ -f2)
41  
42 < Requires: gccxml gsl castor libjpg dcap pcre python
42 > Requires: gccxml gsl castor libjpg dcap pcre python fftw3
43 >
44   %if "%online" != "true"
45   Requires: qt openssl libpng zlib libungif xrootd libtiff
46   %endif
# Line 79 | Line 83 | rm graf3d/gl/src/gl2ps.c.orig
83   %patch24 -p1
84   %patch25 -p1
85   %patch26 -p1
86 + %patch27 -p1
87 + %patch28 -p2
88 + %patch29 -p1
89  
90   case %gccver in
91    4.3.*)
# Line 100 | Line 107 | esac
107   %build
108  
109   mkdir -p %i
110 + export LIBJPG_ROOT
111   export ROOTSYS=%_builddir/root
112   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
113  
# Line 109 | Line 117 | export PYTHONV=$(echo $PYTHON_VERSION |
117   EXTRA_CONFIG_ARGS="--with-f77=/usr
118               --disable-xrootd
119               --disable-odbc
120 <             --disable-qt --disable-qtgsi --disable-astiff"
120 >             --disable-qt --disable-qtgsi"
121   %else
122 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
123   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
124               --with-xrootd=$XROOTD_ROOT
125               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
# Line 130 | Line 139 | CONFIG_ARGS="--enable-table
139               --enable-reflex  
140               --enable-cintex
141               --enable-minuit2
142 +             --enable-fftw3
143 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
144 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
145               --disable-ldap
146               --disable-krb5
147               --with-gsl-incdir=${GSL_ROOT}/include
# Line 142 | Line 154 | CONFIG_ARGS="--enable-table
154  
155   case $(uname)-$(uname -m) in
156    Linux-x86_64)
157 <    ./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 ;;
157 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
158    Linux-i*86)
159 <    ./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 ;;
159 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
160    Darwin*)
161      case %cmsplatf in
162      *_ia32_* )
# Line 188 | Line 200 | export ROOTSYS=%i
200   make INSTALL="$cp" INSTALLDATA="$cp" install
201   mkdir -p $ROOTSYS/lib/python
202   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
203 + #
204 +
205 + # SCRAM ToolBox toolfile
206 + mkdir -p %i/etc/scram.d
207 + # rootcore toolfile
208 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
209 +  <tool name="rootcore" version="%v">
210 +    <info url="http://root.cern.ch/root/"/>
211 +    <lib name="Tree"/>
212 +    <lib name="Net"/>
213 +    <lib name="Thread"/>
214 +    <lib name="MathCore"/>
215 +    <lib name="RIO"/>
216 +    <lib name="Core"/>
217 +    <lib name="Cint"/>
218 +    <client>
219 +      <environment name="ROOTCORE_BASE" default="%i"/>
220 +      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
221 +      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
222 +      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
223 +    </client>
224 +    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
225 +    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
226 +    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
227 +    <use name="sockets"/>
228 +    <use name="pcre"/>
229 +    <use name="zlib"/>
230 +  </tool>
231 + EOF_TOOLFILE
232 +
233 + # root toolfile, alias for rootphysics. Using rootphysics is preferred.
234 + cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
235 +  <tool name="root" version="%v">
236 +    <info url="http://root.cern.ch/root/"/>
237 +    <use name="rootphysics"/>
238 +  </tool>
239 + EOF_TOOLFILE
240 +
241 + # roothistmatrix toolfile
242 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
243 +  <tool name="roothistmatrix" version="%v">
244 +    <info url="http://root.cern.ch/root/"/>
245 +    <lib name="Hist"/>
246 +    <lib name="Matrix"/>
247 +    <use name="ROOTCore"/>
248 +  </tool>
249 + EOF_TOOLFILE
250 +
251 + # rootgpad toolfile
252 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
253 +  <tool name="rootgpad" version="%v">
254 +    <info url="http://root.cern.ch/root/"/>
255 +    <lib name="Gpad"/>
256 +    <lib name="Graf"/>
257 +    <use name="roothistmatrix"/>
258 +  </tool>
259 + EOF_TOOLFILE
260 +
261 + # rootphysics toolfile
262 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
263 +  <tool name="rootphysics" version="%v">
264 +    <info url="http://root.cern.ch/root/"/>
265 +    <lib name="Physics"/>
266 +    <use name="roothistmatrix"/>
267 +  </tool>
268 + EOF_TOOLFILE
269 +
270 + # rootgraphics toolfile, identical to old "root" toolfile
271 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
272 +  <tool name="rootgraphics" version="%v">
273 +    <info url="http://root.cern.ch/root/"/>
274 +    <lib name="TreePlayer"/>
275 +    <lib name="Graf3d"/>
276 +    <lib name="Postscript"/>
277 +    <use name="rootgpad"/>
278 +  </tool>
279 + EOF_TOOLFILE
280 +
281 + # rootcintex toolfile
282 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
283 +  <tool name="rootcintex" version="%v">
284 +    <info url="http://root.cern.ch/root/"/>
285 +    <lib name="Cintex"/>
286 +    <use name="ROOTRflx"/>
287 +    <use name="ROOTCore"/>
288 +  </tool>
289 + EOF_TOOLFILE
290 +
291 + # rootinteractive toolfile (GQt/qt lib dependencies
292 + # have been moved to rootqt.xml)
293 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
294 +  <tool name="rootinteractive" version="%v">
295 +    <info url="http://root.cern.ch/root/"/>
296 +    <lib name="Rint"/>
297 +    <lib name="Gui"/>
298 +    <use name="libjpg"/>
299 +    <use name="libpng"/>
300 +    <use name="rootgpad"/>
301 +  </tool>
302 + EOF_TOOLFILE
303 +
304 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
305 +  <tool name="rootqt" version="%v">
306 +    <info url="http://root.cern.ch/root/"/>
307 +    <lib name="GQt"/>
308 +    <use name="qt"/>
309 +  </tool>
310 + EOF_TOOLFILE
311 +
312 + # rootmath toolfile
313 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
314 +  <tool name="rootmath" version="%v">
315 +    <info url="http://root.cern.ch/root/"/>
316 +    <lib name="GenVector"/>
317 +    <lib name="MathMore"/>
318 +    <use name="ROOTCore"/>
319 +    <use name="gsl"/>
320 +  </tool>
321 + EOF_TOOLFILE
322 +
323 + # rootminuit toolfile
324 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
325 +  <tool name="rootminuit" version="%v">
326 +    <info url="http://root.cern.ch/root/"/>
327 +    <lib name="Minuit"/>
328 +    <use name="rootgpad"/>
329 +  </tool>
330 + EOF_TOOLFILE
331 +
332 + # rootminuit2 toolfile
333 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
334 +  <tool name="rootminuit2" version="%v">
335 +    <info url="http://root.cern.ch/root/"/>
336 +    <lib name="Minuit2"/>
337 +    <use name="rootgpad"/>
338 +  </tool>
339 + EOF_TOOLFILE
340 +
341 + # rootrflx toolfile
342 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
343 +  <tool name="rootrflx" version="%v">
344 +    <info url="http://root.cern.ch/root/"/>
345 +    <lib name="Reflex"/>
346 +    <client>
347 +      <environment name="ROOTRFLX_BASE" default="%i"/>
348 +      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
349 +      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
350 +    </client>
351 +    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
352 +    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
353 +    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
354 +    <use name="sockets"/>
355 +    <use name="gccxml"/>
356 +  </tool>
357 + EOF_TOOLFILE
358 +
359 + # roothtml toolfile
360 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
361 +  <tool name="roothtml" version="%v">
362 +    <info url="http://root.cern.ch/root/"/>
363 +    <lib name="Html"/>
364 +    <use name="rootgpad"/>
365 +  </tool>
366 + EOF_TOOLFILE
367 +
368 + # rootmlp toolfile
369 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
370 +  <tool name="rootmlp" version="%v">
371 +    <info url="http://root.cern.ch/root/"/>
372 +    <lib name="MLP"/>
373 +    <use name="RootGraphics"/>
374 +  </tool>
375 + EOF_TOOLFILE
376 +
377 + # roottmva toolfile
378 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
379 +  <tool name="roottmva" version="%v">
380 +    <info url="http://root.cern.ch/root/"/>
381 +    <lib name="TMVA"/>
382 +    <use name="ROOTMLP"/>
383 +    <use name="rootminuit"/>
384 +  </tool>
385 + EOF_TOOLFILE
386 +
387 + # rootthread toolfile
388 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
389 +  <tool name="rootthread" version="%v">
390 +    <info url="http://root.cern.ch/root/"/>
391 +    <use name="ROOTCore"/>
392 +  </tool>
393 + EOF_TOOLFILE
394 +
395 + %post
396 + 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