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.78 by ratnik, Mon Nov 5 20:18:05 2007 UTC vs.
Revision 1.122 by andreasp, Thu Jul 24 18:39:57 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS11
1 > ### RPM lcg root 5.20.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 < Patch8: root-proofd
7 > Patch0: root-5.20-00-libpng
8 > Patch1: root-5.20-00-CINT-maxlongline
9  
10   %define cpu %(echo %cmsplatf | cut -d_ -f2)
11   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
12  
13   Requires: gccxml gsl castor libjpg dcap pcre python
14  
15 < %if "%{?online_release:set}" != "set"
16 < Requires: qt openssl mysql libpng zlib oracle libungif xrootd
15 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
16 > Requires: qt openssl mysql libpng zlib libungif xrootd
17   %else
18   %define skiplibtiff true
19   %endif
# Line 35 | Line 28 | Requires: libtiff
28  
29   %prep
30   %setup -n root
31 < %patch -p0
32 < %patch1 -p2
33 < %patch2 -p2
41 < %patch3 -p1
42 < %patch4 -p0
43 < %patch5 -p1
44 < %patch6 -p0
45 < %patch7 -p0
46 < %patch8 -p1
31 > %patch0 -p1
32 > %patch1 -p1
33 >
34   %build
35   mkdir -p %i
36   export ROOTSYS=%_builddir/root
37  
38 < %if "%{?online_release:set}" != "set"
38 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
39 > # Build without mysql, and use system qt.
40 > # Also skip xrootd and odbc for online case:
41 >
42   EXTRA_CONFIG_ARGS="
43 < --with-xrootd=$XROOTD_ROOT
44 < --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
45 < --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
46 < --with-ssl-incdir=${OPENSSL_ROOT}/include
57 < --with-ssl-libdir=${OPENSSL_ROOT}/lib"
43 >             --disable-mysql
44 >             --disable-xrootd
45 >             --disable-odbc
46 >             --enable-qt"
47   %else
48 < ORACLE_ROOT="/opt/xdaq"
49 < EXTRA_CONFIG_ARGS="--disable-mysql --enable-ssl"
48 > EXTRA_CONFIG_ARGS="
49 >             --with-xrootd=$XROOTD_ROOT
50 >             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
51 >             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
52 >             --with-ssl-incdir=${OPENSSL_ROOT}/include
53 >             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
54   %endif
55  
56   CONFIG_ARGS="--enable-table
# Line 65 | Line 58 | CONFIG_ARGS="--enable-table
58               --disable-builtin-freetype
59               --disable-builtin-zlib
60               --with-gccxml=${GCCXML_ROOT}
61 <             --enable-python
69 <             --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
61 >             --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
62               --enable-explicitlink
63               --enable-qtgsi
72             --enable-qt
64               --enable-mathcore
65               --enable-mathmore
66               --enable-reflex  
# Line 85 | Line 76 | CONFIG_ARGS="--enable-table
76               --disable-pgsql
77               --disable-xml ${EXTRA_CONFIG_ARGS}"
78  
79 + %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
80 +  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
81 + %endif
82 +
83   case $(uname)-$(uname -p) in
84    Linux-x86_64)
85 <    ./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;;
85 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
86    Linux-i*86)
87 <    ./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;;
87 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
88    Darwin*)
89      ./configure macosx $CONFIG_ARGS --disable-rfio;;
90    Linux-ppc64*)
# Line 113 | Line 108 | fi
108   export ROOTSYS=%i
109   make INSTALL="$cp" INSTALLDATA="$cp" install
110   mkdir -p $ROOTSYS/lib/python
111 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
111 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
112   #
113  
114   # SCRAM ToolBox toolfile
# Line 125 | Line 120 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
120   <info url="http://root.cern.ch/root/"></info>
121   <lib name=Cint>
122   <lib name=Core>
123 + <lib name=RIO>
124 + <lib name=Net>
125   <lib name=Tree>
126   <Client>
127   <Environment name=ROOTCORE_BASE default="%i"></Environment>
# Line 141 | Line 138 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
138   </Tool>
139   EOF_TOOLFILE
140  
141 < # root toolfile
141 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
142   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
143   <doc type=BuildSystem::ToolDoc version=1.0>
144   <Tool name=root version=%v>
145   <info url="http://root.cern.ch/root/"></info>
146 + <use name=rootphysics>
147 + </Tool>
148 + EOF_TOOLFILE
149 +
150 + # roothistmatrix toolfile
151 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
152 + <doc type=BuildSystem::ToolDoc version=1.0>
153 + <Tool name=roothistmatrix version=%v>
154 + <info url="http://root.cern.ch/root/"></info>
155 + <lib name=Hist>
156 + <lib name=Matrix>
157 + <use name=ROOTCore>
158 + </Tool>
159 + EOF_TOOLFILE
160 +
161 + # rootphysics toolfile
162 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
163 + <doc type=BuildSystem::ToolDoc version=1.0>
164 + <Tool name=rootphysics version=%v>
165 + <info url="http://root.cern.ch/root/"></info>
166 + <lib name=Physics>
167 + <use name=roothistmatrix>
168 + </Tool>
169 + EOF_TOOLFILE
170 +
171 + # rootgraphics toolfile, identical to old "root" toolfile
172 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
173 + <doc type=BuildSystem::ToolDoc version=1.0>
174 + <Tool name=rootgraphics version=%v>
175 + <info url="http://root.cern.ch/root/"></info>
176   <lib name=TreePlayer>
177   <lib name=Gpad>
178   <lib name=Graf3d>
# Line 249 | Line 276 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
276   <doc type=BuildSystem::ToolDoc version=1.0>
277   <Tool name=rootroofit version=%v>
278   <info url="http://root.cern.ch/root/"></info>
279 + <lib name=RooFitCore>
280   <lib name=RooFit>
281   <use name=ROOTMinuit>
282   <use name=ROOTHtml>
# Line 288 | Line 316 | EOF_TOOLFILE
316   %post
317   %{relocateConfig}etc/scram.d/root
318   %{relocateConfig}etc/scram.d/rootcore
319 + %{relocateConfig}etc/scram.d/roothistmatrix
320 + %{relocateConfig}etc/scram.d/rootphysics
321 + %{relocateConfig}etc/scram.d/rootgraphics
322   %{relocateConfig}etc/scram.d/rootcintex
323   %{relocateConfig}etc/scram.d/rootinteractive
324   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines