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.22 by eulisse, Fri Jul 14 17:26:51 2006 UTC vs.
Revision 1.241 by elmer, Wed Feb 9 14:10:29 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines