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.184 by muzaffar, Fri Dec 4 16:43:26 2009 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.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.18-00-libpng
10 > Patch1:  root-5.21-04-CINT-maxlongline
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-00a-smatrix
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 >
29 > %define cpu %(echo %cmsplatf | cut -d_ -f2)
30 >
31 > Requires: gccxml gsl castor libjpg dcap pcre python
32 >
33 > %if "%online" != "true"
34 > Requires: qt openssl libpng zlib libungif xrootd
35 > %else
36 > %define skiplibtiff true
37 > %endif
38 >
39 > %if "%cpu" == "amd64"
40 > %define skiplibtiff true
41 > %endif
42 >
43 > %if "%skiplibtiff" != "true"
44 > Requires: libtiff
45 > %endif
46 >
47   %prep
48   %setup -n root
49 < %patch0
49 > %patch0 -p1
50 > %patch1 -p1
51 > %patch2 -p1
52 > %patch3 -p1
53 > %patch4 -p1
54 >
55 > %patch5 -p1
56 > %patch6 -p1
57 > %patch7 -p1
58 > %patch8 -p1
59 > %patch9 -p1
60 >
61 > # patch10 is compiler version dependent, see below
62 > %patch11 -p1
63 > %patch12 -p1
64 > # patch13 is compiler version dependent, see below
65 >
66 > # work around patch issue...
67 > rm graf3d/gl/src/gl2ps.c
68 > %patch14 -p1
69 > #work around patch issues in patch14(?)
70 > rm graf3d/eve/inc/TEveLegoOverlay.h.orig
71 > rm graf3d/eve/src/TEveLegoOverlay.cxx
72 > rm graf3d/gl/inc/gl2ps.h.orig
73 > rm graf3d/gl/src/gl2ps.c.orig
74 > %patch15 -p1
75 > %patch16 -p1
76 > %patch17 -p1
77 >
78 > case %gccver in
79 >  4.3.*)
80 > %patch13 -p1
81 >  ;;
82 >  4.4.*)
83 > %patch10 -p1
84 >  ;;
85 > esac
86  
87 + # The following patch can only be applied on SLC5 or later (extra linker
88 + # options only available with the SLC5 binutils)
89 + case %cmsplatf in
90 +  slc5_* | slc5onl_* )
91 + %patch18 -p1
92 +  ;;
93 + esac
94 +
95   %build
96 +
97   mkdir -p %i
98 < export ROOTSYS=%i
98 > export ROOTSYS=%_builddir/root
99 > export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
100 >
101 > %if "%online" == "true"
102 > # Use system qt. Also skip xrootd and odbc for online case:
103 >
104 > EXTRA_CONFIG_ARGS="--with-f77=/usr
105 >             --disable-xrootd
106 >             --disable-odbc
107 >             --disable-qt --disable-qtgsi"
108 > %else
109 > EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT}
110 >             --with-xrootd=$XROOTD_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
17 <             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
122 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV}
123               --enable-explicitlink
124 <             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
20 <             --enable-mathcore
124 >             --enable-mathmore
125               --enable-reflex  
126               --enable-cintex
127               --enable-minuit2
24             --enable-roofit
128               --disable-ldap
129               --disable-krb5
130 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
131 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
132 <             --with-shift-incdir=${RFIO_ROOT}/include
133 <             --with-shift-libdir=${RFIO_ROOT}/lib
130 >             --with-gsl-incdir=${GSL_ROOT}/include
131 >             --with-gsl-libdir=${GSL_ROOT}/lib
132 >             --with-dcap-libdir=${DCAP_ROOT}/lib
133 >             --with-dcap-incdir=${DCAP_ROOT}/include
134               --disable-pgsql
135 <             --disable-xml"
135 >             --disable-mysql
136 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
137  
138   case $(uname)-$(uname -m) in
139    Linux-x86_64)
140 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
141 <  Linux*)
142 <    ./configure linux $CONFIG_ARGS;;
140 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
141 >  Linux-i*86)
142 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
143    Darwin*)
144 <    ./configure macosx $CONFIG_ARGS;;
144 >    ./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;;
145 >  Linux-ppc64*)
146 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
147   esac
148  
149 < make %makeprocesses
149 > case %cmsplatf in
150 >  osx*)
151 >   makeopts=
152 >  ;;
153 >  *)
154 >   makeopts="%makeprocesses"
155 >  ;;
156 > esac
157 >
158 > make $makeopts
159 > make cintdlls
160  
161   %install
162   # Override installers if we are using GNU fileutils cp.  On OS X
# Line 54 | Line 170 | else
170    cp="cp -pPR"
171   fi
172  
173 < export ROOTSYS=%i/root
173 > export ROOTSYS=%i
174   make INSTALL="$cp" INSTALLDATA="$cp" install
175 < mkdir -p %i/root/lib/python
176 < cp -r reflex/python/genreflex %i/root/lib/python
175 > mkdir -p $ROOTSYS/lib/python
176 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
177 > #
178 >
179 > # SCRAM ToolBox toolfile
180 > mkdir -p %i/etc/scram.d
181 > # rootcore toolfile
182 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore.xml
183 >  <tool name="rootcore" version="%v">
184 >    <info url="http://root.cern.ch/root/"/>
185 >    <lib name="Tree"/>
186 >    <lib name="Net"/>
187 >    <lib name="Thread"/>
188 >    <lib name="MathCore"/>
189 >    <lib name="RIO"/>
190 >    <lib name="Core"/>
191 >    <lib name="Cint"/>
192 >    <client>
193 >      <environment name="ROOTCORE_BASE" default="%i"/>
194 >      <environment name="LIBDIR" default="$ROOTCORE_BASE/lib"/>
195 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/include"/>
196 >      <environment name="INCLUDE" default="$ROOTCORE_BASE/cint"/>
197 >    </client>
198 >    <runtime name="PATH" value="$ROOTCORE_BASE/bin" type="path"/>
199 >    <runtime name="ROOTSYS" value="$ROOTCORE_BASE/"/>
200 >    <runtime name="PYTHONPATH" value="$ROOTCORE_BASE/lib" type="path"/>
201 >    <use name="sockets"/>
202 >    <use name="pcre"/>
203 >    <use name="zlib"/>
204 >  </tool>
205 > EOF_TOOLFILE
206 >
207 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
208 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root.xml
209 >  <tool name="root" version="%v">
210 >    <info url="http://root.cern.ch/root/"/>
211 >    <use name="rootphysics"/>
212 >  </tool>
213 > EOF_TOOLFILE
214 >
215 > # roothistmatrix toolfile
216 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml
217 >  <tool name="roothistmatrix" version="%v">
218 >    <info url="http://root.cern.ch/root/"/>
219 >    <lib name="Hist"/>
220 >    <lib name="Matrix"/>
221 >    <use name="ROOTCore"/>
222 >  </tool>
223 > EOF_TOOLFILE
224 >
225 > # rootgpad toolfile
226 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml
227 >  <tool name="rootgpad" version="%v">
228 >    <info url="http://root.cern.ch/root/"/>
229 >    <lib name="Gpad"/>
230 >    <lib name="Graf"/>
231 >    <use name="roothistmatrix"/>
232 >  </tool>
233 > EOF_TOOLFILE
234 >
235 > # rootphysics toolfile
236 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics.xml
237 >  <tool name="rootphysics" version="%v">
238 >    <info url="http://root.cern.ch/root/"/>
239 >    <lib name="Physics"/>
240 >    <use name="roothistmatrix"/>
241 >  </tool>
242 > EOF_TOOLFILE
243 >
244 > # rootgraphics toolfile, identical to old "root" toolfile
245 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics.xml
246 >  <tool name="rootgraphics" version="%v">
247 >    <info url="http://root.cern.ch/root/"/>
248 >    <lib name="TreePlayer"/>
249 >    <lib name="Graf3d"/>
250 >    <lib name="Postscript"/>
251 >    <use name="rootgpad"/>
252 >  </tool>
253 > EOF_TOOLFILE
254 >
255 > # rootcintex toolfile
256 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex.xml
257 >  <tool name="rootcintex" version="%v">
258 >    <info url="http://root.cern.ch/root/"/>
259 >    <lib name="Cintex"/>
260 >    <use name="ROOTRflx"/>
261 >    <use name="ROOTCore"/>
262 >  </tool>
263 > EOF_TOOLFILE
264 >
265 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
266 > # have been removed for the moment)
267 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive.xml
268 >  <tool name="rootinteractive" version="%v">
269 >    <info url="http://root.cern.ch/root/"/>
270 >    <lib name="Rint"/>
271 >    <lib name="GQt"/>
272 >    <lib name="Gui"/>
273 >    <use name="qt"/>
274 >    <use name="libjpg"/>
275 >    <use name="libpng"/>
276 >    <use name="rootgpad"/>
277 >  </tool>
278 > EOF_TOOLFILE
279 >
280 > # rootmath toolfile
281 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath.xml
282 >  <tool name="rootmath" version="%v">
283 >    <info url="http://root.cern.ch/root/"/>
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.xml
293 >  <tool name="rootminuit" version="%v">
294 >    <info url="http://root.cern.ch/root/"/>
295 >    <lib name="Minuit"/>
296 >    <use name="rootgpad"/>
297 >  </tool>
298 > EOF_TOOLFILE
299 >
300 > # rootminuit2 toolfile
301 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2.xml
302 >  <tool name="rootminuit2" version="%v">
303 >    <info url="http://root.cern.ch/root/"/>
304 >    <lib name="Minuit2"/>
305 >    <use name="rootgpad"/>
306 >  </tool>
307 > EOF_TOOLFILE
308 >
309 > # rootrflx toolfile
310 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx.xml
311 >  <tool name="rootrflx" version="%v">
312 >    <info url="http://root.cern.ch/root/"/>
313 >    <lib name="Reflex"/>
314 >    <client>
315 >      <environment name="ROOTRFLX_BASE" default="%i"/>
316 >      <environment name="LIBDIR" default="$ROOTRFLX_BASE/lib"/>
317 >      <environment name="INCLUDE" default="$ROOTRFLX_BASE/include"/>
318 >    </client>
319 >    <runtime name="PATH" value="$ROOTRFLX_BASE/bin" type="path"/>
320 >    <runtime name="ROOTSYS" value="$ROOTRFLX_BASE/"/>
321 >    <runtime name="GENREFLEX" value="$ROOTRFLX_BASE/bin/genreflex"/>
322 >    <use name="sockets"/>
323 >    <use name="gccxml"/>
324 >  </tool>
325 > EOF_TOOLFILE
326 >
327 > # roothtml toolfile
328 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml.xml
329 >  <tool name="roothtml" version="%v">
330 >    <info url="http://root.cern.ch/root/"/>
331 >    <lib name="Html"/>
332 >    <use name="rootgpad"/>
333 >  </tool>
334 > EOF_TOOLFILE
335 >
336 > # rootmlp toolfile
337 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp.xml
338 >  <tool name="rootmlp" version="%v">
339 >    <info url="http://root.cern.ch/root/"/>
340 >    <lib name="MLP"/>
341 >    <use name="RootGraphics"/>
342 >  </tool>
343 > EOF_TOOLFILE
344 >
345 > # roottmva toolfile
346 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva.xml
347 >  <tool name="roottmva" version="%v">
348 >    <info url="http://root.cern.ch/root/"/>
349 >    <lib name="TMVA"/>
350 >    <use name="ROOTMLP"/>
351 >    <use name="rootminuit"/>
352 >  </tool>
353 > EOF_TOOLFILE
354 >
355 > # rootthread toolfile
356 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread.xml
357 >  <tool name="rootthread" version="%v">
358 >    <info url="http://root.cern.ch/root/"/>
359 >    <use name="ROOTCore"/>
360 >  </tool>
361 > EOF_TOOLFILE
362 >
363 > %post
364 > 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