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.45 by sashby, Thu Nov 30 16:02:55 2006 UTC vs.
Revision 1.152 by dlange, Tue Apr 7 02:01:59 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.13.04c-p1
2 < # INITENV +PATH PYTHONPATH %i/lib/python
3 < %define realVersion %(echo %v | cut -d- -f1)
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
1 > ### RPM lcg root 5.22.00a
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 >
7 > Patch0:  root-5.18-00-libpng
8 > Patch1:  root-5.21-04-CINT-maxlongline
9 > Patch2:  root-5.22-00-TMVA-shut-the-hell-up-for-once
10 > Patch3:  root-5.22-00a-TMVA-shut-the-hell-up-again
11 > Patch4:  root-5.22-00a-CINTFunctional
12 > Patch5:  root-5.22-00a-TClass
13 > Patch6:  root-5.22-00a-fireworks-graf3d-gui
14 > Patch7:  root-5.22-00a-Reflex-Class
15 > Patch8:  root-5.22-00a-Cintex
16 > Patch9:  root-5.22-00a-roofit-silence-static-printout
17 >
18   %define cpu %(echo %cmsplatf | cut -d_ -f2)
19   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
8 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle
20  
21 < %if "%cpu" != "amd64"
22 < Requires: libtiff
21 > Requires: gccxml gsl castor libjpg dcap pcre python
22 >
23 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
24 > Requires: qt openssl mysql libpng zlib libungif xrootd
25 > %else
26 > %define skiplibtiff true
27   %endif
28  
29 < Patch: root-cint-bug
30 < Patch1: cintex_5.13.04e
29 > %if "%cpu" == "amd64"
30 > %define skiplibtiff true
31 > %endif
32 >
33 > %if "%skiplibtiff" != "true"
34 > Requires: libtiff
35 > %endif
36  
37   %prep
38   %setup -n root
39 + %patch0 -p1
40 + %patch1 -p1
41 + %patch2 -p1
42 + %patch3 -p1
43 + %patch4 -p1
44 + %patch5 -p1
45 + %patch6 -p1
46 +
47   %build
48   mkdir -p %i
49   export ROOTSYS=%_builddir/root
50 < CONFIG_ARGS="--enable-table
50 >
51 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
52 > # Build without mysql, and use system qt.
53 > # Also skip xrootd and odbc for online case:
54 >
55 > EXTRA_CONFIG_ARGS="
56 >             --disable-mysql
57 >             --disable-xrootd
58 >             --disable-odbc
59 >             --enable-qt"
60 > %else
61 > EXTRA_CONFIG_ARGS="
62 >             --with-xrootd=$XROOTD_ROOT
63 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
64 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
65 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
66 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
67 > %endif
68 >
69 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
70 >             --enable-table
71               --disable-builtin-pcre
72               --disable-builtin-freetype
73               --disable-builtin-zlib
74               --with-gccxml=${GCCXML_ROOT}
75               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
28             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
29             --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include
76               --enable-explicitlink
77               --enable-qtgsi
32             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
33             --enable-mathcore
78               --enable-mathmore
79               --enable-reflex  
80               --enable-cintex
# Line 38 | Line 82 | CONFIG_ARGS="--enable-table
82               --enable-roofit
83               --disable-ldap
84               --disable-krb5
41                 --with-dcap-libdir=${DCAP_ROOT}/lib
42             --with-dcap-incdir=${DCAP_ROOT}/include
43             --with-ssl-incdir=${OPENSSL_ROOT}/include
44             --with-ssl-libdir=${OPENSSL_ROOT}/lib
45             --with-shift-incdir=${CASTOR_ROOT}/include/shift
46             --with-shift-libdir=${CASTOR_ROOT}/lib
85               --with-gsl-incdir=${GSL_ROOT}/include
86               --with-gsl-libdir=${GSL_ROOT}/lib
87 +             --with-dcap-libdir=${DCAP_ROOT}/lib
88 +             --with-dcap-incdir=${DCAP_ROOT}/include
89               --disable-pgsql
90 <             --disable-xml"
90 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
91 >
92 > #case %gccver in
93 > #  4.*)
94 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
95 > #  ;;
96 > #esac
97  
98 < case $(uname)-$(uname -m) in
98 > case $(uname)-$(uname -p) in
99    Linux-x86_64)
100 <    ./configure linuxx8664gcc $CONFIG_ARGS --disable-astiff;;
101 <  Linux*)
102 <    ./configure linux $CONFIG_ARGS;;
100 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
101 >  Linux-i*86)
102 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
103    Darwin*)
104 <    ./configure macosx $CONFIG_ARGS;;
104 >    ./configure macosx $CONFIG_ARGS --disable-rfio;;
105 >  Linux-ppc64*)
106 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
107   esac
108  
109 < make
109 > case %cmsplatf in
110 >  osx*)
111 >   makeopts=
112 >  ;;
113 >  *)
114 >   makeopts="%makeprocesses"
115 >  ;;
116 > esac
117 >
118 > make $makeopts
119   make cintdlls
120 +
121   %install
122   # Override installers if we are using GNU fileutils cp.  On OS X
123   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 72 | Line 130 | else
130    cp="cp -pPR"
131   fi
132  
133 < export ROOTSYS=%i/root
133 > export ROOTSYS=%i
134   make INSTALL="$cp" INSTALLDATA="$cp" install
135 < mkdir -p %i/root/lib/python
136 < cp -r reflex/python/genreflex %i/root/lib/python
135 > mkdir -p $ROOTSYS/lib/python
136 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
137   #
138 +
139 + # SCRAM ToolBox toolfile
140 + mkdir -p %i/etc/scram.d
141 + # rootcore toolfile
142 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
143 + <doc type=BuildSystem::ToolDoc version=1.0>
144 + <Tool name=rootcore version=%v>
145 + <info url="http://root.cern.ch/root/"></info>
146 + <lib name=Cint>
147 + <lib name=Core>
148 + <lib name=RIO>
149 + <lib name=Net>
150 + <lib name=Tree>
151 + <Client>
152 + <Environment name=ROOTCORE_BASE default="%i"></Environment>
153 + <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
154 + <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
155 + <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
156 + </Client>
157 + <use name=sockets>
158 + <use name=pcre>
159 + <use name=zlib>
160 + <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
161 + <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
162 + <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
163 + </Tool>
164 + EOF_TOOLFILE
165 +
166 + # root toolfile, alias for rootphysics. Using rootphysics is preferred.
167 + cat << \EOF_TOOLFILE >%i/etc/scram.d/root
168 + <doc type=BuildSystem::ToolDoc version=1.0>
169 + <Tool name=root version=%v>
170 + <info url="http://root.cern.ch/root/"></info>
171 + <use name=rootphysics>
172 + </Tool>
173 + EOF_TOOLFILE
174 +
175 + # roothistmatrix toolfile
176 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
177 + <doc type=BuildSystem::ToolDoc version=1.0>
178 + <Tool name=roothistmatrix version=%v>
179 + <info url="http://root.cern.ch/root/"></info>
180 + <lib name=Hist>
181 + <lib name=Matrix>
182 + <use name=ROOTCore>
183 + </Tool>
184 + EOF_TOOLFILE
185 +
186 + # rootphysics toolfile
187 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
188 + <doc type=BuildSystem::ToolDoc version=1.0>
189 + <Tool name=rootphysics version=%v>
190 + <info url="http://root.cern.ch/root/"></info>
191 + <lib name=Physics>
192 + <use name=roothistmatrix>
193 + </Tool>
194 + EOF_TOOLFILE
195 +
196 + # rootgraphics toolfile, identical to old "root" toolfile
197 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
198 + <doc type=BuildSystem::ToolDoc version=1.0>
199 + <Tool name=rootgraphics version=%v>
200 + <info url="http://root.cern.ch/root/"></info>
201 + <lib name=TreePlayer>
202 + <lib name=Gpad>
203 + <lib name=Graf3d>
204 + <lib name=Graf>
205 + <lib name=Hist>
206 + <lib name=Matrix>
207 + <lib name=Physics>
208 + <lib name=Postscript>
209 + <use name=ROOTCore>
210 + </Tool>
211 + EOF_TOOLFILE
212 +
213 + # rootcintex toolfile
214 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
215 + <doc type=BuildSystem::ToolDoc version=1.0>
216 + <Tool name=rootcintex version=%v>
217 + <info url="http://root.cern.ch/root/"></info>
218 + <lib name=Cintex>
219 + <use name=ROOTRflx>
220 + <use name=ROOTCore>
221 + </Tool>
222 + EOF_TOOLFILE
223 +
224 + # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
225 + # have been removed for the moment)
226 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
227 + <doc type=BuildSystem::ToolDoc version=1.0>
228 + <Tool name=rootinteractive version=%v>
229 + <info url="http://root.cern.ch/root/"></info>
230 + <lib name=Rint>
231 + <use name=libjpg>
232 + <use name=libpng>
233 + <use name=ROOT>
234 + </Tool>
235 + EOF_TOOLFILE
236 +
237 + # rootinteractive2 toolfile (temporary, to allow access to Qt4)
238 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2
239 + <doc type=BuildSystem::ToolDoc version=1.0>
240 + <Tool name=rootinteractive2 version=%v>
241 + <info url="http://root.cern.ch/root/"></info>
242 + <lib name=Rint>
243 + <lib name=GQt>
244 + <use name=qt>
245 + <use name=libjpg>
246 + <use name=libpng>
247 + <use name=ROOT>
248 + </Tool>
249 + EOF_TOOLFILE
250 +
251 +
252 + # rootmath toolfile
253 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
254 + <doc type=BuildSystem::ToolDoc version=1.0>
255 + <Tool name=rootmath version=%v>
256 + <info url="http://root.cern.ch/root/"></info>
257 + <lib name=MathCore>
258 + <lib name=MathMore>
259 + <lib name=GenVector>
260 + <use name=ROOTCore>
261 + <use name=gsl>
262 + </Tool>
263 + EOF_TOOLFILE
264 +
265 + # rootminuit toolfile
266 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
267 + <doc type=BuildSystem::ToolDoc version=1.0>
268 + <Tool name=rootminuit version=%v>
269 + <info url="http://root.cern.ch/root/"></info>
270 + <lib name=Minuit>
271 + <use name=ROOT>
272 + </Tool>
273 + EOF_TOOLFILE
274 +
275 + # rootminuit2 toolfile
276 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
277 + <doc type=BuildSystem::ToolDoc version=1.0>
278 + <Tool name=rootminuit2 version=%v>
279 + <info url="http://root.cern.ch/root/"></info>
280 + <lib name=Minuit2>
281 + <use name=ROOT>
282 + </Tool>
283 + EOF_TOOLFILE
284 +
285 + # rootrflx toolfile
286 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
287 + <doc type=BuildSystem::ToolDoc version=1.0>
288 + <Tool name=rootrflx version=%v>
289 + <info url="http://root.cern.ch/root/"></info>
290 + <lib name=Reflex>
291 + <Client>
292 + <Environment name=ROOTRFLX_BASE default="%i"></Environment>
293 + <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
294 + <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
295 + </Client>
296 + <use name=sockets>
297 + <use name=gccxml>
298 + <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
299 + <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
300 + <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
301 + </Tool>
302 + EOF_TOOLFILE
303 +
304 + # roothtml toolfile
305 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
306 + <doc type=BuildSystem::ToolDoc version=1.0>
307 + <Tool name=roothtml version=%v>
308 + <info url="http://root.cern.ch/root/"></info>
309 + <lib name=Html>
310 + <use name=ROOT>
311 + </Tool>
312 + EOF_TOOLFILE
313 +
314 + # rootroofit toolfile
315 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
316 + <doc type=BuildSystem::ToolDoc version=1.0>
317 + <Tool name=rootroofit version=%v>
318 + <info url="http://root.cern.ch/root/"></info>
319 + <lib name=RooFitCore>
320 + <lib name=RooFit>
321 + <use name=ROOTMinuit>
322 + <use name=ROOTHtml>
323 + </Tool>
324 + EOF_TOOLFILE
325 +
326 + # rootmlp toolfile
327 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
328 + <doc type=BuildSystem::ToolDoc version=1.0>
329 + <Tool name=rootmlp version=%v>
330 + <info url="http://root.cern.ch/root/"></info>
331 + <lib name=MLP>
332 + <use name=ROOT>
333 + </Tool>
334 + EOF_TOOLFILE
335 +
336 + # roottmva toolfile
337 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
338 + <doc type=BuildSystem::ToolDoc version=1.0>
339 + <Tool name=roottmva version=%v>
340 + <info url="http://root.cern.ch/root/"></info>
341 + <lib name=TMVA>
342 + <use name=ROOTMLP>
343 + </Tool>
344 + EOF_TOOLFILE
345 +
346 + # rootthread toolfile
347 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
348 + <doc type=BuildSystem::ToolDoc version=1.0>
349 + <Tool name=rootthread version=%v>
350 + <info url="http://root.cern.ch/root/"></info>
351 + <lib name=Thread>
352 + <use name=ROOTCore>
353 + </Tool>
354 + EOF_TOOLFILE
355 +
356 + %post
357 + %{relocateConfig}etc/scram.d/root
358 + %{relocateConfig}etc/scram.d/rootcore
359 + %{relocateConfig}etc/scram.d/roothistmatrix
360 + %{relocateConfig}etc/scram.d/rootphysics
361 + %{relocateConfig}etc/scram.d/rootgraphics
362 + %{relocateConfig}etc/scram.d/rootcintex
363 + %{relocateConfig}etc/scram.d/rootinteractive
364 + %{relocateConfig}etc/scram.d/rootmath
365 + %{relocateConfig}etc/scram.d/rootminuit
366 + %{relocateConfig}etc/scram.d/rootminuit2
367 + %{relocateConfig}etc/scram.d/rootrflx
368 + %{relocateConfig}etc/scram.d/roothtml
369 + %{relocateConfig}etc/scram.d/rootroofit
370 + %{relocateConfig}etc/scram.d/rootmlp
371 + %{relocateConfig}etc/scram.d/roottmva
372 + %{relocateConfig}etc/scram.d/rootthread

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines