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.4 by eulisse, Thu Apr 6 22:46:49 2006 UTC vs.
Revision 1.210 by elmer, Thu Sep 23 09:21:57 2010 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.10.00b
2 < # 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
3 < Source: ftp://root.cern.ch/%n/%{n}_v%{v}.source.tar.gz
4 < Requires: gccxml python qt gsl
5 < Patch0: root
1 > ### RPM lcg root 5.22.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 >
9 > Patch0: root-5.22-00d-externals
10 > Patch1: root-5.22-00d-CINT-maxlongline-maxtypedef
11 > Patch2: root-5.22-00-TMVA-shut-the-hell-up-for-once
12 > Patch3: root-5.22-00a-TMVA-shut-the-hell-up-again
13 > Patch4: root-5.22-00d-fireworks-graf3d-gui
14 > Patch5: root-5.22-00a-roofit-silence-static-printout
15 > Patch6: root-5.22-00a-TMVA-just-shut-the-hell-up
16 > Patch7: root-5.22-00a-th1
17 > Patch8: root-5.22-00d-makelib-ldl
18 > Patch9: root-5.22-00a-fireworks1
19 > Patch10: root-5.22-00a-gcc44
20 > Patch11: root-5.22-00a-fireworks2
21 > Patch12: root-5.22-00a-fireworks3
22 > Patch13: root-5.22-00a-gcc43-array-bounds-dictionary-workaround
23 > Patch14: root-5.22-00a-fireworks4
24 > Patch15: root-5.22-00d-fireworks5
25 > Patch16: root-5.22-00d-genreflex_python26_popen3
26 > Patch17: root-5.22-00d-fireworks6
27 > Patch18: root-5.22-00d-linker-gnu-hash-style
28 > Patch19: root-5.22-00d-TFile-version3-Init
29 > Patch20: root-5.22-00d-cint-namespace
30 > Patch21: root-5.22-00d-fireworks7
31 > Patch22: root-5.22-00d-TMath-Vavilov
32 > Patch23: root-5.22-00d-TBranchElement-dropped-data-member
33 > Patch24: root-5.22-00d-fireworks8
34 > Patch25: root-5.22-00d-fix-python-shebang
35 > Patch26: root-5.22-00d-RootsysOnMac
36 > Patch27: root-5.22-00d-TString-Clear
37 > Patch28: root-5.22-00d-libgfortran-dylib-detection
38 > Patch29: root-5.22-00d-cint-dll-correct-install-name
39 >
40 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
41 >
42 > Requires: gccxml gsl castor libjpg dcap pcre python fftw3
43 >
44 > %if "%online" != "true"
45 > Requires: qt openssl libpng zlib libungif xrootd libtiff
46 > %endif
47 >
48   %prep
49   %setup -n root
50 < %patch0
50 > %patch0 -p1
51 > %patch1 -p1
52 > %patch2 -p1
53 > %patch3 -p1
54 > %patch4 -p1
55 >
56 > %patch5 -p1
57 > %patch6 -p1
58 > %patch7 -p1
59 > %patch8 -p1
60 > %patch9 -p1
61 >
62 > # patch10 is compiler version dependent, see below
63 > %patch11 -p1
64 > %patch12 -p1
65 > # patch13 is compiler version dependent, see below
66 >
67 > # work around patch issue...
68 > rm graf3d/gl/src/gl2ps.c
69 > %patch14 -p1
70 > #work around patch issues in patch14(?)
71 > rm graf3d/eve/inc/TEveLegoOverlay.h.orig
72 > rm graf3d/eve/src/TEveLegoOverlay.cxx
73 > rm graf3d/gl/inc/gl2ps.h.orig
74 > rm graf3d/gl/src/gl2ps.c.orig
75 > %patch15 -p1
76 > %patch16 -p1
77 > %patch17 -p1
78 > %patch19 -p1
79 > %patch20 -p1
80 > %patch21 -p1
81 > %patch22 -p1
82 > %patch23 -p1
83 > %patch24 -p1
84 > %patch25 -p1
85 > %patch26 -p1
86 > %patch27 -p1
87 > %patch28 -p2
88 > %patch29 -p1
89 >
90 > case %gccver in
91 >  4.3.*)
92 > %patch13 -p1
93 >  ;;
94 >  4.4.*)
95 > %patch10 -p1
96 >  ;;
97 > esac
98 >
99 > # The following patch can only be applied on SLC5 or later (extra linker
100 > # options only available with the SLC5 binutils)
101 > case %cmsplatf in
102 >  slc5_* | slc5onl_* )
103 > %patch18 -p1
104 >  ;;
105 > esac
106  
107   %build
108 +
109   mkdir -p %i
110 < export ROOTSYS=%i
110 > export LIBJPG_ROOT
111 > export ROOTSYS=%_builddir/root
112 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
113 >
114 > %if "%online" == "true"
115 > # Use system qt. Also skip xrootd and odbc for online case:
116 >
117 > EXTRA_CONFIG_ARGS="--with-f77=/usr
118 >             --disable-xrootd
119 >             --disable-odbc
120 >             --disable-qt --disable-qtgsi"
121 > %else
122 > export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT
123 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
124 >             --with-xrootd=$XROOTD_ROOT
125 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
126 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
127 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib
128 >             --enable-qtgsi"
129 > %endif
130 >
131   CONFIG_ARGS="--enable-table
132 +             --disable-builtin-pcre
133 +             --disable-builtin-freetype
134 +             --disable-builtin-zlib
135               --with-gccxml=${GCCXML_ROOT}
136 <             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include
136 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
137               --enable-explicitlink
138 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
18 <             --enable-mathcore
138 >             --enable-mathmore
139               --enable-reflex  
140               --enable-cintex
141               --enable-minuit2
142 <             --enable-roofit"
142 >             --enable-fftw3
143 >             --with-fftw3-incdir=${FFTW3_ROOT}/include
144 >             --with-fftw3-libdir=${FFTW3_ROOT}/lib
145 >             --disable-ldap
146 >             --disable-krb5
147 >             --with-gsl-incdir=${GSL_ROOT}/include
148 >             --with-gsl-libdir=${GSL_ROOT}/lib
149 >             --with-dcap-libdir=${DCAP_ROOT}/lib
150 >             --with-dcap-incdir=${DCAP_ROOT}/include
151 >             --disable-pgsql
152 >             --disable-mysql
153 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
154  
155   case $(uname)-$(uname -m) in
156    Linux-x86_64)
157 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
158 <  Linux*)
159 <    ./configure linux $CONFIG_ARGS;;
160 <  Darwin)
161 <    ./configure macosx $CONFIG_ARGS;;
157 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
158 >  Linux-i*86)
159 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
160 >  Darwin*)
161 >    case %cmsplatf in
162 >    *_ia32_* )
163 >      comparch=i386 ;;
164 >    *_amd64_* )
165 >      comparch=x86_64 ;;
166 >    * )
167 >      comparch=ppc ;;
168 >    esac
169 >    export CC="gcc -arch $comparch" CXX="g++ -arch $comparch"
170 >    ./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;;
171 >  Linux-ppc64*)
172 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
173   esac
174  
175 < make %makeprocesses
175 > case %cmsplatf in
176 >  osx*)
177 >   makeopts=
178 >  ;;
179 >  *)
180 >   makeopts="%makeprocesses"
181 >  ;;
182 > esac
183 >
184 > make $makeopts
185 > make cintdlls
186  
187   %install
188   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 45 | Line 197 | else
197   fi
198  
199   export ROOTSYS=%i
200 < make INSTALL="$cp" INSTALLDATA="$cp" install
200 > make INSTALL="$cp" INSTALLDATA="$cp" install
201 > mkdir -p $ROOTSYS/lib/python
202 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
203 > #
204 >
205 > # SCRAM ToolBox toolfile
206 > mkdir -p %i/etc/scram.d
207 > # rootcore toolfile
208 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
209 >  <tool name="rootcore" version="%v">
210 >    <info url="http://root.cern.ch/root/"/>
211 >    <lib name="Tree"/>
212 >    <lib name="Net"/>
213 >    <lib name="Thread"/>
214 >    <lib name="MathCore"/>
215 >    <lib name="RIO"/>
216 >    <lib name="Core"/>
217 >    <lib name="Cint"/>
218 >    <client>
219 >      <environment name="ROOTCORE_BASE" default="%i"/>
220 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
221 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
222 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
223 >    </client>
224 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
225 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
226 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
227 >    <use name="sockets"/>
228 >    <use name="pcre"/>
229 >    <use name="zlib"/>
230 >  </tool>
231 > EOF_TOOLFILE
232 >
233 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
234 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
235 >  <tool name="root" version="%v">
236 >    <info url="http://root.cern.ch/root/"/>
237 >    <use name="rootphysics"/>
238 >  </tool>
239 > EOF_TOOLFILE
240 >
241 > # roothistmatrix toolfile
242 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
243 >  <tool name="roothistmatrix" version="%v">
244 >    <info url="http://root.cern.ch/root/"/>
245 >    <lib name="Hist"/>
246 >    <lib name="Matrix"/>
247 >    <use name="ROOTCore"/>
248 >  </tool>
249 > EOF_TOOLFILE
250 >
251 > # rootgpad toolfile
252 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
253 >  <tool name="rootgpad" version="%v">
254 >    <info url="http://root.cern.ch/root/"/>
255 >    <lib name="Gpad"/>
256 >    <lib name="Graf"/>
257 >    <use name="roothistmatrix"/>
258 >  </tool>
259 > EOF_TOOLFILE
260 >
261 > # rootphysics toolfile
262 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
263 >  <tool name="rootphysics" version="%v">
264 >    <info url="http://root.cern.ch/root/"/>
265 >    <lib name="Physics"/>
266 >    <use name="roothistmatrix"/>
267 >  </tool>
268 > EOF_TOOLFILE
269 >
270 > # rootgraphics toolfile, identical to old "root" toolfile
271 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
272 >  <tool name="rootgraphics" version="%v">
273 >    <info url="http://root.cern.ch/root/"/>
274 >    <lib name="TreePlayer"/>
275 >    <lib name="Graf3d"/>
276 >    <lib name="Postscript"/>
277 >    <use name="rootgpad"/>
278 >  </tool>
279 > EOF_TOOLFILE
280 >
281 > # rootcintex toolfile
282 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
283 >  <tool name="rootcintex" version="%v">
284 >    <info url="http://root.cern.ch/root/"/>
285 >    <lib name="Cintex"/>
286 >    <use name="ROOTRflx"/>
287 >    <use name="ROOTCore"/>
288 >  </tool>
289 > EOF_TOOLFILE
290 >
291 > # rootinteractive toolfile (GQt/qt lib dependencies
292 > # have been moved to rootqt.xml)
293 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
294 >  <tool name="rootinteractive" version="%v">
295 >    <info url="http://root.cern.ch/root/"/>
296 >    <lib name="Rint"/>
297 >    <lib name="Gui"/>
298 >    <use name="libjpg"/>
299 >    <use name="libpng"/>
300 >    <use name="rootgpad"/>
301 >  </tool>
302 > EOF_TOOLFILE
303 >
304 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootqt.xml
305 >  <tool name="rootqt" version="%v">
306 >    <info url="http://root.cern.ch/root/"/>
307 >    <lib name="GQt"/>
308 >    <use name="qt"/>
309 >  </tool>
310 > EOF_TOOLFILE
311 >
312 > # rootmath toolfile
313 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
314 >  <tool name="rootmath" version="%v">
315 >    <info url="http://root.cern.ch/root/"/>
316 >    <lib name="GenVector"/>
317 >    <lib name="MathMore"/>
318 >    <use name="ROOTCore"/>
319 >    <use name="gsl"/>
320 >  </tool>
321 > EOF_TOOLFILE
322 >
323 > # rootminuit toolfile
324 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit.xml
325 >  <tool name="rootminuit" version="%v">
326 >    <info url="http://root.cern.ch/root/"/>
327 >    <lib name="Minuit"/>
328 >    <use name="rootgpad"/>
329 >  </tool>
330 > EOF_TOOLFILE
331 >
332 > # rootminuit2 toolfile
333 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
334 >  <tool name="rootminuit2" version="%v">
335 >    <info url="http://root.cern.ch/root/"/>
336 >    <lib name="Minuit2"/>
337 >    <use name="rootgpad"/>
338 >  </tool>
339 > EOF_TOOLFILE
340 >
341 > # rootrflx toolfile
342 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
343 >  <tool name="rootrflx" version="%v">
344 >    <info url="http://root.cern.ch/root/"/>
345 >    <lib name="Reflex"/>
346 >    <client>
347 >      <environment name="ROOTRFLX_BASE" default="%i"/>
348 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
349 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
350 >    </client>
351 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
352 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
353 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
354 >    <use name="sockets"/>
355 >    <use name="gccxml"/>
356 >  </tool>
357 > EOF_TOOLFILE
358 >
359 > # roothtml toolfile
360 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
361 >  <tool name="roothtml" version="%v">
362 >    <info url="http://root.cern.ch/root/"/>
363 >    <lib name="Html"/>
364 >    <use name="rootgpad"/>
365 >  </tool>
366 > EOF_TOOLFILE
367 >
368 > # rootmlp toolfile
369 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
370 >  <tool name="rootmlp" version="%v">
371 >    <info url="http://root.cern.ch/root/"/>
372 >    <lib name="MLP"/>
373 >    <use name="RootGraphics"/>
374 >  </tool>
375 > EOF_TOOLFILE
376 >
377 > # roottmva toolfile
378 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
379 >  <tool name="roottmva" version="%v">
380 >    <info url="http://root.cern.ch/root/"/>
381 >    <lib name="TMVA"/>
382 >    <use name="ROOTMLP"/>
383 >    <use name="rootminuit"/>
384 >  </tool>
385 > EOF_TOOLFILE
386 >
387 > # rootthread toolfile
388 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
389 >  <tool name="rootthread" version="%v">
390 >    <info url="http://root.cern.ch/root/"/>
391 >    <use name="ROOTCore"/>
392 >  </tool>
393 > EOF_TOOLFILE
394 >
395 > %post
396 > perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines