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.13 by eulisse, Thu Jun 8 13:38:42 2006 UTC vs.
Revision 1.245 by elmer, Sun Feb 13 15:05:18 2011 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00c
2 < # INITENV +PATH PYTHONPATH %i/lib/python
3 < # Source: cvs://:pserver:cvs@root.cern.ch:2401/user/cvs?passwd=Ah<Z&tag=-rv%(echo %v | tr . -)&module=root&output=/%{n}_v%{v}.source.tar.gz
4 < Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz
5 < Requires: gccxml python qt gsl rfio openssl mysql libpng libjpg libtiff
6 < Patch0: root
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 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 > Patch25: root-5.27-06b-r36708
37 >
38 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
39 >
40 > Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3
41 >
42 > %if "%ismac" != "true"
43 > Requires: castor dcap
44 > %endif
45 >
46 > %if "%online" != "true"
47 > Requires: openssl zlib xrootd
48 > %endif
49 >
50 > %if "%ismac" == "true"
51 > Requires: gfortran-macosx
52 > %endif
53 >
54 > %if "%online" != "true"
55 > %if "%ismac" != "true"
56 > Requires: qt
57 > %endif
58 > %endif
59 >
60   %prep
61   %setup -n root
62 < %patch0
62 > %patch0 -p1
63 > %patch1 -p1
64 > %patch2 -p1
65 > # patch3 is OS version dependent, see below
66 > %patch4 -p1
67 > %patch5 -p1
68 > %patch6 -p1
69 > %patch7 -p1
70 > %patch8 -p1
71 > %patch9 -p1
72 > %patch10 -p1
73 > %patch11 -p1
74 > %patch12 -p1
75 > %patch13 -p1
76 > %patch14 -p1
77 > %patch15 -p1
78 > %patch16 -p1
79 > %patch17 -p0
80 > %patch18 -p1
81 > %patch19 -p0
82 > %patch20 -p1
83 > %patch21 -p1
84 > %patch22 -p1
85 > %patch23 -p1
86 > %patch24 -p1
87 > %patch25 -p1
88 >
89 > # The following patch can only be applied on SLC5 or later (extra linker
90 > # options only available with the SLC5 binutils)
91 > case %cmsplatf in
92 >  slc5_* | slc5onl_* )
93 > %patch3 -p1
94 >  ;;
95 > esac
96 >
97 > # Delete these (irrelevant) files as the fits appear to confuse rpm on OSX
98 > # (It tries to run install_name_tool on them.)
99 > rm -fR tutorials/fitsio
100  
101   %build
102 +
103   mkdir -p %i
104 < export ROOTSYS=%i
104 > export LIBJPG_ROOT
105 > export ROOTSYS=%_builddir/root
106 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
107 >
108 > %if "%online" == "true"
109 > # Use system qt. Also skip xrootd and odbc for online case:
110 >
111 > EXTRA_CONFIG_ARGS="--with-f77=/usr
112 >             --disable-odbc
113 >             --disable-qt --disable-qtgsi --disable-astiff"
114 > %else
115 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
116 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
117 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
118 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
119 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
120 >             --enable-qtgsi"
121 > %endif
122 >
123   CONFIG_ARGS="--enable-table
124 +             --disable-builtin-pcre
125 +             --disable-builtin-freetype
126 +             --disable-builtin-zlib
127               --with-gccxml=${GCCXML_ROOT}
128 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include
17 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
128 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
129               --enable-explicitlink
130 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
20 <             --enable-mathcore
130 >             --enable-mathmore
131               --enable-reflex  
132               --enable-cintex
133               --enable-minuit2
134 <             --enable-roofit
134 >             --enable-fftw3
135 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
136 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
137               --disable-ldap
138               --disable-krb5
139 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
140 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
141 <             --with-shift-incdir=${RFIO_ROOT}/include
142 <             --with-shift-libdir=${RFIO_ROOT}/lib
139 >             --with-xrootd=${XROOTD_ROOT}
140 >             --with-gsl-incdir=${GSL_ROOT}/include
141 >             --with-gsl-libdir=${GSL_ROOT}/lib
142 >             --with-dcap-libdir=${DCAP_ROOT}/lib
143 >             --with-dcap-incdir=${DCAP_ROOT}/include
144               --disable-pgsql
145 <             --disable-xml"
145 >             --disable-mysql
146 >             --disable-oracle ${EXTRA_CONFIG_ARGS}"
147  
148 < case $(uname)-$(uname -m) in
149 <  Linux-x86_64)
150 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
151 <  Linux*)
152 <    ./configure linux $CONFIG_ARGS;;
153 <  Darwin*)
154 <    ./configure macosx $CONFIG_ARGS;;
148 > case %cmsos in
149 >  slc*_amd64)
150 >    ./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 ;;
151 >  slc*_ia32)
152 >    ./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 ;;
153 >  osx*)
154 >    case %cmsplatf in
155 >    *_ia32_* )
156 >      comparch=i386
157 >      macconfig=macosx
158 >      ;;
159 >    *_amd64_* )
160 >      comparch=x86_64
161 >      macconfig=macosx64
162 >      ;;
163 >    * )
164 >      comparch=ppc
165 >      macconfig=macosx
166 >      ;;
167 >    esac
168 >    export CC=`which gcc` CXX=`which g++`
169 >    ./configure $arch $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
170 >  slc*_ppc64*)
171 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
172   esac
173  
174 < make %makeprocesses
174 > makeopts="%makeprocesses"
175 >
176 > make $makeopts
177 > make cintdlls
178  
179   %install
180   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 54 | Line 188 | else
188    cp="cp -pPR"
189   fi
190  
191 < export ROOTSYS=%i/root
191 > export ROOTSYS=%i
192   make INSTALL="$cp" INSTALLDATA="$cp" install
193 < mkdir -p %i/root/lib/python
194 < cp -r reflex/python/genreflex %i/root/lib/python
193 > mkdir -p $ROOTSYS/lib/python
194 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
195 > # This file confuses rpm's find-requires because it starts with
196 > # a """ and it thinks is the shebang.
197 > rm -f %i/tutorials/pyroot/mrt.py
198 >
199 > # SCRAM ToolBox toolfile
200 > mkdir -p %i/etc/scram.d
201 > # rootcore toolfile
202 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
203 >  <tool name="rootcore" version="%v">
204 >    <info url="http://root.cern.ch/root/"/>
205 >    <lib name="Tree"/>
206 >    <lib name="Net"/>
207 >    <lib name="Thread"/>
208 >    <lib name="MathCore"/>
209 >    <lib name="RIO"/>
210 >    <lib name="Core"/>
211 >    <lib name="Cint"/>
212 >    <client>
213 >      <environment name="ROOTCORE_BASE" default="%i"/>
214 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
215 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
216 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
217 >    </client>
218 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
219 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
220 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
221 >    <use name="sockets"/>
222 >    <use name="pcre"/>
223 >    <use name="zlib"/>
224 >  </tool>
225 > EOF_TOOLFILE
226 >
227 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
228 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
229 >  <tool name="root" version="%v">
230 >    <info url="http://root.cern.ch/root/"/>
231 >    <use name="rootphysics"/>
232 >  </tool>
233 > EOF_TOOLFILE
234 >
235 > # roothistmatrix toolfile
236 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
237 >  <tool name="roothistmatrix" version="%v">
238 >    <info url="http://root.cern.ch/root/"/>
239 >    <lib name="Hist"/>
240 >    <lib name="Matrix"/>
241 >    <use name="ROOTCore"/>
242 >  </tool>
243 > EOF_TOOLFILE
244 >
245 > # rootgpad toolfile
246 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
247 >  <tool name="rootgpad" version="%v">
248 >    <info url="http://root.cern.ch/root/"/>
249 >    <lib name="Gpad"/>
250 >    <lib name="Graf"/>
251 >    <use name="roothistmatrix"/>
252 >  </tool>
253 > EOF_TOOLFILE
254 >
255 > # rootphysics toolfile
256 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
257 >  <tool name="rootphysics" version="%v">
258 >    <info url="http://root.cern.ch/root/"/>
259 >    <lib name="Physics"/>
260 >    <use name="roothistmatrix"/>
261 >  </tool>
262 > EOF_TOOLFILE
263 >
264 > # rootgraphics toolfile, identical to old "root" toolfile
265 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
266 >  <tool name="rootgraphics" version="%v">
267 >    <info url="http://root.cern.ch/root/"/>
268 >    <lib name="TreePlayer"/>
269 >    <lib name="Graf3d"/>
270 >    <lib name="Postscript"/>
271 >    <use name="rootgpad"/>
272 >  </tool>
273 > EOF_TOOLFILE
274 >
275 > # rootcintex toolfile
276 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
277 >  <tool name="rootcintex" version="%v">
278 >    <info url="http://root.cern.ch/root/"/>
279 >    <lib name="Cintex"/>
280 >    <use name="ROOTRflx"/>
281 >    <use name="ROOTCore"/>
282 >  </tool>
283 > EOF_TOOLFILE
284 >
285 > # rootinteractive toolfile (GQt/qt lib dependencies
286 > # have been moved to rootqt.xml)
287 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
288 >  <tool name="rootinteractive" version="%v">
289 >    <info url="http://root.cern.ch/root/"/>
290 >    <lib name="Rint"/>
291 >    <lib name="Gui"/>
292 >    <use name="libjpg"/>
293 >    <use name="libpng"/>
294 >    <use name="rootgpad"/>
295 >  </tool>
296 > EOF_TOOLFILE
297 >
298 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
299 >  <tool name="rootqt" version="%v">
300 >    <info url="http://root.cern.ch/root/"/>
301 >    <lib name="GQt"/>
302 >    <use name="qt"/>
303 >  </tool>
304 > EOF_TOOLFILE
305 >
306 > # rootmath toolfile
307 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
308 >  <tool name="rootmath" version="%v">
309 >    <info url="http://root.cern.ch/root/"/>
310 >    <lib name="GenVector"/>
311 >    <lib name="MathMore"/>
312 >    <use name="ROOTCore"/>
313 >    <use name="gsl"/>
314 >  </tool>
315 > EOF_TOOLFILE
316 >
317 > # rootminuit toolfile
318 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
319 >  <tool name="rootminuit" version="%v">
320 >    <info url="http://root.cern.ch/root/"/>
321 >    <lib name="Minuit"/>
322 >    <use name="rootgpad"/>
323 >  </tool>
324 > EOF_TOOLFILE
325 >
326 > # rootminuit2 toolfile
327 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
328 >  <tool name="rootminuit2" version="%v">
329 >    <info url="http://root.cern.ch/root/"/>
330 >    <lib name="Minuit2"/>
331 >    <use name="rootgpad"/>
332 >  </tool>
333 > EOF_TOOLFILE
334 >
335 > # rootrflx toolfile
336 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
337 >  <tool name="rootrflx" version="%v">
338 >    <info url="http://root.cern.ch/root/"/>
339 >    <lib name="Reflex"/>
340 >    <client>
341 >      <environment name="ROOTRFLX_BASE" default="%i"/>
342 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
343 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
344 >    </client>
345 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
346 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
347 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
348 >    <use name="sockets"/>
349 >    <use name="gccxml"/>
350 >  </tool>
351 > EOF_TOOLFILE
352 >
353 > # roothtml toolfile
354 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
355 >  <tool name="roothtml" version="%v">
356 >    <info url="http://root.cern.ch/root/"/>
357 >    <lib name="Html"/>
358 >    <use name="rootgpad"/>
359 >  </tool>
360 > EOF_TOOLFILE
361 >
362 > # rootmlp toolfile
363 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
364 >  <tool name="rootmlp" version="%v">
365 >    <info url="http://root.cern.ch/root/"/>
366 >    <lib name="MLP"/>
367 >    <use name="RootGraphics"/>
368 >  </tool>
369 > EOF_TOOLFILE
370 >
371 > # roottmva toolfile
372 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
373 >  <tool name="roottmva" version="%v">
374 >    <info url="http://root.cern.ch/root/"/>
375 >    <lib name="TMVA"/>
376 >    <use name="ROOTMLP"/>
377 >    <use name="rootminuit"/>
378 >  </tool>
379 > EOF_TOOLFILE
380 >
381 > # rootthread toolfile
382 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
383 >  <tool name="rootthread" version="%v">
384 >    <info url="http://root.cern.ch/root/"/>
385 >    <use name="ROOTCore"/>
386 >  </tool>
387 > EOF_TOOLFILE
388 >
389 > # rootxml toolfile
390 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootxml.xml
391 >  <tool name="rootxml" version="%v">
392 >    <info url="http://root.cern.ch/root/"/>
393 >    <lib name="XMLParser"/>
394 >    <use name="ROOTCore"/>
395 >  </tool>
396 > EOF_TOOLFILE
397 >
398 > # rootfoam toolfile
399 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootfoam.xml
400 >  <tool name="rootfoam" version="%v">
401 >    <info url="http://root.cern.ch/root/"/>
402 >    <lib name="Foam"/>
403 >    <use name="roothistmatrix"/>
404 >  </tool>
405 > EOF_TOOLFILE
406 >
407 > %post
408 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)
409 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines