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.133 by elmer, Thu Jan 15 22:51:46 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00a
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
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-TClass-Clone
10 > Patch3:  root-5.22-00-gendict
11 > Patch4:  root-5.22-00-RootSys
12 > Patch5:  root-5.22-00-TMVA-shut-the-hell-up-for-once
13  
14   %define cpu %(echo %cmsplatf | cut -d_ -f2)
15   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
16  
17   Requires: gccxml gsl castor libjpg dcap pcre python
18  
19 < %if "%{?online_release:set}" != "set"
20 < Requires: qt openssl mysql libpng zlib oracle libungif xrootd
19 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
20 > Requires: qt openssl mysql libpng zlib libungif
21   %else
22   %define skiplibtiff true
23   %endif
# Line 34 | Line 34 | Requires: libtiff
34   %setup -n root
35   %patch0 -p1
36   %patch1 -p1
37 < %patch2 -p0
37 > %patch2 -p1
38   %patch3 -p1
39 < %patch4 -p0
39 > %patch4 -p1
40 > %patch5 -p1
41  
42   %build
43   mkdir -p %i
44   export ROOTSYS=%_builddir/root
45  
46 < %if "%{?online_release:set}" == "set"
47 < # Use oracle from xdaq installation:
48 < ORACLE_ROOT="/opt/xdaq"
49 < # Build without mysql, and use system qt and openssl:
46 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
47 > # Build without mysql, and use system qt.
48 > # Also skip xrootd and odbc for online case:
49 >
50   EXTRA_CONFIG_ARGS="
51 <             --disable-mysql
52 <             --enable-qt
53 <             --enable-ssl"
54 < # Also skip xrootd option for online case.
51 >             --disable-mysql
52 >             --disable-xrootd
53 >             --disable-odbc
54 >             --enable-qt"
55   %else
56   EXTRA_CONFIG_ARGS="
56             --with-xrootd=$XROOTD_ROOT
57               --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
58               --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
59               --with-ssl-incdir=${OPENSSL_ROOT}/include
60               --with-ssl-libdir=${OPENSSL_ROOT}/lib"
61   %endif
62  
63 < CONFIG_ARGS="--enable-table
63 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
64 >             --enable-table
65               --disable-builtin-pcre
66               --disable-builtin-freetype
67               --disable-builtin-zlib
# Line 68 | Line 69 | CONFIG_ARGS="--enable-table
69               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
70               --enable-explicitlink
71               --enable-qtgsi
71             --enable-mathcore
72               --enable-mathmore
73               --enable-reflex  
74               --enable-cintex
# Line 83 | Line 83 | CONFIG_ARGS="--enable-table
83               --disable-pgsql
84               --disable-xml ${EXTRA_CONFIG_ARGS}"
85  
86 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
87 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
88 < %endif
86 > #case %gccver in
87 > #  4.*)
88 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
89 > #  ;;
90 > #esac
91  
92   case $(uname)-$(uname -p) in
93    Linux-x86_64)
94 <    ./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;;
94 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
95    Linux-i*86)
96 <    ./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;;
96 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
97    Darwin*)
98      ./configure macosx $CONFIG_ARGS --disable-rfio;;
99    Linux-ppc64*)
# Line 115 | Line 117 | fi
117   export ROOTSYS=%i
118   make INSTALL="$cp" INSTALLDATA="$cp" install
119   mkdir -p $ROOTSYS/lib/python
120 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
120 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
121   #
122  
123   # SCRAM ToolBox toolfile
# Line 145 | Line 147 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
147   </Tool>
148   EOF_TOOLFILE
149  
150 < # root toolfile
150 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
151   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
152   <doc type=BuildSystem::ToolDoc version=1.0>
153   <Tool name=root version=%v>
154   <info url="http://root.cern.ch/root/"></info>
155 + <use name=rootphysics>
156 + </Tool>
157 + EOF_TOOLFILE
158 +
159 + # roothistmatrix toolfile
160 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
161 + <doc type=BuildSystem::ToolDoc version=1.0>
162 + <Tool name=roothistmatrix version=%v>
163 + <info url="http://root.cern.ch/root/"></info>
164 + <lib name=Hist>
165 + <lib name=Matrix>
166 + <use name=ROOTCore>
167 + </Tool>
168 + EOF_TOOLFILE
169 +
170 + # rootphysics toolfile
171 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
172 + <doc type=BuildSystem::ToolDoc version=1.0>
173 + <Tool name=rootphysics version=%v>
174 + <info url="http://root.cern.ch/root/"></info>
175 + <lib name=Physics>
176 + <use name=roothistmatrix>
177 + </Tool>
178 + EOF_TOOLFILE
179 +
180 + # rootgraphics toolfile, identical to old "root" toolfile
181 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
182 + <doc type=BuildSystem::ToolDoc version=1.0>
183 + <Tool name=rootgraphics version=%v>
184 + <info url="http://root.cern.ch/root/"></info>
185   <lib name=TreePlayer>
186   <lib name=Gpad>
187   <lib name=Graf3d>
# Line 194 | Line 226 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
226   <info url="http://root.cern.ch/root/"></info>
227   <lib name=MathCore>
228   <lib name=MathMore>
229 + <lib name=GenVector>
230   <use name=ROOTCore>
231   <use name=gsl>
232   </Tool>
# Line 293 | Line 326 | EOF_TOOLFILE
326   %post
327   %{relocateConfig}etc/scram.d/root
328   %{relocateConfig}etc/scram.d/rootcore
329 + %{relocateConfig}etc/scram.d/roothistmatrix
330 + %{relocateConfig}etc/scram.d/rootphysics
331 + %{relocateConfig}etc/scram.d/rootgraphics
332   %{relocateConfig}etc/scram.d/rootcintex
333   %{relocateConfig}etc/scram.d/rootinteractive
334   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines