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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines