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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines