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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines