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.218 by elmer, Tue Nov 2 23:19:05 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00d
1 > ### RPM lcg root 5.27.06
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
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
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
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  
16   %define cpu %(echo %cmsplatf | cut -d_ -f2)
17  
18 < Requires: gccxml gsl castor libjpg dcap pcre python
33 <
18 > Requires: xrootd gccxml gsl castor libjpg dcap pcre python
19   %if "%online" != "true"
20 < 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
20 > Requires: qt openssl libpng zlib libungif libtiff
21   %endif
22  
23   %prep
# Line 50 | Line 25 | Requires: libtiff
25   %patch0 -p1
26   %patch1 -p1
27   %patch2 -p1
28 < %patch3 -p1
28 > # patch3 is OS version dependent, see below
29   %patch4 -p1
55
30   %patch5 -p1
57 %patch6 -p1
58 %patch7 -p1
59 %patch8 -p1
60 %patch9 -p1
61
62 # patch10 is compiler version dependent, see below
63 %patch11 -p1
64 %patch12 -p1
65 # patch13 is compiler version dependent, see below
66
67 # work around patch issue...
68 rm graf3d/gl/src/gl2ps.c
69 %patch14 -p1
70 #work around patch issues in patch14(?)
71 rm graf3d/eve/inc/TEveLegoOverlay.h.orig
72 rm graf3d/eve/src/TEveLegoOverlay.cxx
73 rm graf3d/gl/inc/gl2ps.h.orig
74 rm graf3d/gl/src/gl2ps.c.orig
75 %patch15 -p1
76 %patch16 -p1
77 %patch17 -p1
78 %patch19 -p1
79
80 case %gccver in
81  4.3.*)
82 %patch13 -p1
83  ;;
84  4.4.*)
85 %patch10 -p1
86  ;;
87 esac
31  
32 < # The following patch can only be applied on SLC5 or later (extra linker
32 > # The following patch can only be applied on SLC5 or later (extra linker
33   # options only available with the SLC5 binutils)
34   case %cmsplatf in
35    slc5_* | slc5onl_* )
36 < %patch18 -p1
36 > %patch3 -p1
37    ;;
38   esac
39  
40   %build
41  
42   mkdir -p %i
43 + export LIBJPG_ROOT
44   export ROOTSYS=%_builddir/root
45   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
46  
# Line 104 | Line 48 | export PYTHONV=$(echo $PYTHON_VERSION |
48   # Use system qt. Also skip xrootd and odbc for online case:
49  
50   EXTRA_CONFIG_ARGS="--with-f77=/usr
107             --disable-xrootd
51               --disable-odbc
52 <             --disable-qt --disable-qtgsi"
52 >             --disable-qt --disable-qtgsi --disable-astiff"
53   %else
54 + export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
55   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
112             --with-xrootd=$XROOTD_ROOT
56               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
57               --with-ssl-incdir=${OPENSSL_ROOT}/include
58               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 129 | Line 72 | CONFIG_ARGS="--enable-table
72               --enable-minuit2
73               --disable-ldap
74               --disable-krb5
75 +             --with-xrootd=${XROOTD_ROOT}
76               --with-gsl-incdir=${GSL_ROOT}/include
77               --with-gsl-libdir=${GSL_ROOT}/lib
78               --with-dcap-libdir=${DCAP_ROOT}/lib
# Line 139 | Line 83 | CONFIG_ARGS="--enable-table
83  
84   case $(uname)-$(uname -m) in
85    Linux-x86_64)
86 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
86 >    ./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 ;;
87    Linux-i*86)
88 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
88 >    ./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 ;;
89    Darwin*)
90 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
90 >    case %cmsplatf in
91 >    *_ia32_* )
92 >      comparch=i386 ;;
93 >    *_amd64_* )
94 >      comparch=x86_64 ;;
95 >    * )
96 >      comparch=ppc ;;
97 >    esac
98 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
99 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
100    Linux-ppc64*)
101      ./configure linux $CONFIG_ARGS --disable-rfio;;
102   esac
# Line 176 | Line 129 | export ROOTSYS=%i
129   make INSTALL="$cp" INSTALLDATA="$cp" install
130   mkdir -p $ROOTSYS/lib/python
131   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
179 #
132  
133   # SCRAM ToolBox toolfile
134   mkdir -p %i/etc/scram.d
# Line 216 | Line 168 | EOF_TOOLFILE
168  
169   # roothistmatrix toolfile
170   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
171 <  <tool name="roothistmatrix" version="%v">
171 >  <tool name="roothistmatrix" version="%v">
172      <info url="http://root.cern.ch/root/"/>
173      <lib name="Hist"/>
174      <lib name="Matrix"/>
# Line 226 | Line 178 | EOF_TOOLFILE
178  
179   # rootgpad toolfile
180   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
181 <  <tool name="rootgpad" version="%v">
181 >  <tool name="rootgpad" version="%v">
182      <info url="http://root.cern.ch/root/"/>
183      <lib name="Gpad"/>
184      <lib name="Graf"/>
# Line 264 | Line 216 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
216    </tool>
217   EOF_TOOLFILE
218  
219 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
220 < # have been removed for the moment)
219 > # rootinteractive toolfile (GQt/qt lib dependencies
220 > # have been moved to rootqt.xml)
221   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
222    <tool name="rootinteractive" version="%v">
223      <info url="http://root.cern.ch/root/"/>
224      <lib name="Rint"/>
273    <lib name="GQt"/>
225      <lib name="Gui"/>
275    <use name="qt"/>
226      <use name="libjpg"/>
227      <use name="libpng"/>
228      <use name="rootgpad"/>
229    </tool>
230   EOF_TOOLFILE
231  
232 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
233 +  <tool name="rootqt" version="%v">
234 +    <info url="http://root.cern.ch/root/"/>
235 +    <lib name="GQt"/>
236 +    <use name="qt"/>
237 +  </tool>
238 + EOF_TOOLFILE
239 +
240   # rootmath toolfile
241   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
242    <tool name="rootmath" version="%v">
# Line 364 | Line 322 | EOF_TOOLFILE
322  
323   %post
324   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
325 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines