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.219 by gowdy, Mon Nov 22 08:41:55 2010 UTC vs.
Revision 1.235 by fwyzard, Fri Jan 21 12:31:46 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00d
1 > ### RPM lcg root 5.27.06b
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)
8 > %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e
9 > cho false;; esac)
10  
11 < Patch0: root-5.22-00d-externals
12 < Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
13 < Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
14 < Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
15 < Patch4: root-5.22-00d-fireworks-graf3d-gui
16 < Patch5: root-5.22-00a-roofit-silence-static-printout
17 < Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
18 < Patch7: root-5.22-00a-th1
19 < Patch8: root-5.22-00d-makelib-ldl
20 < Patch9: root-5.22-00a-fireworks1
21 < Patch10: root-5.22-00a-gcc44
22 < Patch11: root-5.22-00a-fireworks2
23 < Patch12: root-5.22-00a-fireworks3
24 < 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
11 > Patch0: root-5.27-06-externals
12 > Patch1: root-5.27-04-CINT-maxlongline-maxtypedef
13 > Patch2: root-5.22-00a-roofit-silence-static-printout
14 > Patch3: root-5.22-00d-linker-gnu-hash-style
15 > Patch4: root-5.22-00d-TBranchElement-dropped-data-member
16 > Patch5: root-5.27-06-fireworks9
17 > Patch6: root-5.27-06b-gdb-backtrace
18 > Patch7: root-5.27-06-tmva-DecisionTreeNode
19 > Patch8: root-5.27-06b-r36567
20 > Patch9: root-5.27-06b-r36572
21 > Patch10: root-5.27-06b-r36707
22 > Patch11: root-5.27-06b-r36594
23 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
24 > Patch13: root-5.27-06b-tmva_Event_dynamic_hack
25  
26   %define cpu %(echo %cmsplatf | cut -d_ -f2)
27  
28 < Requires: gccxml gsl libjpg pcre python fftw3
28 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
29  
30 < %if "%ismac" == "false"
30 > %if "%ismac" != "true"
31   Requires: castor dcap
32   %endif
33  
34 < %if "%online-%ismac" == "false-true"
35 < Requires: openssl libpng zlib libungif libtiff gfortran-macosx
34 > %if "%online" != "true"
35 > Requires: openssl zlib xrootd
36   %endif
37  
38 < %if "%online-%ismac" == "false-false"
39 < Requires: qt openssl libpng zlib libungif xrootd libtiff
38 > %if "%ismac" == "true"
39 > Requires: gfortran-macosx
40 > %endif
41 >
42 > %if "%online" != "true"
43 > %if "%ismac" != "true"
44 > Requires: qt
45 > %endif
46   %endif
47  
48   %prep
# Line 61 | Line 50 | Requires: qt openssl libpng zlib libungi
50   %patch0 -p1
51   %patch1 -p1
52   %patch2 -p1
53 < %patch3 -p1
53 > # patch3 is OS version dependent, see below
54   %patch4 -p1
66
55   %patch5 -p1
56   %patch6 -p1
57   %patch7 -p1
58   %patch8 -p1
59   %patch9 -p1
60 <
73 < # patch10 is compiler version dependent, see below
60 > %patch10 -p1
61   %patch11 -p1
62   %patch12 -p1
76 # patch13 is compiler version dependent, see below
77
78 # work around patch issue...
79 rm graf3d/gl/src/gl2ps.c
80 %patch14 -p1
81 #work around patch issues in patch14(?)
82 rm graf3d/eve/inc/TEveLegoOverlay.h.orig
83 rm graf3d/eve/src/TEveLegoOverlay.cxx
84 %patch15 -p1
85 %patch16 -p1
86 %patch17 -p1
87 %patch19 -p1
88 %patch20 -p1
89 %patch21 -p1
90 %patch22 -p1
91 %patch23 -p1
92 %patch24 -p1
93 %patch25 -p1
94 %patch26 -p1
95 %patch27 -p1
96 %patch28 -p2
97 %patch29 -p1
98 %patch30 -p1
99 %patch31 -p1
100
101 case %gccver in
102  4.3.*)
63   %patch13 -p1
104  ;;
105  4.4.*)
106 %patch10 -p1
107  ;;
108 esac
64  
65 < # The following patch can only be applied on SLC5 or later (extra linker
65 > # The following patch can only be applied on SLC5 or later (extra linker
66   # options only available with the SLC5 binutils)
67   case %cmsplatf in
68    slc5_* | slc5onl_* )
69 < %patch18 -p1
69 > %patch3 -p1
70    ;;
71   esac
72  
73 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
74 + # (It tries to run install_name_tool on them.)
75 + rm -fR tutorials/fitsio
76 +
77   %build
78  
79   mkdir -p %i
# Line 126 | Line 85 | export PYTHONV=$(echo $PYTHON_VERSION |
85   # Use system qt. Also skip xrootd and odbc for online case:
86  
87   EXTRA_CONFIG_ARGS="--with-f77=/usr
129             --disable-xrootd
88               --disable-odbc
89 <             --disable-qt --disable-qtgsi"
89 >             --disable-qt --disable-qtgsi --disable-astiff"
90   %else
91   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
92   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
135             --with-xrootd=$XROOTD_ROOT
93               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
94               --with-ssl-incdir=${OPENSSL_ROOT}/include
95               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 155 | Line 112 | CONFIG_ARGS="--enable-table
112               --with-fftw3-libdir=${FFTW3_ROOT}/lib
113               --disable-ldap
114               --disable-krb5
115 +             --with-xrootd=${XROOTD_ROOT}
116               --with-gsl-incdir=${GSL_ROOT}/include
117               --with-gsl-libdir=${GSL_ROOT}/lib
118               --with-dcap-libdir=${DCAP_ROOT}/lib
119               --with-dcap-incdir=${DCAP_ROOT}/include
120               --disable-pgsql
121               --disable-mysql
122 +             --disable-oracle
123               --disable-xml ${EXTRA_CONFIG_ARGS}"
124  
125   case $(uname)-$(uname -m) in
126    Linux-x86_64)
127 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
127 >    ./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 ;;
128    Linux-i*86)
129 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
129 >    ./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 ;;
130    Darwin*)
131      case %cmsplatf in
132      *_ia32_* )
133 <      comparch=i386 ;;
133 >      comparch=i386
134 >      macconfig=macosx
135 >      ;;
136      *_amd64_* )
137 <      comparch=x86_64 ;;
137 >      comparch=x86_64
138 >      macconfig=macosx64
139 >      ;;
140      * )
141 <      comparch=ppc ;;
141 >      comparch=ppc
142 >      macconfig=macosx
143 >      ;;
144      esac
145      export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
146 <    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
146 >    ./configure $macconfig $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
147    Linux-ppc64*)
148      ./configure linux $CONFIG_ARGS --disable-rfio;;
149   esac
# Line 211 | Line 176 | export ROOTSYS=%i
176   make INSTALL="$cp" INSTALLDATA="$cp" install
177   mkdir -p $ROOTSYS/lib/python
178   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
214 #
179  
180   # SCRAM ToolBox toolfile
181   mkdir -p %i/etc/scram.d
# Line 251 | Line 215 | EOF_TOOLFILE
215  
216   # roothistmatrix toolfile
217   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
218 <  <tool name="roothistmatrix" version="%v">
218 >  <tool name="roothistmatrix" version="%v">
219      <info url="http://root.cern.ch/root/"/>
220      <lib name="Hist"/>
221      <lib name="Matrix"/>
# Line 261 | Line 225 | EOF_TOOLFILE
225  
226   # rootgpad toolfile
227   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
228 <  <tool name="rootgpad" version="%v">
228 >  <tool name="rootgpad" version="%v">
229      <info url="http://root.cern.ch/root/"/>
230      <lib name="Gpad"/>
231      <lib name="Graf"/>
# Line 405 | Line 369 | EOF_TOOLFILE
369  
370   %post
371   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
372 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines