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.108 by dlange, Wed Mar 12 15:43:44 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.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 < Patch5: root-5.18-00a-Cintex2
13 <
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 gsl castor libjpg dcap pcre python
17  
18 < %if "%{?online_release:set}" != "set"
19 < Requires: qt openssl mysql libpng zlib oracle libungif xrootd
18 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
19 > Requires: qt openssl mysql libpng zlib libungif
20   %else
21   %define skiplibtiff true
22   %endif
# Line 35 | Line 33 | Requires: libtiff
33   %setup -n root
34   %patch0 -p1
35   %patch1 -p1
36 < %patch2 -p0
36 > %patch2 -p1
37   %patch3 -p1
38 < %patch4 -p0
41 < %patch5 -p0
38 > %patch4 -p1
39  
40   %build
41   mkdir -p %i
42   export ROOTSYS=%_builddir/root
43  
44 < %if "%{?online_release:set}" == "set"
45 < # Use oracle from xdaq installation:
46 < ORACLE_ROOT="/opt/xdaq"
47 < # Build without mysql, and use system qt and openssl:
44 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
45 > # Build without mysql, and use system qt.
46 > # Also skip xrootd and odbc for online case:
47 >
48   EXTRA_CONFIG_ARGS="
49 <             --disable-mysql
50 <             --enable-qt
51 <             --enable-ssl"
52 < # Also skip xrootd option for online case.
49 >             --disable-mysql
50 >             --disable-xrootd
51 >             --disable-odbc
52 >             --enable-qt"
53   %else
54   EXTRA_CONFIG_ARGS="
58             --with-xrootd=$XROOTD_ROOT
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 70 | 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
73             --enable-mathcore
70               --enable-mathmore
71               --enable-reflex  
72               --enable-cintex
# Line 85 | Line 81 | CONFIG_ARGS="--enable-table
81               --disable-pgsql
82               --disable-xml ${EXTRA_CONFIG_ARGS}"
83  
84 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%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 117 | 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 147 | 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 196 | 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 295 | 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