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.185 by elmer, Wed Dec 9 12:59:11 2009 UTC vs.
Revision 1.209 by muzaffar, Thu Sep 23 08:21:36 2010 UTC

# Line 1 | Line 1
1   ### RPM lcg root 5.22.00d
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-00d-fireworks-graf3d-gui
14 < Patch5:  root-5.22-00a-roofit-silence-static-printout
9 > Patch0: root-5.22-00d-externals
10 > Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
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
17 > Patch8: root-5.22-00d-makelib-ldl
18   Patch9: root-5.22-00a-fireworks1
19   Patch10: root-5.22-00a-gcc44
20   Patch11: root-5.22-00a-fireworks2
# Line 25 | Line 25 | 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
28 > Patch19: root-5.22-00d-TFile-version3-Init
29 > Patch20: root-5.22-00d-cint-namespace
30 > Patch21: root-5.22-00d-fireworks7
31 > Patch22: root-5.22-00d-TMath-Vavilov
32 > Patch23: root-5.22-00d-TBranchElement-dropped-data-member
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  
39   %define cpu %(echo %cmsplatf | cut -d_ -f2)
40  
41 < Requires: gccxml gsl castor libjpg dcap pcre python
41 > Requires: gccxml gsl castor libjpg dcap pcre python fftw3
42  
43   %if "%online" != "true"
44 < 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
44 > Requires: qt openssl libpng zlib libungif xrootd libtiff
45   %endif
46  
47   %prep
# Line 76 | Line 75 | rm graf3d/gl/src/gl2ps.c.orig
75   %patch16 -p1
76   %patch17 -p1
77   %patch19 -p1
78 + %patch20 -p1
79 + %patch21 -p1
80 + %patch22 -p1
81 + %patch23 -p1
82 + %patch24 -p1
83 + %patch25 -p1
84 + %patch26 -p1
85 + %patch27 -p1
86 + %patch28 -p2
87  
88   case %gccver in
89    4.3.*)
# Line 97 | Line 105 | esac
105   %build
106  
107   mkdir -p %i
108 + export LIBJPG_ROOT
109   export ROOTSYS=%_builddir/root
110   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
111  
# Line 108 | Line 117 | EXTRA_CONFIG_ARGS="--with-f77=/usr
117               --disable-odbc
118               --disable-qt --disable-qtgsi"
119   %else
120 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
121   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
122               --with-xrootd=$XROOTD_ROOT
123               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
# Line 127 | Line 137 | CONFIG_ARGS="--enable-table
137               --enable-reflex  
138               --enable-cintex
139               --enable-minuit2
140 +             --enable-fftw3
141 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
142 +             --with-fftw3-libdir=${FFTW3_ROOT}/lib
143               --disable-ldap
144               --disable-krb5
145               --with-gsl-incdir=${GSL_ROOT}/include
# Line 143 | Line 156 | case $(uname)-$(uname -m) in
156    Linux-i*86)
157      ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
158    Darwin*)
159 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
159 >    case %cmsplatf in
160 >    *_ia32_* )
161 >      comparch=i386 ;;
162 >    *_amd64_* )
163 >      comparch=x86_64 ;;
164 >    * )
165 >      comparch=ppc ;;
166 >    esac
167 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
168 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
169    Linux-ppc64*)
170      ./configure linux $CONFIG_ARGS --disable-rfio;;
171   esac
# Line 264 | Line 286 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
286    </tool>
287   EOF_TOOLFILE
288  
289 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
290 < # have been removed for the moment)
289 > # rootinteractive toolfile (GQt/qt lib dependencies
290 > # have been moved to rootqt.xml)
291   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
292    <tool name="rootinteractive" version="%v">
293      <info url="http://root.cern.ch/root/"/>
294      <lib name="Rint"/>
273    <lib name="GQt"/>
295      <lib name="Gui"/>
275    <use name="qt"/>
296      <use name="libjpg"/>
297      <use name="libpng"/>
298      <use name="rootgpad"/>
299    </tool>
300   EOF_TOOLFILE
301  
302 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
303 +  <tool name="rootqt" version="%v">
304 +    <info url="http://root.cern.ch/root/"/>
305 +    <lib name="GQt"/>
306 +    <use name="qt"/>
307 +  </tool>
308 + EOF_TOOLFILE
309 +
310   # rootmath toolfile
311   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
312    <tool name="rootmath" version="%v">

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines