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.107 by dlange, Sat Mar 8 02:24:13 2008 UTC vs.
Revision 1.157 by dlange, Tue May 5 03:19:51 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00a
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.18-00a-CINT-maxlongline
9 < Patch2: root_5.18-00-CINTFunctional
10 < Patch3: root-5.18-00a-TBufferXML
11 < Patch4: root-5.18-00a-Cintex
12 <
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 > Patch10: root-5.22-00a-TMVA-just-shut-the-hell-up
18 > Patch11: root-5.22-00a-th1
19 > Patch12: root-5.22-00a-smatrix
20 > Patch13: root-5.22-00a-fireworks1
21 > Patch14: root-5.22-00a-Reflex-gendict_selclass
22 > Patch15: root-5.22-00a-MatrixInversion
23  
24   %define cpu %(echo %cmsplatf | cut -d_ -f2)
25   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
26  
27   Requires: gccxml gsl castor libjpg dcap pcre python
28  
29 < %if "%{?online_release:set}" != "set"
30 < Requires: qt openssl mysql libpng zlib oracle libungif xrootd
29 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
30 > Requires: qt openssl mysql libpng zlib libungif xrootd
31   %else
32   %define skiplibtiff true
33   %endif
# Line 34 | Line 44 | Requires: libtiff
44   %setup -n root
45   %patch0 -p1
46   %patch1 -p1
47 < %patch2 -p0
47 > %patch2 -p1
48   %patch3 -p1
49 < %patch4 -p0
50 <
49 > %patch4 -p1
50 > %patch5 -p1
51 > %patch6 -p1
52 > %patch7 -p0
53 > %patch8 -p0
54 > %patch9 -p1
55 > %patch10 -p1
56 > %patch11 -p1
57 > %patch12 -p1
58 > %patch13 -p1
59 > %patch14 -p0
60 > %patch15 -p0
61 >
62   %build
63   mkdir -p %i
64   export ROOTSYS=%_builddir/root
65  
66 < %if "%{?online_release:set}" == "set"
67 < # Use oracle from xdaq installation:
68 < ORACLE_ROOT="/opt/xdaq"
69 < # Build without mysql, and use system qt and openssl:
66 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
67 > # Build without mysql, and use system qt.
68 > # Also skip xrootd and odbc for online case:
69 >
70   EXTRA_CONFIG_ARGS="
71 <             --disable-mysql
72 <             --enable-qt
73 <             --enable-ssl"
74 < # Also skip xrootd option for online case.
71 >             --disable-mysql
72 >             --disable-xrootd
73 >             --disable-odbc
74 >             --enable-qt"
75   %else
76   EXTRA_CONFIG_ARGS="
77               --with-xrootd=$XROOTD_ROOT
# Line 60 | Line 81 | EXTRA_CONFIG_ARGS="
81               --with-ssl-libdir=${OPENSSL_ROOT}/lib"
82   %endif
83  
84 < CONFIG_ARGS="--enable-table
84 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
85 >             --enable-table
86               --disable-builtin-pcre
87               --disable-builtin-freetype
88               --disable-builtin-zlib
# Line 68 | Line 90 | CONFIG_ARGS="--enable-table
90               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
91               --enable-explicitlink
92               --enable-qtgsi
71             --enable-mathcore
93               --enable-mathmore
94               --enable-reflex  
95               --enable-cintex
# Line 83 | Line 104 | CONFIG_ARGS="--enable-table
104               --disable-pgsql
105               --disable-xml ${EXTRA_CONFIG_ARGS}"
106  
107 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
108 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
109 < %endif
107 > #case %gccver in
108 > #  4.*)
109 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
110 > #  ;;
111 > #esac
112  
113   case $(uname)-$(uname -p) in
114    Linux-x86_64)
115 <    ./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;;
115 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
116    Linux-i*86)
117 <    ./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;;
117 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
118    Darwin*)
119      ./configure macosx $CONFIG_ARGS --disable-rfio;;
120    Linux-ppc64*)
121      ./configure linux $CONFIG_ARGS --disable-rfio;;
122   esac
123  
124 < make  %makeprocesses
124 > case %cmsplatf in
125 >  osx*)
126 >   makeopts=
127 >  ;;
128 >  *)
129 >   makeopts="%makeprocesses"
130 >  ;;
131 > esac
132 >
133 > make $makeopts
134   make cintdlls
135 +
136   %install
137   # Override installers if we are using GNU fileutils cp.  On OS X
138   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 115 | Line 148 | fi
148   export ROOTSYS=%i
149   make INSTALL="$cp" INSTALLDATA="$cp" install
150   mkdir -p $ROOTSYS/lib/python
151 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
151 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
152   #
153  
154   # SCRAM ToolBox toolfile
# Line 125 | Line 158 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
158   <doc type=BuildSystem::ToolDoc version=1.0>
159   <Tool name=rootcore version=%v>
160   <info url="http://root.cern.ch/root/"></info>
128 <lib name=Cint>
129 <lib name=Core>
130 <lib name=RIO>
131 <lib name=Net>
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"></Environment>
170   <Environment name=LIBDIR default="$ROOTCORE_BASE/lib"></Environment>
# Line 145 | Line 180 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
180   </Tool>
181   EOF_TOOLFILE
182  
183 < # root toolfile
183 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
184   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
185   <doc type=BuildSystem::ToolDoc version=1.0>
186   <Tool name=root version=%v>
187   <info url="http://root.cern.ch/root/"></info>
188 < <lib name=TreePlayer>
188 > <use name=rootphysics>
189 > </Tool>
190 > EOF_TOOLFILE
191 >
192 > # roothistmatrix toolfile
193 > cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
194 > <doc type=BuildSystem::ToolDoc version=1.0>
195 > <Tool name=roothistmatrix version=%v>
196 > <info url="http://root.cern.ch/root/"></info>
197   <lib name=Gpad>
155 <lib name=Graf3d>
198   <lib name=Graf>
199   <lib name=Hist>
200   <lib name=Matrix>
201 + <use name=ROOTCore>
202 + </Tool>
203 + EOF_TOOLFILE
204 +
205 + # rootphysics toolfile
206 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
207 + <doc type=BuildSystem::ToolDoc version=1.0>
208 + <Tool name=rootphysics version=%v>
209 + <info url="http://root.cern.ch/root/"></info>
210   <lib name=Physics>
211 + <use name=roothistmatrix>
212 + </Tool>
213 + EOF_TOOLFILE
214 +
215 + # rootgraphics toolfile, identical to old "root" toolfile
216 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
217 + <doc type=BuildSystem::ToolDoc version=1.0>
218 + <Tool name=rootgraphics version=%v>
219 + <info url="http://root.cern.ch/root/"></info>
220 + <lib name=TreePlayer>
221 + <lib name=Graf3d>
222   <lib name=Postscript>
223 < <use name=ROOTCore>
223 > <use name=ROOTPhysics>
224   </Tool>
225   EOF_TOOLFILE
226  
# Line 173 | Line 235 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
235   </Tool>
236   EOF_TOOLFILE
237  
238 < # rootinteractive toolfile
238 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
239 > # have been removed for the moment)
240   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
241   <doc type=BuildSystem::ToolDoc version=1.0>
242   <Tool name=rootinteractive version=%v>
243   <info url="http://root.cern.ch/root/"></info>
244   <lib name=Rint>
245   <lib name=GQt>
246 + <lib name=Gui>
247   <use name=qt>
248   <use name=libjpg>
249   <use name=libpng>
# Line 192 | Line 256 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
256   <doc type=BuildSystem::ToolDoc version=1.0>
257   <Tool name=rootmath version=%v>
258   <info url="http://root.cern.ch/root/"></info>
259 < <lib name=MathCore>
259 > <lib name=GenVector>
260   <lib name=MathMore>
261   <use name=ROOTCore>
262   <use name=gsl>
# Line 244 | Line 308 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
308   <Tool name=roothtml version=%v>
309   <info url="http://root.cern.ch/root/"></info>
310   <lib name=Html>
311 < <use name=ROOT>
311 > <use name=RootHistMatrix>
312   </Tool>
313   EOF_TOOLFILE
314  
# Line 253 | Line 317 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
317   <doc type=BuildSystem::ToolDoc version=1.0>
318   <Tool name=rootroofit version=%v>
319   <info url="http://root.cern.ch/root/"></info>
256 <lib name=RooFitCore>
320   <lib name=RooFit>
321 + <lib name=RooFitCore>
322   <use name=ROOTMinuit>
323   <use name=ROOTHtml>
324   </Tool>
# Line 266 | Line 330 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
330   <Tool name=rootmlp version=%v>
331   <info url="http://root.cern.ch/root/"></info>
332   <lib name=MLP>
333 < <use name=ROOT>
333 > <use name=RootGraphics>
334   </Tool>
335   EOF_TOOLFILE
336  
# Line 285 | Line 349 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
349   <doc type=BuildSystem::ToolDoc version=1.0>
350   <Tool name=rootthread version=%v>
351   <info url="http://root.cern.ch/root/"></info>
288 <lib name=Thread>
352   <use name=ROOTCore>
353   </Tool>
354   EOF_TOOLFILE
# Line 293 | Line 356 | EOF_TOOLFILE
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines