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.150 by elmer, Wed Mar 18 19:51:41 2009 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00a
1 > ### RPM lcg root 5.22.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
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-TMVA-shut-the-hell-up-for-once
10 > Patch3:  root-5.22-00a-TMVA-shut-the-hell-up-again
11 > Patch4:  root-5.22-00a-CINTFunctional
12 > Patch5:  root-5.22-00a-TClass
13 > Patch6:  root-5.22-00a-fireworks-graf3d-gui
14  
15   %define cpu %(echo %cmsplatf | cut -d_ -f2)
16   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
17  
18   Requires: gccxml gsl castor libjpg dcap pcre python
19  
20 < %if "%{?online_release:set}" != "set"
21 < Requires: qt openssl mysql libpng zlib oracle libungif xrootd
20 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
21 > Requires: qt openssl mysql libpng zlib libungif xrootd
22   %else
23   %define skiplibtiff true
24   %endif
# Line 34 | Line 35 | Requires: libtiff
35   %setup -n root
36   %patch0 -p1
37   %patch1 -p1
38 < %patch2 -p0
38 > %patch2 -p1
39   %patch3 -p1
40 < %patch4 -p0
40 > %patch4 -p1
41 > %patch5 -p1
42 > %patch6 -p1
43  
44   %build
45   mkdir -p %i
46   export ROOTSYS=%_builddir/root
47  
48 < %if "%{?online_release:set}" == "set"
49 < # Use oracle from xdaq installation:
50 < ORACLE_ROOT="/opt/xdaq"
51 < # Build without mysql, and use system qt and openssl:
48 > %if "%cmsplatf" == "slc4onl_ia32_gcc346"
49 > # Build without mysql, and use system qt.
50 > # Also skip xrootd and odbc for online case:
51 >
52   EXTRA_CONFIG_ARGS="
53 <             --disable-mysql
54 <             --enable-qt
55 <             --enable-ssl"
56 < # Also skip xrootd option for online case.
53 >             --disable-mysql
54 >             --disable-xrootd
55 >             --disable-odbc
56 >             --enable-qt"
57   %else
58   EXTRA_CONFIG_ARGS="
59               --with-xrootd=$XROOTD_ROOT
# Line 60 | Line 63 | EXTRA_CONFIG_ARGS="
63               --with-ssl-libdir=${OPENSSL_ROOT}/lib"
64   %endif
65  
66 < CONFIG_ARGS="--enable-table
66 > CONFIG_ARGS="--with-f77=${GCC_ROOT}
67 >             --enable-table
68               --disable-builtin-pcre
69               --disable-builtin-freetype
70               --disable-builtin-zlib
# Line 68 | Line 72 | CONFIG_ARGS="--enable-table
72               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
73               --enable-explicitlink
74               --enable-qtgsi
71             --enable-mathcore
75               --enable-mathmore
76               --enable-reflex  
77               --enable-cintex
# Line 83 | Line 86 | CONFIG_ARGS="--enable-table
86               --disable-pgsql
87               --disable-xml ${EXTRA_CONFIG_ARGS}"
88  
89 < %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
90 <  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
91 < %endif
89 > #case %gccver in
90 > #  4.*)
91 > #  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
92 > #  ;;
93 > #esac
94  
95   case $(uname)-$(uname -p) in
96    Linux-x86_64)
97 <    ./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;;
97 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;;
98    Linux-i*86)
99 <    ./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;;
99 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
100    Darwin*)
101      ./configure macosx $CONFIG_ARGS --disable-rfio;;
102    Linux-ppc64*)
103      ./configure linux $CONFIG_ARGS --disable-rfio;;
104   esac
105  
106 < make  %makeprocesses
106 > case %cmsplatf in
107 >  osx*)
108 >   makeopts=
109 >  ;;
110 >  *)
111 >   makeopts="%makeprocesses"
112 >  ;;
113 > esac
114 >
115 > make $makeopts
116   make cintdlls
117 +
118   %install
119   # Override installers if we are using GNU fileutils cp.  On OS X
120   # ROOT's INSTALL is defined to "cp -pPR", which only works with
# Line 115 | Line 130 | fi
130   export ROOTSYS=%i
131   make INSTALL="$cp" INSTALLDATA="$cp" install
132   mkdir -p $ROOTSYS/lib/python
133 < cp -r reflex/python/genreflex $ROOTSYS/lib/python
133 > cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python
134   #
135  
136   # SCRAM ToolBox toolfile
# Line 145 | 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 173 | Line 218 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
218   </Tool>
219   EOF_TOOLFILE
220  
221 < # rootinteractive toolfile
221 > # (temporarily eviscerated) rootinteractive toolfile (GQt/qt lib dependencies
222 > # have been removed for the moment)
223   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive
224   <doc type=BuildSystem::ToolDoc version=1.0>
225   <Tool name=rootinteractive version=%v>
226   <info url="http://root.cern.ch/root/"></info>
227   <lib name=Rint>
228 + <use name=libjpg>
229 + <use name=libpng>
230 + <use name=ROOT>
231 + </Tool>
232 + EOF_TOOLFILE
233 +
234 + # rootinteractive2 toolfile (temporary, to allow access to Qt4)
235 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootinteractive2
236 + <doc type=BuildSystem::ToolDoc version=1.0>
237 + <Tool name=rootinteractive2 version=%v>
238 + <info url="http://root.cern.ch/root/"></info>
239 + <lib name=Rint>
240   <lib name=GQt>
241   <use name=qt>
242   <use name=libjpg>
# Line 187 | Line 245 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
245   </Tool>
246   EOF_TOOLFILE
247  
248 +
249   # rootmath toolfile
250   cat << \EOF_TOOLFILE >%i/etc/scram.d/rootmath
251   <doc type=BuildSystem::ToolDoc version=1.0>
# Line 194 | Line 253 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
253   <info url="http://root.cern.ch/root/"></info>
254   <lib name=MathCore>
255   <lib name=MathMore>
256 + <lib name=GenVector>
257   <use name=ROOTCore>
258   <use name=gsl>
259   </Tool>
# Line 293 | Line 353 | EOF_TOOLFILE
353   %post
354   %{relocateConfig}etc/scram.d/root
355   %{relocateConfig}etc/scram.d/rootcore
356 + %{relocateConfig}etc/scram.d/roothistmatrix
357 + %{relocateConfig}etc/scram.d/rootphysics
358 + %{relocateConfig}etc/scram.d/rootgraphics
359   %{relocateConfig}etc/scram.d/rootcintex
360   %{relocateConfig}etc/scram.d/rootinteractive
361   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines