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.221 by elmer, Mon Nov 29 13:46:57 2010 UTC vs.
Revision 1.226 by muzaffar, Sat Dec 18 09:16:50 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.27.06b
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   %define closingbrace )
7   %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
8 + %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace echo false;; esac)
9  
10 < Patch0: root-5.27-06-externals
11 < Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
12 < Patch2: root-5.22-00a-roofit-silence-static-printout
13 < Patch3: root-5.22-00d-linker-gnu-hash-style
14 < Patch4: root-5.22-00d-TBranchElement-dropped-data-member
15 < Patch5: root-5.27-06-fireworks9
16 < Patch6: root-5.27-06b-gdb-backtrace
17 < Patch7: root-5.27-06-tmva-DecisionTreeNode
18 < Patch8: root-5.27-06b-r36567
19 < Patch9: root-5.27-06b-r36572
20 < Patch10: root-5.27-06b-r36707
21 < Patch11: root-5.27-06b-r36594
10 > Patch0: root-5.22-00d-externals
11 > Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
12 > Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
13 > Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
14 > Patch4: root-5.22-00d-fireworks-graf3d-gui
15 > Patch5: root-5.22-00a-roofit-silence-static-printout
16 > Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
17 > Patch7: root-5.22-00a-th1
18 > Patch8: root-5.22-00d-makelib-ldl
19 > Patch9: root-5.22-00a-fireworks1
20 > Patch10: root-5.22-00a-gcc44
21 > Patch11: root-5.22-00a-fireworks2
22 > Patch12: root-5.22-00a-fireworks3
23 > Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
24 > Patch14: root-5.22-00a-fireworks4
25 > Patch15: root-5.22-00d-fireworks5
26 > Patch16: root-5.22-00d-genreflex_python26_popen3
27 > Patch17: root-5.22-00d-fireworks6
28 > Patch18: root-5.22-00d-linker-gnu-hash-style
29 > Patch19: root-5.22-00d-TFile-version3-Init
30 > Patch20: root-5.22-00d-cint-namespace
31 > Patch21: root-5.22-00d-fireworks7
32 > Patch22: root-5.22-00d-TMath-Vavilov
33 > Patch23: root-5.22-00d-TBranchElement-dropped-data-member
34 > Patch24: root-5.22-00d-fireworks8
35 > Patch25: root-5.22-00d-fix-python-shebang
36 > Patch26: root-5.22-00d-RootsysOnMac
37 > Patch27: root-5.22-00d-TString-Clear
38 > Patch28: root-5.22-00d-libgfortran-dylib-detection
39 > Patch29: root-5.22-00d-cint-dll-correct-install-name
40 > Patch30: root-5.22-00d-fireworks9
41 > Patch31: root-5.22-00d-async-readbuffers
42 > Patch32: root-5.22-00d-fireworks10
43  
44   %define cpu %(echo %cmsplatf | cut -d_ -f2)
45  
46 < Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3
47 < %if "%online" != "true"
48 < Requires: qt openssl libpng zlib libungif libtiff
46 > Requires: gccxml gsl libjpg pcre python fftw3
47 >
48 > %if "%ismac" == "false"
49 > Requires: castor dcap
50 > %endif
51 >
52 > %if "%online-%ismac" == "false-true"
53 > Requires: openssl libpng zlib libungif libtiff gfortran-macosx
54 > %endif
55 >
56 > %if "%online-%ismac" == "false-false"
57 > Requires: qt openssl libpng zlib libungif xrootd libtiff
58   %endif
59  
60   %prep
# Line 31 | Line 62 | Requires: qt openssl libpng zlib libungi
62   %patch0 -p1
63   %patch1 -p1
64   %patch2 -p1
65 < # patch3 is OS version dependent, see below
65 > %patch3 -p1
66   %patch4 -p1
67 +
68   %patch5 -p1
69   %patch6 -p1
70   %patch7 -p1
71   %patch8 -p1
72   %patch9 -p1
73 < %patch10 -p1
73 >
74 > # patch10 is compiler version dependent, see below
75   %patch11 -p1
76 + %patch12 -p1
77 + # patch13 is compiler version dependent, see below
78 +
79 + # work around patch issue...
80 + rm graf3d/gl/src/gl2ps.c
81 + %patch14 -p1
82 + #work around patch issues in patch14(?)
83 + rm graf3d/eve/inc/TEveLegoOverlay.h.orig
84 + rm graf3d/eve/src/TEveLegoOverlay.cxx
85 + %patch15 -p1
86 + %patch16 -p1
87 + %patch17 -p1
88 + %patch19 -p1
89 + %patch20 -p1
90 + %patch21 -p1
91 + %patch22 -p1
92 + %patch23 -p1
93 + %patch24 -p1
94 + %patch25 -p1
95 + %patch26 -p1
96 + %patch27 -p1
97 + %patch28 -p2
98 + %patch29 -p1
99 + %patch30 -p1
100 + %patch31 -p1
101 + %patch32 -p1
102 +
103 + case %gccver in
104 +  4.3.*)
105 + %patch13 -p1
106 +  ;;
107 +  4.4.*)
108 + %patch10 -p1
109 +  ;;
110 + esac
111  
112 < # The following patch can only be applied on SLC5 or later (extra linker
112 > # The following patch can only be applied on SLC5 or later (extra linker
113   # options only available with the SLC5 binutils)
114   case %cmsplatf in
115    slc5_* | slc5onl_* )
116 < %patch3 -p1
116 > %patch18 -p1
117    ;;
118   esac
119  
# Line 60 | Line 128 | export PYTHONV=$(echo $PYTHON_VERSION |
128   # Use system qt. Also skip xrootd and odbc for online case:
129  
130   EXTRA_CONFIG_ARGS="--with-f77=/usr
131 +             --disable-xrootd
132               --disable-odbc
133 <             --disable-qt --disable-qtgsi --disable-astiff"
133 >             --disable-qt --disable-qtgsi"
134   %else
135   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
136   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
137 +             --with-xrootd=$XROOTD_ROOT
138               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
139               --with-ssl-incdir=${OPENSSL_ROOT}/include
140               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 87 | Line 157 | CONFIG_ARGS="--enable-table
157               --with-fftw3-libdir=${FFTW3_ROOT}/lib
158               --disable-ldap
159               --disable-krb5
90             --with-xrootd=${XROOTD_ROOT}
160               --with-gsl-incdir=${GSL_ROOT}/include
161               --with-gsl-libdir=${GSL_ROOT}/lib
162               --with-dcap-libdir=${DCAP_ROOT}/lib
# Line 98 | Line 167 | CONFIG_ARGS="--enable-table
167  
168   case $(uname)-$(uname -m) in
169    Linux-x86_64)
170 <    ./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 ;;
170 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
171    Linux-i*86)
172 <    ./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 ;;
172 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
173    Darwin*)
174      case %cmsplatf in
175      *_ia32_* )
# Line 144 | Line 213 | export ROOTSYS=%i
213   make INSTALL="$cp" INSTALLDATA="$cp" install
214   mkdir -p $ROOTSYS/lib/python
215   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
216 + #
217  
218   # SCRAM ToolBox toolfile
219   mkdir -p %i/etc/scram.d
# Line 183 | Line 253 | EOF_TOOLFILE
253  
254   # roothistmatrix toolfile
255   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
256 <  <tool name="roothistmatrix" version="%v">
256 >  <tool name="roothistmatrix" version="%v">
257      <info url="http://root.cern.ch/root/"/>
258      <lib name="Hist"/>
259      <lib name="Matrix"/>
# Line 193 | Line 263 | EOF_TOOLFILE
263  
264   # rootgpad toolfile
265   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
266 <  <tool name="rootgpad" version="%v">
266 >  <tool name="rootgpad" version="%v">
267      <info url="http://root.cern.ch/root/"/>
268      <lib name="Gpad"/>
269      <lib name="Graf"/>
# Line 337 | Line 407 | EOF_TOOLFILE
407  
408   %post
409   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
340

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines