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.132 by elmer, Thu Jan 15 00:59:45 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS18l
1 > ### RPM lcg root 5.22.00
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.21-04-CINT-maxlongline
9 > Patch2:  root-5.22-00-TClass-Clone
10 > Patch3:  root-5.22-00-gendict
11 > Patch4:  root-5.22-00-RootSys
12  
13   %define cpu %(echo %cmsplatf | cut -d_ -f2)
14   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
15  
16 < Requires: gccxml
17 < Requires: python
18 < Requires: gsl
19 < 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
16 > Requires: gccxml gsl castor libjpg dcap pcre python
17 >
18 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
19 > Requires: qt openssl mysql libpng zlib libungif
20   %else
21   %define skiplibtiff true
22   %endif
# Line 54 | Line 31 | Requires: libtiff
31  
32   %prep
33   %setup -n root
34 < %patch -p0
35 < %patch1 -p2
36 < %patch2 -p2
34 > %patch0 -p1
35 > %patch1 -p1
36 > %patch2 -p1
37   %patch3 -p1
38 < %patch4 -p0
62 < %patch5 -p1
63 < %patch6 -p0
64 < %patch7 -p0
65 < %if "%cmsplatf" == "slc4_ia32_gcc412"
66 < %patch9 -p1
67 < %endif
68 < %patch10 -p1
69 < %patch11 -p1
70 < %patch12 -p0
71 < %patch13 -p0
38 > %patch4 -p1
39  
40   %build
41   mkdir -p %i
42   export ROOTSYS=%_builddir/root
43  
44 + %if "%cmsplatf" == "slc4onl_ia32_gcc346"
45 + # Build without mysql, and use system qt.
46 + # Also skip xrootd and odbc for online case:
47  
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:
48   EXTRA_CONFIG_ARGS="
49               --disable-mysql
50               --disable-xrootd
# Line 87 | Line 52 | EXTRA_CONFIG_ARGS="
52               --enable-qt"
53   %else
54   EXTRA_CONFIG_ARGS="
55 <   --with-xrootd=$XROOTD_ROOT
56 <   --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
57 <   --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
58 <   --with-ssl-incdir=${OPENSSL_ROOT}/include
94 <   --with-ssl-libdir=${OPENSSL_ROOT}/lib"
55 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
56 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
57 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
58 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
59   %endif
60  
61 < CONFIG_ARGS="--enable-table
61 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
62 >             --enable-table
63               --disable-builtin-pcre
64               --disable-builtin-freetype
65               --disable-builtin-zlib
# Line 102 | Line 67 | CONFIG_ARGS="--enable-table
67               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
68               --enable-explicitlink
69               --enable-qtgsi
105             --enable-mathcore
70               --enable-mathmore
71               --enable-reflex  
72               --enable-cintex
# Line 117 | Line 81 | CONFIG_ARGS="--enable-table
81               --disable-pgsql
82               --disable-xml ${EXTRA_CONFIG_ARGS}"
83  
84 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_amd64_gcc345"))
85 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
86 < %endif
84 > #case %gccver in
85 > #  4.*)
86 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
87 > #  ;;
88 > #esac
89  
90   case $(uname)-$(uname -p) in
91    Linux-x86_64)
92 <    ./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;;
92 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
93    Linux-i*86)
94 <    ./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;;
94 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
95    Darwin*)
96      ./configure macosx $CONFIG_ARGS --disable-rfio;;
97    Linux-ppc64*)
# Line 149 | Line 115 | fi
115   export ROOTSYS=%i
116   make INSTALL="$cp" INSTALLDATA="$cp" install
117   mkdir -p $ROOTSYS/lib/python
118 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
118 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
119   #
120  
121   # SCRAM ToolBox toolfile
# Line 161 | Line 127 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
127   <info url="http://root.cern.ch/root/"></info>
128   <lib name=Cint>
129   <lib name=Core>
130 + <lib name=RIO>
131 + <lib name=Net>
132   <lib name=Tree>
133   <Client>
134   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 177 | Line 145 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
145   </Tool>
146   EOF_TOOLFILE
147  
148 < # root toolfile
148 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
149   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
150   <doc type=BuildSystem::ToolDoc version=1.0>
151   <Tool name=root version=%v>
152   <info url="http://root.cern.ch/root/"></info>
153 + <use name=rootphysics>
154 + </Tool>
155 + EOF_TOOLFILE
156 +
157 + # roothistmatrix toolfile
158 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
159 + <doc type=BuildSystem::ToolDoc version=1.0>
160 + <Tool name=roothistmatrix version=%v>
161 + <info url="http://root.cern.ch/root/"></info>
162 + <lib name=Hist>
163 + <lib name=Matrix>
164 + <use name=ROOTCore>
165 + </Tool>
166 + EOF_TOOLFILE
167 +
168 + # rootphysics toolfile
169 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
170 + <doc type=BuildSystem::ToolDoc version=1.0>
171 + <Tool name=rootphysics version=%v>
172 + <info url="http://root.cern.ch/root/"></info>
173 + <lib name=Physics>
174 + <use name=roothistmatrix>
175 + </Tool>
176 + EOF_TOOLFILE
177 +
178 + # rootgraphics toolfile, identical to old "root" toolfile
179 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
180 + <doc type=BuildSystem::ToolDoc version=1.0>
181 + <Tool name=rootgraphics version=%v>
182 + <info url="http://root.cern.ch/root/"></info>
183   <lib name=TreePlayer>
184   <lib name=Gpad>
185   <lib name=Graf3d>
# Line 226 | Line 224 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
224   <info url="http://root.cern.ch/root/"></info>
225   <lib name=MathCore>
226   <lib name=MathMore>
227 + <lib name=GenVector>
228   <use name=ROOTCore>
229   <use name=gsl>
230   </Tool>
# Line 285 | Line 284 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
284   <doc type=BuildSystem::ToolDoc version=1.0>
285   <Tool name=rootroofit version=%v>
286   <info url="http://root.cern.ch/root/"></info>
287 + <lib name=RooFitCore>
288   <lib name=RooFit>
289   <use name=ROOTMinuit>
290   <use name=ROOTHtml>
# Line 324 | Line 324 | EOF_TOOLFILE
324   %post
325   %{relocateConfig}etc/scram.d/root
326   %{relocateConfig}etc/scram.d/rootcore
327 + %{relocateConfig}etc/scram.d/roothistmatrix
328 + %{relocateConfig}etc/scram.d/rootphysics
329 + %{relocateConfig}etc/scram.d/rootgraphics
330   %{relocateConfig}etc/scram.d/rootcintex
331   %{relocateConfig}etc/scram.d/rootinteractive
332   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines