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.2 by eulisse, Tue Mar 21 17:40:08 2006 UTC vs.
Revision 1.130 by elmer, Tue Jan 13 19:44:39 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines