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.105 by ratnik, Fri Mar 7 23:43:18 2008 UTC vs.
Revision 1.128 by elmer, Tue Dec 16 01:51:29 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS18l
1 > ### RPM lcg root 5.18.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
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 < Patch: root-CINT-maxlongline
8 < Patch1: root_libpng
9 < Patch2: root_PositionVector
10 < Patch3: root-fastmerge-ttree
11 < Patch4: root_TXMLSetup
12 < Patch5: root-Cintex
13 < Patch6: root_Reflex_Cintex
14 < Patch7: root_CallFunc
15 < # The following patch should only be applied for gcc4.x (x>0) and when
16 < # using gccxml 0.7.0
17 < Patch9: root_5.14_reflex_gccxml070_update
18 < Patch10: root-5.14-xrootd-20071001-0000a
19 < Patch11: root-5.14-silence-tmva
20 < Patch12: root_5.14-CINTFunctional
21 < Patch13: root_5.14-streamerinfo
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 > Patch5:  root-5.18-00a-Cintex2
13 > Patch6:  root-5.18-00a-TBufferFile
14 > Patch7:  root-5.18-00a-cintexquickfix2
15 > Patch8:  root-5.18-00a-gendict-performance
16 > Patch9:  root-5.18-00a-TClass-classNameSize
17 > Patch10: root-5.18-00a-TFile-stlStreamerInfo
18 > Patch11: root-5.18-00-cintex_functional_mmap
19 > Patch12: root-5.18-00a-TMVA-fSilent
20  
21   %define cpu %(echo %cmsplatf | cut -d_ -f2)
22   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
23  
24 < Requires: gccxml
25 < Requires: python
26 < Requires: gsl
27 < Requires: castor
30 < Requires: libjpg
31 < Requires: dcap
32 < Requires: pcre
33 <
34 < %if "%{?online_release:set}" != "set"
35 < Requires: qt
36 < Requires: openssl
37 < Requires: mysql
38 < Requires: libpng
39 < Requires: zlib
40 < Requires: oracle
41 < Requires: libungif
42 < Requires: xrootd
24 > Requires: gccxml gsl castor libjpg dcap pcre python
25 >
26 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
27 > Requires: qt openssl mysql libpng zlib libungif xrootd
28   %else
29   %define skiplibtiff true
30   %endif
# Line 54 | Line 39 | Requires: libtiff
39  
40   %prep
41   %setup -n root
42 < %patch -p0
43 < %patch1 -p2
44 < %patch2 -p2
42 > %patch0 -p1
43 > %patch1 -p1
44 > %patch2 -p0
45   %patch3 -p1
46   %patch4 -p0
47 < %patch5 -p1
47 > %patch5 -p0
48   %patch6 -p0
49   %patch7 -p0
50 < %if "%cmsplatf" == "slc4_ia32_gcc412"
51 < %patch9 -p1
52 < %endif
53 < %patch10 -p1
54 < %patch11 -p1
70 < %patch12 -p0
71 < %patch13 -p0
50 > %patch8 -p1
51 > %patch9 -p0
52 > %patch10 -p0
53 > %patch11 -p0
54 > %patch12 -p1
55  
56   %build
57   mkdir -p %i
58   export ROOTSYS=%_builddir/root
59  
60 + %if "%cmsplatf" == "slc4onl_ia32_gcc346"
61 + # Build without mysql, and use system qt.
62 + # Also skip xrootd and odbc for online case:
63  
78 %if "%{?online_release:set}" == "set"
79 # Use oracle from xdaq installation:
80 ORACLE_ROOT="/opt/xdaq"
81 # Build without mysql, and use system qt and openssl.
82 # Also skip xrootd for online case:
64   EXTRA_CONFIG_ARGS="
65               --disable-mysql
66               --disable-xrootd
# Line 87 | Line 68 | EXTRA_CONFIG_ARGS="
68               --enable-qt"
69   %else
70   EXTRA_CONFIG_ARGS="
71 <   --with-xrootd=$XROOTD_ROOT
72 <   --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
73 <   --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
74 <   --with-ssl-incdir=${OPENSSL_ROOT}/include
75 <   --with-ssl-libdir=${OPENSSL_ROOT}/lib"
71 >             --with-xrootd=$XROOTD_ROOT
72 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
73 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
74 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
75 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
76   %endif
77  
78   CONFIG_ARGS="--enable-table
# Line 117 | Line 98 | CONFIG_ARGS="--enable-table
98               --disable-pgsql
99               --disable-xml ${EXTRA_CONFIG_ARGS}"
100  
101 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_amd64_gcc345"))
101 > %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
102    CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
103   %endif
104  
105   case $(uname)-$(uname -p) in
106    Linux-x86_64)
107 <    ./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;;
107 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
108    Linux-i*86)
109 <    ./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;;
109 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
110    Darwin*)
111      ./configure macosx $CONFIG_ARGS --disable-rfio;;
112    Linux-ppc64*)
# Line 161 | Line 142 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
142   <info url="http://root.cern.ch/root/"></info>
143   <lib name=Cint>
144   <lib name=Core>
145 + <lib name=RIO>
146 + <lib name=Net>
147   <lib name=Tree>
148   <Client>
149   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 177 | Line 160 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
160   </Tool>
161   EOF_TOOLFILE
162  
163 < # root toolfile
163 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
164   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
165   <doc type=BuildSystem::ToolDoc version=1.0>
166   <Tool name=root version=%v>
167   <info url="http://root.cern.ch/root/"></info>
168 + <use name=rootphysics>
169 + </Tool>
170 + EOF_TOOLFILE
171 +
172 + # roothistmatrix toolfile
173 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
174 + <doc type=BuildSystem::ToolDoc version=1.0>
175 + <Tool name=roothistmatrix version=%v>
176 + <info url="http://root.cern.ch/root/"></info>
177 + <lib name=Hist>
178 + <lib name=Matrix>
179 + <use name=ROOTCore>
180 + </Tool>
181 + EOF_TOOLFILE
182 +
183 + # rootphysics toolfile
184 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
185 + <doc type=BuildSystem::ToolDoc version=1.0>
186 + <Tool name=rootphysics version=%v>
187 + <info url="http://root.cern.ch/root/"></info>
188 + <lib name=Physics>
189 + <use name=roothistmatrix>
190 + </Tool>
191 + EOF_TOOLFILE
192 +
193 + # rootgraphics toolfile, identical to old "root" toolfile
194 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
195 + <doc type=BuildSystem::ToolDoc version=1.0>
196 + <Tool name=rootgraphics version=%v>
197 + <info url="http://root.cern.ch/root/"></info>
198   <lib name=TreePlayer>
199   <lib name=Gpad>
200   <lib name=Graf3d>
# Line 285 | Line 298 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
298   <doc type=BuildSystem::ToolDoc version=1.0>
299   <Tool name=rootroofit version=%v>
300   <info url="http://root.cern.ch/root/"></info>
301 + <lib name=RooFitCore>
302   <lib name=RooFit>
303   <use name=ROOTMinuit>
304   <use name=ROOTHtml>
# Line 324 | Line 338 | EOF_TOOLFILE
338   %post
339   %{relocateConfig}etc/scram.d/root
340   %{relocateConfig}etc/scram.d/rootcore
341 + %{relocateConfig}etc/scram.d/roothistmatrix
342 + %{relocateConfig}etc/scram.d/rootphysics
343 + %{relocateConfig}etc/scram.d/rootgraphics
344   %{relocateConfig}etc/scram.d/rootcintex
345   %{relocateConfig}etc/scram.d/rootinteractive
346   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines