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.161 by dlange, Sat May 9 19:26:34 2009 UTC vs.
Revision 1.267 by muzaffar, Fri Jun 10 15:44:32 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.22.00a
1 > ### RPM lcg root 5.28.00d
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 <
7 < Patch0:  root-5.18-00-libpng
8 < Patch1:  root-5.21-04-CINT-maxlongline
9 < Patch2:  root-5.22-00-TMVA-shut-the-hell-up-for-once
10 < Patch3:  root-5.22-00a-TMVA-shut-the-hell-up-again
11 < Patch4:  root-5.22-00a-CINTFunctional
12 < Patch5:  root-5.22-00a-TClass
13 < Patch6:  root-5.22-00a-fireworks-graf3d-gui
14 < Patch7:  root-5.22-00a-Reflex-Class
15 < Patch8:  root-5.22-00a-Cintex
16 < Patch9:  root-5.22-00a-roofit-silence-static-printout
17 < Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up
18 < Patch11: root-5.22-00a-th1
19 < Patch12: root-5.22-00a-smatrix
20 < Patch13: root-5.22-00a-fireworks1
21 < Patch14: root-5.22-00a-Reflex-gendict_selclass
22 < Patch15: root-5.22-00a-MatrixInversion
23 < Patch16: root-5.22-00a-gcc44
24 < Patch17: root-5.22-00a-fireworks2
25 < Patch18: root-5.22-00a-fireworks3
26 < Patch19: root-5.22-00a-TBranchElement
27 <
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.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)
29 %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
24  
25 < Requires: gccxml gsl castor libjpg dcap pcre python
25 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
26  
27 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
28 < Requires: qt openssl mysql libpng zlib libungif xrootd
35 < %else
36 < %define skiplibtiff true
27 > %if "%ismac" != "true"
28 > Requires: castor dcap
29   %endif
30  
31 < %if "%cpu" == "amd64"
32 < %define skiplibtiff true
31 > %if "%online" != "true"
32 > Requires: openssl zlib xrootd
33   %endif
34  
35 < %if "%skiplibtiff" != "true"
36 < Requires: libtiff
35 > %if "%ismac" == "true"
36 > Requires: gfortran-macosx
37   %endif
38  
39   %prep
# Line 49 | Line 41 | Requires: libtiff
41   %patch0 -p1
42   %patch1 -p1
43   %patch2 -p1
44 < %patch3 -p1
44 > # patch3 is OS version dependent, see below
45   %patch4 -p1
46   %patch5 -p1
47   %patch6 -p1
48 < %patch7 -p0
49 < %patch8 -p0
48 > %patch7 -p1
49 > %patch8 -p1
50   %patch9 -p1
51   %patch10 -p1
52 < %patch11 -p1
53 < %patch12 -p1
54 < %patch13 -p1
55 < %patch14 -p0
56 < %patch15 -p0
57 < %patch16 -p1
58 < %patch17 -p1
67 < %patch18 -p1
68 < %patch19 -p0
69 < # work around patch issue...
70 < rm graf3d/gl/src/gl2ps.c
71 <
72 < case %gccver in
73 <  4.4)
74 < %patch16 -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)
56 > case %cmsplatf in
57 >  slc5_* | slc5onl_* )
58 > %patch3 -p1
59    ;;
60   esac
61 <
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
69 + export LIBJPG_ROOT
70   export ROOTSYS=%_builddir/root
71 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
72  
73 < %if "%cmsplatf" == "slc4onl_ia32_gcc346"
83 < # Build without mysql, and use system qt.
73 > %if "%online" == "true"
74   # Also skip xrootd and odbc for online case:
75  
76 < EXTRA_CONFIG_ARGS="
77 <             --disable-mysql
88 <             --disable-xrootd
89 <             --disable-odbc
90 <             --enable-qt"
76 > EXTRA_CONFIG_ARGS="--with-f77=/usr
77 >             --disable-odbc --disable-astiff"
78   %else
79 < EXTRA_CONFIG_ARGS="
80 <             --with-xrootd=$XROOTD_ROOT
94 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
95 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
79 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
80 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
81               --with-ssl-incdir=${OPENSSL_ROOT}/include
82               --with-ssl-libdir=${OPENSSL_ROOT}/lib"
83   %endif
84  
85 < CONFIG_ARGS="--with-f77=${GCC_ROOT}
101 <             --enable-table
85 > CONFIG_ARGS="--enable-table
86               --disable-builtin-pcre
87               --disable-builtin-freetype
88               --disable-builtin-zlib
89               --with-gccxml=${GCCXML_ROOT}
90 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
90 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
91               --enable-explicitlink
108             --enable-qtgsi
92               --enable-mathmore
93               --enable-reflex  
94               --enable-cintex
95               --enable-minuit2
96 <             --enable-roofit
96 >             --enable-fftw3
97 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
98 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
99               --disable-ldap
100               --disable-krb5
101 +             --with-xrootd=${XROOTD_ROOT}
102               --with-gsl-incdir=${GSL_ROOT}/include
103               --with-gsl-libdir=${GSL_ROOT}/lib
104               --with-dcap-libdir=${DCAP_ROOT}/lib
105               --with-dcap-incdir=${DCAP_ROOT}/include
106               --disable-pgsql
107 <             --disable-xml ${EXTRA_CONFIG_ARGS}"
107 >             --disable-mysql
108 >             --disable-qt --disable-qtgsi
109 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
110  
111 < #case %gccver in
112 < #  4.*)
113 < #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
114 < #  ;;
115 < #esac
116 <
117 < case $(uname)-$(uname -p) in
118 <  Linux-x86_64)
119 <    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
120 <  Linux-i*86)
121 <    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
122 <  Darwin*)
123 <    ./configure macosx $CONFIG_ARGS --disable-rfio;;
124 <  Linux-ppc64*)
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 >  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 >  osx*)
117 >    case %cmsplatf in
118 >    *_ia32_* )
119 >      comparch=i386
120 >      macconfig=macosx
121 >      ;;
122 >    *_amd64_* )
123 >      comparch=x86_64
124 >      macconfig=macosx64
125 >      ;;
126 >    * )
127 >      comparch=ppc
128 >      macconfig=macosx
129 >      ;;
130 >    esac
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=
143 <  ;;
144 <  *)
145 <   makeopts="%makeprocesses"
146 <  ;;
147 < esac
148 <
149 < make $makeopts
150 < 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 165 | 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 < #
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 >
161  
170 # SCRAM ToolBox toolfile
171 mkdir -p %i/etc/scram.d
172 # rootcore toolfile
173 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
174 <doc type=BuildSystem::ToolDoc version=1.0>
175 <Tool name=rootcore version=%v>
176 <info url="http://root.cern.ch/root/"></info>
177 <lib name=Tree>
178 <lib name=Net>
179 <lib name=Thread>
180 <lib name=MathCore>
181 <lib name=RIO>
182 <lib name=Core>
183 <lib name=Cint>
184 <Client>
185 <Environment name=ROOTCORE_BASE default="%i"></Environment>
186 <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
187 <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
188 <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
189 </Client>
190 <use name=sockets>
191 <use name=pcre>
192 <use name=zlib>
193 <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
194 <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
195 <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
196 </Tool>
197 EOF_TOOLFILE
198
199 # root toolfile, alias for rootphysics. Using rootphysics is preferred.
200 cat << \EOF_TOOLFILE >%i/etc/scram.d/root
201 <doc type=BuildSystem::ToolDoc version=1.0>
202 <Tool name=root version=%v>
203 <info url="http://root.cern.ch/root/"></info>
204 <use name=rootphysics>
205 </Tool>
206 EOF_TOOLFILE
207
208 # roothistmatrix toolfile
209 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
210 <doc type=BuildSystem::ToolDoc version=1.0>
211 <Tool name=roothistmatrix version=%v>
212 <info url="http://root.cern.ch/root/"></info>
213 <lib name=Hist>
214 <lib name=Matrix>
215 <use name=ROOTCore>
216 </Tool>
217 EOF_TOOLFILE
218
219 # rootgpad toolfile
220 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad
221 <doc type=BuildSystem::ToolDoc version=1.0>
222 <Tool name=rootgpad version=%v>
223 <info url="http://root.cern.ch/root/"></info>
224 <lib name=Gpad>
225 <lib name=Graf>
226 <use name=roothistmatrix>
227 </Tool>
228 EOF_TOOLFILE
229
230 # rootphysics toolfile
231 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
232 <doc type=BuildSystem::ToolDoc version=1.0>
233 <Tool name=rootphysics version=%v>
234 <info url="http://root.cern.ch/root/"></info>
235 <lib name=Physics>
236 <use name=roothistmatrix>
237 </Tool>
238 EOF_TOOLFILE
239
240 # rootgraphics toolfile, identical to old "root" toolfile
241 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
242 <doc type=BuildSystem::ToolDoc version=1.0>
243 <Tool name=rootgraphics version=%v>
244 <info url="http://root.cern.ch/root/"></info>
245 <lib name=TreePlayer>
246 <lib name=Graf3d>
247 <lib name=Postscript>
248 <use name=rootgpad>
249 </Tool>
250 EOF_TOOLFILE
251
252 # rootcintex toolfile
253 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
254 <doc type=BuildSystem::ToolDoc version=1.0>
255 <Tool name=rootcintex version=%v>
256 <info url="http://root.cern.ch/root/"></info>
257 <lib name=Cintex>
258 <use name=ROOTRflx>
259 <use name=ROOTCore>
260 </Tool>
261 EOF_TOOLFILE
262
263 # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
264 # have been removed for the moment)
265 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
266 <doc type=BuildSystem::ToolDoc version=1.0>
267 <Tool name=rootinteractive version=%v>
268 <info url="http://root.cern.ch/root/"></info>
269 <lib name=Rint>
270 <lib name=GQt>
271 <lib name=Gui>
272 <use name=qt>
273 <use name=libjpg>
274 <use name=libpng>
275 <use name=rootgpad>
276 </Tool>
277 EOF_TOOLFILE
278
279 # rootmath toolfile
280 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
281 <doc type=BuildSystem::ToolDoc version=1.0>
282 <Tool name=rootmath version=%v>
283 <info url="http://root.cern.ch/root/"></info>
284 <lib name=GenVector>
285 <lib name=MathMore>
286 <use name=ROOTCore>
287 <use name=gsl>
288 </Tool>
289 EOF_TOOLFILE
290
291 # rootminuit toolfile
292 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
293 <doc type=BuildSystem::ToolDoc version=1.0>
294 <Tool name=rootminuit version=%v>
295 <info url="http://root.cern.ch/root/"></info>
296 <lib name=Minuit>
297 <use name=rootgpad>
298 </Tool>
299 EOF_TOOLFILE
300
301 # rootminuit2 toolfile
302 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
303 <doc type=BuildSystem::ToolDoc version=1.0>
304 <Tool name=rootminuit2 version=%v>
305 <info url="http://root.cern.ch/root/"></info>
306 <lib name=Minuit2>
307 <use name=rootgpad>
308 </Tool>
309 EOF_TOOLFILE
310
311 # rootrflx toolfile
312 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
313 <doc type=BuildSystem::ToolDoc version=1.0>
314 <Tool name=rootrflx version=%v>
315 <info url="http://root.cern.ch/root/"></info>
316 <lib name=Reflex>
317 <Client>
318 <Environment name=ROOTRFLX_BASE default="%i"></Environment>
319 <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
320 <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
321 </Client>
322 <use name=sockets>
323 <use name=gccxml>
324 <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
325 <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
326 <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
327 </Tool>
328 EOF_TOOLFILE
329
330 # roothtml toolfile
331 cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
332 <doc type=BuildSystem::ToolDoc version=1.0>
333 <Tool name=roothtml version=%v>
334 <info url="http://root.cern.ch/root/"></info>
335 <lib name=Html>
336 <use name=rootgpad>
337 </Tool>
338 EOF_TOOLFILE
339
340 # rootroofit toolfile
341 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
342 <doc type=BuildSystem::ToolDoc version=1.0>
343 <Tool name=rootroofit version=%v>
344 <info url="http://root.cern.ch/root/"></info>
345 <lib name=RooFit>
346 <lib name=RooFitCore>
347 <use name=ROOTMinuit>
348 </Tool>
349 EOF_TOOLFILE
350
351 # rootmlp toolfile
352 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
353 <doc type=BuildSystem::ToolDoc version=1.0>
354 <Tool name=rootmlp version=%v>
355 <info url="http://root.cern.ch/root/"></info>
356 <lib name=MLP>
357 <use name=RootGraphics>
358 </Tool>
359 EOF_TOOLFILE
360
361 # roottmva toolfile
362 cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
363 <doc type=BuildSystem::ToolDoc version=1.0>
364 <Tool name=roottmva version=%v>
365 <info url="http://root.cern.ch/root/"></info>
366 <lib name=TMVA>
367 <use name=ROOTMLP>
368 <use name=rootminuit>
369 </Tool>
370 EOF_TOOLFILE
371
372 # rootthread toolfile
373 cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
374 <doc type=BuildSystem::ToolDoc version=1.0>
375 <Tool name=rootthread version=%v>
376 <info url="http://root.cern.ch/root/"></info>
377 <use name=ROOTCore>
378 </Tool>
379 EOF_TOOLFILE
380
381 %post
382 %{relocateConfig}etc/scram.d/root
383 %{relocateConfig}etc/scram.d/rootcore
384 %{relocateConfig}etc/scram.d/roothistmatrix
385 %{relocateConfig}etc/scram.d/rootphysics
386 %{relocateConfig}etc/scram.d/rootgraphics
387 %{relocateConfig}etc/scram.d/rootcintex
388 %{relocateConfig}etc/scram.d/rootinteractive
389 %{relocateConfig}etc/scram.d/rootmath
390 %{relocateConfig}etc/scram.d/rootminuit
391 %{relocateConfig}etc/scram.d/rootminuit2
392 %{relocateConfig}etc/scram.d/rootrflx
393 %{relocateConfig}etc/scram.d/roothtml
394 %{relocateConfig}etc/scram.d/rootroofit
395 %{relocateConfig}etc/scram.d/rootmlp
396 %{relocateConfig}etc/scram.d/roottmva
397 %{relocateConfig}etc/scram.d/rootthread

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines