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.223 by elmer, Mon Dec 13 23:30:30 2010 UTC vs.
Revision 1.267 by muzaffar, Fri Jun 10 15:44:32 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.27.06b
1 > ### RPM lcg root 5.28.00d
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.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
22 < Patch13: root-5.27-06b-tmva_Event_dynamic_hack
23 < Patch14: root-5.27-06b-r37405
24 < Patch15: root-5.27-06b-r37556
25 <
10 > Patch0: root-5.28-00d-externals
11 > Patch1: root-5.28-00d-CINT-maxlongline-maxtypedef
12 > Patch2: root-5.28-00d-roofit-silence-static-printout
13 > Patch3: root-5.28-00d-linker-gnu-hash-style
14 > Patch4: root-5.28-00d-TBranchElement-dropped-data-member
15 > Patch5: root-5.28-00d-r37582-tmva
16 > Patch6: root-5.28-00d-TTreeCache-r37919
17 > Patch7: root-5.28-00d-r38248-r38259-r38264-r38265-r38267
18 > Patch8: root-5.28-00d-fireworks1
19 > Patch9: root-5.28-00d-r39155
20 > Patch10: root-5.28-00d-r39525
21 > Patch11: root-5.28-00d-r39657
22 >
23   %define cpu %(echo %cmsplatf | cut -d_ -f2)
24  
25 < Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3
25 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
26 >
27 > %if "%ismac" != "true"
28 > Requires: castor dcap
29 > %endif
30 >
31   %if "%online" != "true"
32 < Requires: qt openssl libpng zlib libungif libtiff
32 > Requires: openssl zlib xrootd
33 > %endif
34 >
35 > %if "%ismac" == "true"
36 > Requires: gfortran-macosx
37   %endif
38  
39   %prep
# Line 43 | Line 49 | Requires: qt openssl libpng zlib libungi
49   %patch8 -p1
50   %patch9 -p1
51   %patch10 -p1
52 < %patch11 -p1
47 < %patch12 -p1
48 < %patch13 -p1
49 < %patch14 -p1
50 < %patch15 -p1
52 > %patch11 -p0
53  
54   # The following patch can only be applied on SLC5 or later (extra linker
55   # options only available with the SLC5 binutils)
# Line 57 | Line 59 | case %cmsplatf in
59    ;;
60   esac
61  
62 + # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
63 + # (It tries to run install_name_tool on them.)
64 + rm -fR tutorials/fitsio
65 +
66   %build
67  
68   mkdir -p %i
# Line 65 | Line 71 | export ROOTSYS=%_builddir/root
71   export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
72  
73   %if "%online" == "true"
74 < # Use system qt. Also skip xrootd and odbc for online case:
74 > # Also skip xrootd and odbc for online case:
75  
76   EXTRA_CONFIG_ARGS="--with-f77=/usr
77 <             --disable-odbc
72 <             --disable-qt --disable-qtgsi --disable-astiff"
77 >             --disable-odbc --disable-astiff"
78   %else
79   export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
80   EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
76             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
81               --with-ssl-incdir=${OPENSSL_ROOT}/include
82 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
79 <             --enable-qtgsi"
82 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
83   %endif
84  
85   CONFIG_ARGS="--enable-table
# Line 102 | Line 105 | CONFIG_ARGS="--enable-table
105               --with-dcap-incdir=${DCAP_ROOT}/include
106               --disable-pgsql
107               --disable-mysql
108 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
108 >             --disable-qt --disable-qtgsi
109 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
110  
111 < case $(uname)-$(uname -m) in
112 <  Linux-x86_64)
111 > case %cmsos in
112 >  slc*_amd64)
113      ./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 ;;
114 <  Linux-i*86)
114 >  slc*_ia32)
115      ./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 ;;
116 <  Darwin*)
116 >  osx*)
117      case %cmsplatf in
118      *_ia32_* )
119 <      comparch=i386 ;;
119 >      comparch=i386
120 >      macconfig=macosx
121 >      ;;
122      *_amd64_* )
123 <      comparch=x86_64 ;;
123 >      comparch=x86_64
124 >      macconfig=macosx64
125 >      ;;
126      * )
127 <      comparch=ppc ;;
127 >      comparch=ppc
128 >      macconfig=macosx
129 >      ;;
130      esac
131 <    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
132 <    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
133 <  Linux-ppc64*)
131 >    export CC=`which gcc` CXX=`which g++`
132 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
133 >  slc*_ppc64*)
134      ./configure linux $CONFIG_ARGS --disable-rfio;;
135   esac
136  
137 < case %cmsplatf in
138 <  osx*)
139 <   makeopts=
130 <  ;;
131 <  *)
132 <   makeopts="%makeprocesses"
133 <  ;;
134 < esac
135 <
136 < make $makeopts
137 < make cintdlls
137 > makeopts="%makeprocesses"
138 >
139 > make $makeopts
140  
141   %install
142   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 152 | Line 154 | export ROOTSYS=%i
154   make INSTALL="$cp" INSTALLDATA="$cp" install
155   mkdir -p $ROOTSYS/lib/python
156   cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
157 + # This file confuses rpm's find-requires because it starts with
158 + # a """ and it thinks is the shebang.
159 + rm -f %i/tutorials/pyroot/mrt.py
160  
156 # SCRAM ToolBox toolfile
157 mkdir -p %i/etc/scram.d
158 # rootcore toolfile
159 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
160  <tool name="rootcore" version="%v">
161    <info url="http://root.cern.ch/root/"/>
162    <lib name="Tree"/>
163    <lib name="Net"/>
164    <lib name="Thread"/>
165    <lib name="MathCore"/>
166    <lib name="RIO"/>
167    <lib name="Core"/>
168    <lib name="Cint"/>
169    <client>
170      <environment name="ROOTCORE_BASE" default="%i"/>
171      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
172      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
173      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
174    </client>
175    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
176    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
177    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
178    <use name="sockets"/>
179    <use name="pcre"/>
180    <use name="zlib"/>
181  </tool>
182 EOF_TOOLFILE
183
184 # root toolfile, alias for rootphysics. Using rootphysics is preferred.
185 cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
186  <tool name="root" version="%v">
187    <info url="http://root.cern.ch/root/"/>
188    <use name="rootphysics"/>
189  </tool>
190 EOF_TOOLFILE
191
192 # roothistmatrix toolfile
193 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
194  <tool name="roothistmatrix" version="%v">
195    <info url="http://root.cern.ch/root/"/>
196    <lib name="Hist"/>
197    <lib name="Matrix"/>
198    <use name="ROOTCore"/>
199  </tool>
200 EOF_TOOLFILE
201
202 # rootgpad toolfile
203 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
204  <tool name="rootgpad" version="%v">
205    <info url="http://root.cern.ch/root/"/>
206    <lib name="Gpad"/>
207    <lib name="Graf"/>
208    <use name="roothistmatrix"/>
209  </tool>
210 EOF_TOOLFILE
211
212 # rootphysics toolfile
213 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
214  <tool name="rootphysics" version="%v">
215    <info url="http://root.cern.ch/root/"/>
216    <lib name="Physics"/>
217    <use name="roothistmatrix"/>
218  </tool>
219 EOF_TOOLFILE
220
221 # rootgraphics toolfile, identical to old "root" toolfile
222 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
223  <tool name="rootgraphics" version="%v">
224    <info url="http://root.cern.ch/root/"/>
225    <lib name="TreePlayer"/>
226    <lib name="Graf3d"/>
227    <lib name="Postscript"/>
228    <use name="rootgpad"/>
229  </tool>
230 EOF_TOOLFILE
231
232 # rootcintex toolfile
233 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
234  <tool name="rootcintex" version="%v">
235    <info url="http://root.cern.ch/root/"/>
236    <lib name="Cintex"/>
237    <use name="ROOTRflx"/>
238    <use name="ROOTCore"/>
239  </tool>
240 EOF_TOOLFILE
241
242 # rootinteractive toolfile (GQt/qt lib dependencies
243 # have been moved to rootqt.xml)
244 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
245  <tool name="rootinteractive" version="%v">
246    <info url="http://root.cern.ch/root/"/>
247    <lib name="Rint"/>
248    <lib name="Gui"/>
249    <use name="libjpg"/>
250    <use name="libpng"/>
251    <use name="rootgpad"/>
252  </tool>
253 EOF_TOOLFILE
254
255 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
256  <tool name="rootqt" version="%v">
257    <info url="http://root.cern.ch/root/"/>
258    <lib name="GQt"/>
259    <use name="qt"/>
260  </tool>
261 EOF_TOOLFILE
262
263 # rootmath toolfile
264 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
265  <tool name="rootmath" version="%v">
266    <info url="http://root.cern.ch/root/"/>
267    <lib name="GenVector"/>
268    <lib name="MathMore"/>
269    <use name="ROOTCore"/>
270    <use name="gsl"/>
271  </tool>
272 EOF_TOOLFILE
273
274 # rootminuit toolfile
275 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
276  <tool name="rootminuit" version="%v">
277    <info url="http://root.cern.ch/root/"/>
278    <lib name="Minuit"/>
279    <use name="rootgpad"/>
280  </tool>
281 EOF_TOOLFILE
282
283 # rootminuit2 toolfile
284 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
285  <tool name="rootminuit2" version="%v">
286    <info url="http://root.cern.ch/root/"/>
287    <lib name="Minuit2"/>
288    <use name="rootgpad"/>
289  </tool>
290 EOF_TOOLFILE
291
292 # rootrflx toolfile
293 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
294  <tool name="rootrflx" version="%v">
295    <info url="http://root.cern.ch/root/"/>
296    <lib name="Reflex"/>
297    <client>
298      <environment name="ROOTRFLX_BASE" default="%i"/>
299      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
300      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
301    </client>
302    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
303    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
304    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
305    <use name="sockets"/>
306    <use name="gccxml"/>
307  </tool>
308 EOF_TOOLFILE
309
310 # roothtml toolfile
311 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
312  <tool name="roothtml" version="%v">
313    <info url="http://root.cern.ch/root/"/>
314    <lib name="Html"/>
315    <use name="rootgpad"/>
316  </tool>
317 EOF_TOOLFILE
318
319 # rootmlp toolfile
320 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
321  <tool name="rootmlp" version="%v">
322    <info url="http://root.cern.ch/root/"/>
323    <lib name="MLP"/>
324    <use name="RootGraphics"/>
325  </tool>
326 EOF_TOOLFILE
327
328 # roottmva toolfile
329 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
330  <tool name="roottmva" version="%v">
331    <info url="http://root.cern.ch/root/"/>
332    <lib name="TMVA"/>
333    <use name="ROOTMLP"/>
334    <use name="rootminuit"/>
335  </tool>
336 EOF_TOOLFILE
337
338 # rootthread toolfile
339 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
340  <tool name="rootthread" version="%v">
341    <info url="http://root.cern.ch/root/"/>
342    <use name="ROOTCore"/>
343  </tool>
344 EOF_TOOLFILE
345
346 %post
347 perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
161  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines