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.8 by eulisse, Wed May 3 07:29:12 2006 UTC vs.
Revision 1.94 by ratnik, Fri Jan 18 23:04:49 2008 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 openssl-virtual
6 < Patch0: root
1 > ### RPM lcg root 5.18.00-CMS19
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.18-00-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 "%{?online_release:set}" != "set"
16 > Requires: qt openssl mysql libpng zlib oracle libungif xrootd
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
31 > %patch0 -p1
32 > %patch1 -p1
33  
34   %build
35   mkdir -p %i
36 < export ROOTSYS=%i
36 > export ROOTSYS=%_builddir/root
37 >
38 > %if "%{?online_release:set}" == "set"
39 > # Use oracle from xdaq installation:
40 > ORACLE_ROOT="/opt/xdaq"
41 > # Build without mysql, and use system qt and openssl:
42 > EXTRA_CONFIG_ARGS="
43 >             --disable-mysql
44 >             --enable-qt
45 >             --enable-ssl"
46 > # Also skip xrootd option for online case.
47 > %else
48 > EXTRA_CONFIG_ARGS="
49 >             --with-xrootd=$XROOTD_ROOT
50 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
51 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
52 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
53 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
54 > %endif
55 >
56   CONFIG_ARGS="--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
63 >             --enable-qtgsi
64               --enable-mathcore
65 +             --enable-mathmore
66               --enable-reflex  
67               --enable-cintex
68               --enable-minuit2
69               --enable-roofit
70               --disable-ldap
71               --disable-krb5
72 <             --with-ssl-incdir=${OPENSSL_ROOT}/include
73 <             --with-ssl-libdir=${OPENSSL_ROOT}/lib
74 <             --with-shift-incdir=${RFIO_ROOT}/include
75 <             --with-shift-libdir=${RFIO_ROOT}/lib
72 >             --with-gsl-incdir=${GSL_ROOT}/include
73 >             --with-gsl-libdir=${GSL_ROOT}/lib
74 >             --with-dcap-libdir=${DCAP_ROOT}/lib
75 >             --with-dcap-incdir=${DCAP_ROOT}/include
76               --disable-pgsql
77 <             --disable-xml"
77 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
78  
79 < case $(uname)-$(uname -m) in
79 > %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
80 >  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
81 > %endif
82 >
83 > case $(uname)-$(uname -p) in
84    Linux-x86_64)
85 <    ./configure linuxx8664gcc $CONFIG_ARGS;;
86 <  Linux*)
87 <    ./configure linux $CONFIG_ARGS;;
88 <  Darwin)
89 <    ./configure macosx $CONFIG_ARGS;;
85 >    ./configure linuxx8664gcc $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
86 >  Linux-i*86)
87 >    ./configure linux  $CONFIG_ARGS --enable-oracle --with-oracle-libdir=${ORACLE_ROOT}/lib --with-oracle-incdir=${ORACLE_ROOT}/include --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
88 >  Darwin*)
89 >    ./configure macosx $CONFIG_ARGS --disable-rfio;;
90 >  Linux-ppc64*)
91 >    ./configure linux $CONFIG_ARGS --disable-rfio;;
92   esac
93  
94 < make %makeprocesses
95 <
94 > make  %makeprocesses
95 > make cintdlls
96   %install
97   # Override installers if we are using GNU fileutils cp.  On OS X
98   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 53 | Line 105 | else
105    cp="cp -pPR"
106   fi
107  
108 < export ROOTSYS=%i/root
108 > export ROOTSYS=%i
109   make INSTALL="$cp" INSTALLDATA="$cp" install
110 < mkdir -p %i/root/lib/python
111 < cp -r reflex/python/genreflex %i/root/lib/python
110 > mkdir -p $ROOTSYS/lib/python
111 > cp -r reflex/python/genreflex $ROOTSYS/lib/python
112 > #
113 >
114 > # SCRAM ToolBox toolfile
115 > mkdir -p %i/etc/scram.d
116 > # rootcore toolfile
117 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcore
118 > <doc type=BuildSystem::ToolDoc version=1.0>
119 > <Tool name=rootcore version=%v>
120 > <info url="http://root.cern.ch/root/"></info>
121 > <lib name=Cint>
122 > <lib name=Core>
123 > <lib name=RIO>
124 > <lib name=Net>
125 > <lib name=Tree>
126 > <Client>
127 > <Environment name=ROOTCORE_BASE default="%i"></Environment>
128 > <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
129 > <Environment name=INCLUDE default="$ROOTCORE_BASE/include"></Environment>
130 > <Environment name=INCLUDE default="$ROOTCORE_BASE/cint"></Environment>
131 > </Client>
132 > <use name=sockets>
133 > <use name=pcre>
134 > <use name=zlib>
135 > <Runtime name=PATH value="$ROOTCORE_BASE/bin" type=path>
136 > <Runtime name=ROOTSYS value="$ROOTCORE_BASE/">
137 > <Runtime name=PYTHONPATH value="$ROOTCORE_BASE/lib" type=path>
138 > </Tool>
139 > EOF_TOOLFILE
140 >
141 > # root toolfile
142 > cat << \EOF_TOOLFILE >%i/etc/scram.d/root
143 > <doc type=BuildSystem::ToolDoc version=1.0>
144 > <Tool name=root version=%v>
145 > <info url="http://root.cern.ch/root/"></info>
146 > <lib name=TreePlayer>
147 > <lib name=Gpad>
148 > <lib name=Graf3d>
149 > <lib name=Graf>
150 > <lib name=Hist>
151 > <lib name=Matrix>
152 > <lib name=Physics>
153 > <lib name=Postscript>
154 > <use name=ROOTCore>
155 > </Tool>
156 > EOF_TOOLFILE
157 >
158 > # rootcintex toolfile
159 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootcintex
160 > <doc type=BuildSystem::ToolDoc version=1.0>
161 > <Tool name=rootcintex version=%v>
162 > <info url="http://root.cern.ch/root/"></info>
163 > <lib name=Cintex>
164 > <use name=ROOTRflx>
165 > <use name=ROOTCore>
166 > </Tool>
167 > EOF_TOOLFILE
168 >
169 > # rootinteractive toolfile
170 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
171 > <doc type=BuildSystem::ToolDoc version=1.0>
172 > <Tool name=rootinteractive version=%v>
173 > <info url="http://root.cern.ch/root/"></info>
174 > <lib name=Rint>
175 > <lib name=GQt>
176 > <use name=qt>
177 > <use name=libjpg>
178 > <use name=libpng>
179 > <use name=ROOT>
180 > </Tool>
181 > EOF_TOOLFILE
182 >
183 > # rootmath toolfile
184 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
185 > <doc type=BuildSystem::ToolDoc version=1.0>
186 > <Tool name=rootmath version=%v>
187 > <info url="http://root.cern.ch/root/"></info>
188 > <lib name=MathCore>
189 > <lib name=MathMore>
190 > <use name=ROOTCore>
191 > <use name=gsl>
192 > </Tool>
193 > EOF_TOOLFILE
194 >
195 > # rootminuit toolfile
196 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit
197 > <doc type=BuildSystem::ToolDoc version=1.0>
198 > <Tool name=rootminuit version=%v>
199 > <info url="http://root.cern.ch/root/"></info>
200 > <lib name=Minuit>
201 > <use name=ROOT>
202 > </Tool>
203 > EOF_TOOLFILE
204 >
205 > # rootminuit2 toolfile
206 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootminuit2
207 > <doc type=BuildSystem::ToolDoc version=1.0>
208 > <Tool name=rootminuit2 version=%v>
209 > <info url="http://root.cern.ch/root/"></info>
210 > <lib name=Minuit2>
211 > <use name=ROOT>
212 > </Tool>
213 > EOF_TOOLFILE
214 >
215 > # rootrflx toolfile
216 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootrflx
217 > <doc type=BuildSystem::ToolDoc version=1.0>
218 > <Tool name=rootrflx version=%v>
219 > <info url="http://root.cern.ch/root/"></info>
220 > <lib name=Reflex>
221 > <Client>
222 > <Environment name=ROOTRFLX_BASE default="%i"></Environment>
223 > <Environment name=LIBDIR default="$ROOTRFLX_BASE/lib"></Environment>
224 > <Environment name=INCLUDE default="$ROOTRFLX_BASE/include"></Environment>
225 > </Client>
226 > <use name=sockets>
227 > <use name=gccxml>
228 > <Runtime name=PATH value="$ROOTRFLX_BASE/bin" type=path>
229 > <Runtime name=ROOTSYS value="$ROOTRFLX_BASE/">
230 > <Runtime name=GENREFLEX value="$ROOTRFLX_BASE/bin/genreflex">
231 > </Tool>
232 > EOF_TOOLFILE
233 >
234 > # roothtml toolfile
235 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothtml
236 > <doc type=BuildSystem::ToolDoc version=1.0>
237 > <Tool name=roothtml version=%v>
238 > <info url="http://root.cern.ch/root/"></info>
239 > <lib name=Html>
240 > <use name=ROOT>
241 > </Tool>
242 > EOF_TOOLFILE
243 >
244 > # rootroofit toolfile
245 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootroofit
246 > <doc type=BuildSystem::ToolDoc version=1.0>
247 > <Tool name=rootroofit version=%v>
248 > <info url="http://root.cern.ch/root/"></info>
249 > <lib name=RooFitCore>
250 > <lib name=RooFit>
251 > <use name=ROOTMinuit>
252 > <use name=ROOTHtml>
253 > </Tool>
254 > EOF_TOOLFILE
255 >
256 > # rootmlp toolfile
257 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmlp
258 > <doc type=BuildSystem::ToolDoc version=1.0>
259 > <Tool name=rootmlp version=%v>
260 > <info url="http://root.cern.ch/root/"></info>
261 > <lib name=MLP>
262 > <use name=ROOT>
263 > </Tool>
264 > EOF_TOOLFILE
265 >
266 > # roottmva toolfile
267 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roottmva
268 > <doc type=BuildSystem::ToolDoc version=1.0>
269 > <Tool name=roottmva version=%v>
270 > <info url="http://root.cern.ch/root/"></info>
271 > <lib name=TMVA>
272 > <use name=ROOTMLP>
273 > </Tool>
274 > EOF_TOOLFILE
275 >
276 > # rootthread toolfile
277 > cat << \EOF_TOOLFILE >%i/etc/scram.d/rootthread
278 > <doc type=BuildSystem::ToolDoc version=1.0>
279 > <Tool name=rootthread version=%v>
280 > <info url="http://root.cern.ch/root/"></info>
281 > <lib name=Thread>
282 > <use name=ROOTCore>
283 > </Tool>
284 > EOF_TOOLFILE
285 >
286 > %post
287 > %{relocateConfig}etc/scram.d/root
288 > %{relocateConfig}etc/scram.d/rootcore
289 > %{relocateConfig}etc/scram.d/rootcintex
290 > %{relocateConfig}etc/scram.d/rootinteractive
291 > %{relocateConfig}etc/scram.d/rootmath
292 > %{relocateConfig}etc/scram.d/rootminuit
293 > %{relocateConfig}etc/scram.d/rootminuit2
294 > %{relocateConfig}etc/scram.d/rootrflx
295 > %{relocateConfig}etc/scram.d/roothtml
296 > %{relocateConfig}etc/scram.d/rootroofit
297 > %{relocateConfig}etc/scram.d/rootmlp
298 > %{relocateConfig}etc/scram.d/roottmva
299 > %{relocateConfig}etc/scram.d/rootthread

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines