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.71 by dlange, Wed Oct 10 21:38:31 2007 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-CMS10
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
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)
18 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif
23  
24 < %if "%cpu" != "amd64"
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
31 >
32 > %if "%cpu" == "amd64"
33 > %define skiplibtiff true
34 > %endif
35 >
36 > %if "%skiplibtiff" != "true"
37   Requires: libtiff
38   %endif
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 + %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 +
64 + EXTRA_CONFIG_ARGS="
65 +             --disable-mysql
66 +             --disable-xrootd
67 +             --disable-odbc
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"
76 + %endif
77 +
78   CONFIG_ARGS="--enable-table
79               --disable-builtin-pcre
80               --disable-builtin-freetype
81               --disable-builtin-zlib
82               --with-gccxml=${GCCXML_ROOT}
83               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
44             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
84               --enable-explicitlink
85               --enable-qtgsi
47             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
86               --enable-mathcore
87               --enable-mathmore
88               --enable-reflex  
# Line 53 | Line 91 | CONFIG_ARGS="--enable-table
91               --enable-roofit
92               --disable-ldap
93               --disable-krb5
56             --with-ssl-incdir=${OPENSSL_ROOT}/include
57             --with-ssl-libdir=${OPENSSL_ROOT}/lib
94               --with-gsl-incdir=${GSL_ROOT}/include
95               --with-gsl-libdir=${GSL_ROOT}/lib
96               --with-dcap-libdir=${DCAP_ROOT}/lib
97               --with-dcap-incdir=${DCAP_ROOT}/include
98               --disable-pgsql
99 <             --disable-xml"
99 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
100 >
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 102 | 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 118 | 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 226 | 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 265 | 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