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.234 by fwyzard, Fri Jan 21 12:31:02 2011 UTC vs.
Revision 1.244 by elmer, Wed Feb 9 23:54:50 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)
9 <
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-ko
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-ko
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
8 > %define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e
9 > cho false;; esac)
10  
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-r37582-tmva
25 + Patch14: root-5.27-06b-r37405
26 + Patch15: root-5.27-06b-r37556
27 + Patch16: root-5.27-06-fireworks10
28 + Patch17: root-5.27-06-TTreeClonerTopLevel
29 + Patch18: root-5.27-06b-r37947
30 + Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
31 + Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
32 + Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
33 + Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
34 + Patch23: root-5.27-06b-r37210
35 + Patch24: root-5.27-06b-r38023
36 +
37   %define cpu %(echo %cmsplatf | cut -d_ -f2)
38  
39   Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
40  
41 < %if "%ismac" == "false"
41 > %if "%ismac" != "true"
42   Requires: castor dcap
43   %endif
44  
45 < %if "%online-%ismac" == "false-true"
46 < Requires: openssl zlib gfortran-macosx
45 > %if "%online" != "true"
46 > Requires: openssl zlib xrootd
47   %endif
48  
49 < %if "%online-%ismac" == "false-false"
50 < Requires: openssl zlib qt xrootd
49 > %if "%ismac" == "true"
50 > Requires: gfortran-macosx
51 > %endif
52 >
53 > %if "%online" != "true"
54 > %if "%ismac" != "true"
55 > Requires: qt
56 > %endif
57   %endif
58  
59   %prep
# Line 62 | Line 61 | Requires: openssl zlib qt xrootd
61   %patch0 -p1
62   %patch1 -p1
63   %patch2 -p1
64 < %patch3 -p1
64 > # patch3 is OS version dependent, see below
65   %patch4 -p1
67
66   %patch5 -p1
67   %patch6 -p1
68   %patch7 -p1
69   %patch8 -p1
70   %patch9 -p1
71 <
74 < # patch10 is compiler version dependent, see below
71 > %patch10 -p1
72   %patch11 -p1
73   %patch12 -p1
74 < # patch13 is compiler version dependent, see below
78 <
74 > %patch13 -p1
75   %patch14 -p1
76   %patch15 -p1
77   %patch16 -p1
78 < %patch17 -p1
79 < %patch19 -p1
78 > %patch17 -p0
79 > %patch18 -p1
80 > %patch19 -p0
81   %patch20 -p1
82   %patch21 -p1
83   %patch22 -p1
84   %patch23 -p1
85   %patch24 -p1
89 %patch25 -p1
90 %patch26 -p1
91 %patch27 -p1
92 %patch28 -p2
93 %patch29 -p1
94 %patch30 -p1
95 %patch31 -p1
96 %patch32 -p1
97
98 case %gccver in
99  4.3.*)
100 %patch13 -p1
101  ;;
102  4.4.*)
103 %patch10 -p1
104  ;;
105 esac
86  
87 < # The following patch can only be applied on SLC5 or later (extra linker
87 > # The following patch can only be applied on SLC5 or later (extra linker
88   # options only available with the SLC5 binutils)
89   case %cmsplatf in
90    slc5_* | slc5onl_* )
91 < %patch18 -p1
91 > %patch3 -p1
92    ;;
93   esac
94  
95 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
96 + # (It tries to run install_name_tool on them.)
97 + rm -fR tutorials/fitsio
98 +
99   %build
100  
101   mkdir -p %i
# Line 123 | Line 107 | export PYTHONV=$(echo $PYTHON_VERSION |
107   # Use system qt. Also skip xrootd and odbc for online case:
108  
109   EXTRA_CONFIG_ARGS="--with-f77=/usr
126             --disable-xrootd
110               --disable-odbc
111 <             --disable-qt --disable-qtgsi"
111 >             --disable-qt --disable-qtgsi --disable-astiff"
112   %else
113   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
114   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
132             --with-xrootd=$XROOTD_ROOT
115               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
116               --with-ssl-incdir=${OPENSSL_ROOT}/include
117               --with-ssl-libdir=${OPENSSL_ROOT}/lib
# Line 152 | Line 134 | CONFIG_ARGS="--enable-table
134               --with-fftw3-libdir=${FFTW3_ROOT}/lib
135               --disable-ldap
136               --disable-krb5
137 +             --with-xrootd=${XROOTD_ROOT}
138               --with-gsl-incdir=${GSL_ROOT}/include
139               --with-gsl-libdir=${GSL_ROOT}/lib
140               --with-dcap-libdir=${DCAP_ROOT}/lib
141               --with-dcap-incdir=${DCAP_ROOT}/include
142               --disable-pgsql
143               --disable-mysql
144 <             --disable-oracle
162 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
144 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
145  
146 < case $(uname)-$(uname -m) in
147 <  Linux-x86_64)
148 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
149 <  Linux-i*86)
150 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
151 <  Darwin*)
146 > case %cmsos in
147 >  slc*_amd64)
148 >    ./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 ;;
149 >  slc*_ia32)
150 >    ./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 ;;
151 >  osx*)
152      case %cmsplatf in
153      *_ia32_* )
154 <      comparch=i386 ;;
154 >      comparch=i386
155 >      macconfig=macosx
156 >      ;;
157      *_amd64_* )
158 <      comparch=x86_64 ;;
158 >      comparch=x86_64
159 >      macconfig=macosx64
160 >      ;;
161      * )
162 <      comparch=ppc ;;
162 >      comparch=ppc
163 >      macconfig=macosx
164 >      ;;
165      esac
166 <    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
167 <    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
168 <  Linux-ppc64*)
166 >    export CC=`which gcc` CXX=`which g++`
167 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
168 >  slc*_ppc64*)
169      ./configure linux $CONFIG_ARGS --disable-rfio;;
170   esac
171  
172 < case %cmsplatf in
173 <  osx*)
174 <   makeopts=
187 <  ;;
188 <  *)
189 <   makeopts="%makeprocesses"
190 <  ;;
191 < esac
192 <
193 < make $makeopts
172 > makeopts="%makeprocesses"
173 >
174 > make $makeopts
175   make cintdlls
176  
177   %install
# Line 209 | Line 190 | export ROOTSYS=%i
190   make INSTALL="$cp" INSTALLDATA="$cp" install
191   mkdir -p $ROOTSYS/lib/python
192   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
193 < #
193 > # This file confuses rpm's find-requires because it starts with
194 > # a """ and it thinks is the shebang.
195 > rm -f %i/tutorials/pyroot/mrt.py
196  
197   # SCRAM ToolBox toolfile
198   mkdir -p %i/etc/scram.d
# Line 249 | Line 232 | EOF_TOOLFILE
232  
233   # roothistmatrix toolfile
234   cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
235 <  <tool name="roothistmatrix" version="%v">
235 >  <tool name="roothistmatrix" version="%v">
236      <info url="http://root.cern.ch/root/"/>
237      <lib name="Hist"/>
238      <lib name="Matrix"/>
# Line 259 | Line 242 | EOF_TOOLFILE
242  
243   # rootgpad toolfile
244   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
245 <  <tool name="rootgpad" version="%v">
245 >  <tool name="rootgpad" version="%v">
246      <info url="http://root.cern.ch/root/"/>
247      <lib name="Gpad"/>
248      <lib name="Graf"/>
# Line 401 | Line 384 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
384    </tool>
385   EOF_TOOLFILE
386  
387 + # rootxml toolfile
388 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
389 +  <tool name="rootxml" version="%v">
390 +    <info url="http://root.cern.ch/root/"/>
391 +    <lib name="XMLParser"/>
392 +    <use name="ROOTCore"/>
393 +  </tool>
394 + EOF_TOOLFILE
395 +
396 + # rootfoam toolfile
397 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
398 +  <tool name="rootfoam" version="%v">
399 +    <info url="http://root.cern.ch/root/"/>
400 +    <lib name="Foam"/>
401 +    <use name="roothistmatrix"/>
402 +  </tool>
403 + EOF_TOOLFILE
404 +
405   %post
406   perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
407 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines