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.211 by eulisse, Thu Sep 30 13:09:49 2010 UTC vs.
Revision 1.257 by elmer, Thu Mar 17 10:45:02 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
# Line 7 | Line 7 | Source: ftp://root.cern.ch/%n/%{n}_v%{re
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
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 <
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
22 > Patch12: root-5.27-06b-tmva-MethodBase-initvar
23 > Patch13: root-5.27-06b-r37582-tmva
24 > Patch14: root-5.27-06b-r37405
25 > Patch15: root-5.27-06b-r37556
26 > Patch16: root-5.27-06-fireworks10
27 > Patch17: root-5.27-06-TTreeClonerTopLevel
28 > Patch18: root-5.27-06b-r37947
29 > Patch19: root-5.27-06b-TTreeCache-r37950-r37919-r37917-r37916-r37906
30 > Patch20: root-5.27-06b-extra-math-for-roofit-5.28.00
31 > Patch21: root-5.27-06b-TEfficiency-backport-from-5.28.00
32 > Patch22: root-5.27-06b-histfactory-bits-from-5.28.00
33 > Patch23: root-5.27-06b-r37210
34 > Patch24: root-5.27-06b-r38023
35 > Patch25: root-5.27-06b-r36708
36 > Patch26: root-5.27-06b-r38126-r38156
37 > Patch27: root-5.27-06b-r38210
38 > Patch28: root-5.27-06b-r38248-r38252-r38259-r38264-r38265-r38267
39 > Patch29: root-5.27-06b-gcc46
40 > Patch30: root-5.27-06b-r38325
41 > Patch31: root-5.27-06b-tmva-MethodANNBase-uninitialized-var-fix
42 >
43   %define cpu %(echo %cmsplatf | cut -d_ -f2)
44  
45 < Requires: gccxml gsl libjpg pcre python fftw3
45 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
46  
47 < %if "%ismac" == "false"
47 > %if "%ismac" != "true"
48   Requires: castor dcap
49   %endif
50  
51 < %if "%online-%ismac" == "false-true"
52 < Requires: openssl libpng zlib libungif libtiff gfortran-macosx
51 > %if "%online" != "true"
52 > Requires: openssl zlib xrootd
53   %endif
54  
55 < %if "%online-%ismac" == "false-false"
56 < Requires: qt openssl libpng zlib libungif xrootd libtiff
55 > %if "%ismac" == "true"
56 > Requires: gfortran-macosx
57   %endif
58  
59   %prep
# Line 59 | Line 61 | Requires: qt openssl libpng zlib libungi
61   %patch0 -p1
62   %patch1 -p1
63   %patch2 -p1
64 < %patch3 -p1
64 > # patch3 is OS version dependent, see below
65   %patch4 -p1
64
66   %patch5 -p1
67   %patch6 -p1
68   %patch7 -p1
69   %patch8 -p1
70   %patch9 -p1
71 <
71 < # patch10 is compiler version dependent, see below
71 > %patch10 -p1
72   %patch11 -p1
73   %patch12 -p1
74 < # patch13 is compiler version dependent, see below
75 <
76 < # work around patch issue...
77 < rm graf3d/gl/src/gl2ps.c
74 > %patch13 -p1
75   %patch14 -p1
79 #work around patch issues in patch14(?)
80 rm graf3d/eve/inc/TEveLegoOverlay.h.orig
81 rm graf3d/eve/src/TEveLegoOverlay.cxx
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
# Line 91 | Line 86 | rm graf3d/eve/src/TEveLegoOverlay.cxx
86   %patch25 -p1
87   %patch26 -p1
88   %patch27 -p1
89 < %patch28 -p2
89 > %patch28 -p1
90   %patch29 -p1
91 + %patch30 -p1
92 + %patch31 -p1
93  
94 < case %gccver in
98 <  4.3.*)
99 < %patch13 -p1
100 <  ;;
101 <  4.4.*)
102 < %patch10 -p1
103 <  ;;
104 < esac
105 <
106 < # The following patch can only be applied on SLC5 or later (extra linker
94 > # The following patch can only be applied on SLC5 or later (extra linker
95   # options only available with the SLC5 binutils)
96   case %cmsplatf in
97    slc5_* | slc5onl_* )
98 < %patch18 -p1
98 > %patch3 -p1
99    ;;
100   esac
101  
102 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
103 + # (It tries to run install_name_tool on them.)
104 + rm -fR tutorials/fitsio
105 +
106   %build
107  
108   mkdir -p %i
# Line 119 | Line 111 | export ROOTSYS=%_builddir/root
111   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
112  
113   %if "%online" == "true"
114 < # Use system qt. Also skip xrootd and odbc for online case:
114 > # Also skip xrootd and odbc for online case:
115  
116   EXTRA_CONFIG_ARGS="--with-f77=/usr
117 <             --disable-xrootd
126 <             --disable-odbc
127 <             --disable-qt --disable-qtgsi"
117 >             --disable-odbc --disable-astiff"
118   %else
119   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
120   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
131             --with-xrootd=$XROOTD_ROOT
132             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
121               --with-ssl-incdir=${OPENSSL_ROOT}/include
122 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
135 <             --enable-qtgsi"
122 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
123   %endif
124  
125   CONFIG_ARGS="--enable-table
# Line 151 | Line 138 | CONFIG_ARGS="--enable-table
138               --with-fftw3-libdir=${FFTW3_ROOT}/lib
139               --disable-ldap
140               --disable-krb5
141 +             --with-xrootd=${XROOTD_ROOT}
142               --with-gsl-incdir=${GSL_ROOT}/include
143               --with-gsl-libdir=${GSL_ROOT}/lib
144               --with-dcap-libdir=${DCAP_ROOT}/lib
145               --with-dcap-incdir=${DCAP_ROOT}/include
146               --disable-pgsql
147               --disable-mysql
148 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
148 >             --disable-qt --disable-qtgsi
149 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
150  
151 < case $(uname)-$(uname -m) in
152 <  Linux-x86_64)
153 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
154 <  Linux-i*86)
155 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
156 <  Darwin*)
151 > case %cmsos in
152 >  slc*_amd64)
153 >    ./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 ;;
154 >  slc*_ia32)
155 >    ./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 ;;
156 >  osx*)
157      case %cmsplatf in
158      *_ia32_* )
159 <      comparch=i386 ;;
159 >      comparch=i386
160 >      macconfig=macosx
161 >      ;;
162      *_amd64_* )
163 <      comparch=x86_64 ;;
163 >      comparch=x86_64
164 >      macconfig=macosx64
165 >      ;;
166      * )
167 <      comparch=ppc ;;
167 >      comparch=ppc
168 >      macconfig=macosx
169 >      ;;
170      esac
171 <    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
172 <    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
173 <  Linux-ppc64*)
171 >    export CC=`which gcc` CXX=`which g++`
172 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
173 >  slc*_ppc64*)
174      ./configure linux $CONFIG_ARGS --disable-rfio;;
175   esac
176  
177 < case %cmsplatf in
178 <  osx*)
179 <   makeopts=
185 <  ;;
186 <  *)
187 <   makeopts="%makeprocesses"
188 <  ;;
189 < esac
190 <
191 < make $makeopts
177 > makeopts="%makeprocesses"
178 >
179 > make $makeopts
180   make cintdlls
181  
182   %install
# Line 207 | Line 195 | export ROOTSYS=%i
195   make INSTALL="$cp" INSTALLDATA="$cp" install
196   mkdir -p $ROOTSYS/lib/python
197   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
198 < #
198 > # This file confuses rpm's find-requires because it starts with
199 > # a """ and it thinks is the shebang.
200 > rm -f %i/tutorials/pyroot/mrt.py
201  
212 # SCRAM ToolBox toolfile
213 mkdir -p %i/etc/scram.d
214 # rootcore toolfile
215 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
216  <tool name="rootcore" version="%v">
217    <info url="http://root.cern.ch/root/"/>
218    <lib name="Tree"/>
219    <lib name="Net"/>
220    <lib name="Thread"/>
221    <lib name="MathCore"/>
222    <lib name="RIO"/>
223    <lib name="Core"/>
224    <lib name="Cint"/>
225    <client>
226      <environment name="ROOTCORE_BASE" default="%i"/>
227      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
228      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
229      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
230    </client>
231    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
232    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
233    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
234    <use name="sockets"/>
235    <use name="pcre"/>
236    <use name="zlib"/>
237  </tool>
238 EOF_TOOLFILE
239
240 # root toolfile, alias for rootphysics. Using rootphysics is preferred.
241 cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
242  <tool name="root" version="%v">
243    <info url="http://root.cern.ch/root/"/>
244    <use name="rootphysics"/>
245  </tool>
246 EOF_TOOLFILE
247
248 # roothistmatrix toolfile
249 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
250  <tool name="roothistmatrix" version="%v">
251    <info url="http://root.cern.ch/root/"/>
252    <lib name="Hist"/>
253    <lib name="Matrix"/>
254    <use name="ROOTCore"/>
255  </tool>
256 EOF_TOOLFILE
257
258 # rootgpad toolfile
259 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
260  <tool name="rootgpad" version="%v">
261    <info url="http://root.cern.ch/root/"/>
262    <lib name="Gpad"/>
263    <lib name="Graf"/>
264    <use name="roothistmatrix"/>
265  </tool>
266 EOF_TOOLFILE
267
268 # rootphysics toolfile
269 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
270  <tool name="rootphysics" version="%v">
271    <info url="http://root.cern.ch/root/"/>
272    <lib name="Physics"/>
273    <use name="roothistmatrix"/>
274  </tool>
275 EOF_TOOLFILE
276
277 # rootgraphics toolfile, identical to old "root" toolfile
278 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
279  <tool name="rootgraphics" version="%v">
280    <info url="http://root.cern.ch/root/"/>
281    <lib name="TreePlayer"/>
282    <lib name="Graf3d"/>
283    <lib name="Postscript"/>
284    <use name="rootgpad"/>
285  </tool>
286 EOF_TOOLFILE
287
288 # rootcintex toolfile
289 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
290  <tool name="rootcintex" version="%v">
291    <info url="http://root.cern.ch/root/"/>
292    <lib name="Cintex"/>
293    <use name="ROOTRflx"/>
294    <use name="ROOTCore"/>
295  </tool>
296 EOF_TOOLFILE
297
298 # rootinteractive toolfile (GQt/qt lib dependencies
299 # have been moved to rootqt.xml)
300 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
301  <tool name="rootinteractive" version="%v">
302    <info url="http://root.cern.ch/root/"/>
303    <lib name="Rint"/>
304    <lib name="Gui"/>
305    <use name="libjpg"/>
306    <use name="libpng"/>
307    <use name="rootgpad"/>
308  </tool>
309 EOF_TOOLFILE
310
311 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
312  <tool name="rootqt" version="%v">
313    <info url="http://root.cern.ch/root/"/>
314    <lib name="GQt"/>
315    <use name="qt"/>
316  </tool>
317 EOF_TOOLFILE
318
319 # rootmath toolfile
320 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
321  <tool name="rootmath" version="%v">
322    <info url="http://root.cern.ch/root/"/>
323    <lib name="GenVector"/>
324    <lib name="MathMore"/>
325    <use name="ROOTCore"/>
326    <use name="gsl"/>
327  </tool>
328 EOF_TOOLFILE
329
330 # rootminuit toolfile
331 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
332  <tool name="rootminuit" version="%v">
333    <info url="http://root.cern.ch/root/"/>
334    <lib name="Minuit"/>
335    <use name="rootgpad"/>
336  </tool>
337 EOF_TOOLFILE
338
339 # rootminuit2 toolfile
340 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
341  <tool name="rootminuit2" version="%v">
342    <info url="http://root.cern.ch/root/"/>
343    <lib name="Minuit2"/>
344    <use name="rootgpad"/>
345  </tool>
346 EOF_TOOLFILE
347
348 # rootrflx toolfile
349 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
350  <tool name="rootrflx" version="%v">
351    <info url="http://root.cern.ch/root/"/>
352    <lib name="Reflex"/>
353    <client>
354      <environment name="ROOTRFLX_BASE" default="%i"/>
355      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
356      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
357    </client>
358    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
359    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
360    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
361    <use name="sockets"/>
362    <use name="gccxml"/>
363  </tool>
364 EOF_TOOLFILE
365
366 # roothtml toolfile
367 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
368  <tool name="roothtml" version="%v">
369    <info url="http://root.cern.ch/root/"/>
370    <lib name="Html"/>
371    <use name="rootgpad"/>
372  </tool>
373 EOF_TOOLFILE
374
375 # rootmlp toolfile
376 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
377  <tool name="rootmlp" version="%v">
378    <info url="http://root.cern.ch/root/"/>
379    <lib name="MLP"/>
380    <use name="RootGraphics"/>
381  </tool>
382 EOF_TOOLFILE
383
384 # roottmva toolfile
385 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
386  <tool name="roottmva" version="%v">
387    <info url="http://root.cern.ch/root/"/>
388    <lib name="TMVA"/>
389    <use name="ROOTMLP"/>
390    <use name="rootminuit"/>
391  </tool>
392 EOF_TOOLFILE
393
394 # rootthread toolfile
395 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
396  <tool name="rootthread" version="%v">
397    <info url="http://root.cern.ch/root/"/>
398    <use name="ROOTCore"/>
399  </tool>
400 EOF_TOOLFILE
202  
402 %post
403 perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines