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.184 by muzaffar, Fri Dec 4 16:43:26 2009 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
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 e
9 + cho false;; esac)
10  
11 < Patch0:  root-5.18-00-libpng
12 < Patch1:  root-5.21-04-CINT-maxlongline
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-00a-smatrix
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
25 < Patch14: root-5.22-00a-fireworks4
26 < Patch15: root-5.22-00d-fireworks5
27 < Patch16: root-5.22-00d-genreflex_python26_popen3
28 < Patch17: root-5.22-00d-fireworks6
29 < Patch18: root-5.22-00d-linker-gnu-hash-style
30 <
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 castor libjpg dcap pcre python
39 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
40 >
41 > %if "%ismac" != "true"
42 > Requires: castor dcap
43 > %endif
44  
45   %if "%online" != "true"
46 < Requires: qt openssl libpng zlib libungif xrootd
35 < %else
36 < %define skiplibtiff true
46 > Requires: openssl zlib xrootd
47   %endif
48  
49 < %if "%cpu" == "amd64"
50 < %define skiplibtiff true
49 > %if "%ismac" == "true"
50 > Requires: gfortran-macosx
51   %endif
52  
53 < %if "%skiplibtiff" != "true"
54 < Requires: libtiff
53 > %if "%online" != "true"
54 > %if "%ismac" != "true"
55 > Requires: qt
56 > %endif
57   %endif
58  
59   %prep
# Line 49 | Line 61 | Requires: libtiff
61   %patch0 -p1
62   %patch1 -p1
63   %patch2 -p1
64 < %patch3 -p1
64 > # patch3 is OS version dependent, see below
65   %patch4 -p1
54
66   %patch5 -p1
67   %patch6 -p1
68   %patch7 -p1
69   %patch8 -p1
70   %patch9 -p1
71 <
61 < # patch10 is compiler version dependent, see below
71 > %patch10 -p1
72   %patch11 -p1
73   %patch12 -p1
74 < # patch13 is compiler version dependent, see below
65 <
66 < # work around patch issue...
67 < rm graf3d/gl/src/gl2ps.c
74 > %patch13 -p1
75   %patch14 -p1
69 #work around patch issues in patch14(?)
70 rm graf3d/eve/inc/TEveLegoOverlay.h.orig
71 rm graf3d/eve/src/TEveLegoOverlay.cxx
72 rm graf3d/gl/inc/gl2ps.h.orig
73 rm graf3d/gl/src/gl2ps.c.orig
76   %patch15 -p1
77   %patch16 -p1
78 < %patch17 -p1
79 <
80 < case %gccver in
81 <  4.3.*)
82 < %patch13 -p1
83 <  ;;
84 <  4.4.*)
85 < %patch10 -p1
84 <  ;;
85 < esac
78 > %patch17 -p0
79 > %patch18 -p1
80 > %patch19 -p0
81 > %patch20 -p1
82 > %patch21 -p1
83 > %patch22 -p1
84 > %patch23 -p1
85 > %patch24 -p1
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 <
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
102 + export LIBJPG_ROOT
103   export ROOTSYS=%_builddir/root
104   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
105  
# Line 102 | 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
105             --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}
110             --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 125 | Line 129 | CONFIG_ARGS="--enable-table
129               --enable-reflex  
130               --enable-cintex
131               --enable-minuit2
132 +             --enable-fftw3
133 +             --with-fftw3-incdir=${FFTW3_ROOT}/include
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-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*)
152 <    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
153 <  Linux-ppc64*)
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
155 >      macconfig=macosx
156 >      ;;
157 >    *_amd64_* )
158 >      comparch=x86_64
159 >      macconfig=macosx64
160 >      ;;
161 >    * )
162 >      comparch=ppc
163 >      macconfig=macosx
164 >      ;;
165 >    esac
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=
152 <  ;;
153 <  *)
154 <   makeopts="%makeprocesses"
155 <  ;;
156 < esac
157 <
158 < make $makeopts
172 > makeopts="%makeprocesses"
173 >
174 > make $makeopts
175   make cintdlls
176  
177   %install
# Line 174 | 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 214 | 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 224 | 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 262 | Line 280 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
280    </tool>
281   EOF_TOOLFILE
282  
283 < # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
284 < # have been removed for the moment)
283 > # rootinteractive toolfile (GQt/qt lib dependencies
284 > # have been moved to rootqt.xml)
285   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
286    <tool name="rootinteractive" version="%v">
287      <info url="http://root.cern.ch/root/"/>
288      <lib name="Rint"/>
271    <lib name="GQt"/>
289      <lib name="Gui"/>
273    <use name="qt"/>
290      <use name="libjpg"/>
291      <use name="libpng"/>
292      <use name="rootgpad"/>
293    </tool>
294   EOF_TOOLFILE
295  
296 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
297 +  <tool name="rootqt" version="%v">
298 +    <info url="http://root.cern.ch/root/"/>
299 +    <lib name="GQt"/>
300 +    <use name="qt"/>
301 +  </tool>
302 + EOF_TOOLFILE
303 +
304   # rootmath toolfile
305   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
306    <tool name="rootmath" version="%v">
# Line 360 | 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