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.93 by elmer, Fri Jan 18 21:22:01 2008 UTC vs.
Revision 1.123 by andreasp, Wed Aug 27 19:07:52 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.18.00-CMS19
1 > ### RPM lcg root 5.18.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-00-CINT-maxlongline
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 > Patch6: root-5.18-00a-TBufferFile
14 > Patch7: root-5.18-00a-cintexquickfix2
15 > Patch8: root-5.18-00a-gendict-performance
16 > Patch9: root-5.18-00a-TClass-classNameSize
17  
18   %define cpu %(echo %cmsplatf | cut -d_ -f2)
19   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
12 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
20  
21 < %if "%cpu" != "amd64"
21 > Requires: gccxml gsl castor libjpg dcap pcre python
22 >
23 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
24 > Requires: qt openssl mysql libpng zlib libungif xrootd
25 > %else
26 > %define skiplibtiff true
27 > %endif
28 >
29 > %if "%cpu" == "amd64"
30 > %define skiplibtiff true
31 > %endif
32 >
33 > %if "%skiplibtiff" != "true"
34   Requires: libtiff
35   %endif
36  
# Line 19 | Line 38 | Requires: libtiff
38   %setup -n root
39   %patch0 -p1
40   %patch1 -p1
41 + %patch2 -p0
42 + %patch3 -p1
43 + %patch4 -p0
44 + %patch5 -p0
45 + %patch6 -p0
46 + %patch7 -p0
47 + %patch8 -p1
48 + %patch9 -p0
49  
50   %build
51   mkdir -p %i
52   export ROOTSYS=%_builddir/root
53 +
54 + %if "%cmsplatf" == "slc4onl_ia32_gcc346"
55 + # Build without mysql, and use system qt.
56 + # Also skip xrootd and odbc for online case:
57 +
58 + EXTRA_CONFIG_ARGS="
59 +             --disable-mysql
60 +             --disable-xrootd
61 +             --disable-odbc
62 +             --enable-qt"
63 + %else
64 + EXTRA_CONFIG_ARGS="
65 +             --with-xrootd=$XROOTD_ROOT
66 +             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
67 +             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
68 +             --with-ssl-incdir=${OPENSSL_ROOT}/include
69 +             --with-ssl-libdir=${OPENSSL_ROOT}/lib"
70 + %endif
71 +
72   CONFIG_ARGS="--enable-table
73               --disable-builtin-pcre
74               --disable-builtin-freetype
75               --disable-builtin-zlib
76               --with-gccxml=${GCCXML_ROOT}
77               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
32             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
78               --enable-explicitlink
79               --enable-qtgsi
35             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
80               --enable-mathcore
81               --enable-mathmore
82               --enable-reflex  
# Line 41 | Line 85 | CONFIG_ARGS="--enable-table
85               --enable-roofit
86               --disable-ldap
87               --disable-krb5
44             --with-ssl-incdir=${OPENSSL_ROOT}/include
45             --with-ssl-libdir=${OPENSSL_ROOT}/lib
88               --with-gsl-incdir=${GSL_ROOT}/include
89               --with-gsl-libdir=${GSL_ROOT}/lib
90               --with-dcap-libdir=${DCAP_ROOT}/lib
91               --with-dcap-incdir=${DCAP_ROOT}/include
50             --with-xrootd=$XROOTD_ROOT
92               --disable-pgsql
93 <             --disable-xml"
93 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
94  
95   %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345"))
96    CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
# Line 57 | Line 98 | CONFIG_ARGS="--enable-table
98  
99   case $(uname)-$(uname -p) in
100    Linux-x86_64)
101 <    ./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;;
101 >    ./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff --disable-cern;;
102    Linux-i*86)
103 <    ./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;;
103 >    ./configure linux  $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;;
104    Darwin*)
105      ./configure macosx $CONFIG_ARGS --disable-rfio;;
106    Linux-ppc64*)
# Line 113 | Line 154 | cat << \EOF_TOOLFILE >%i/etc/scram.d/roo
154   </Tool>
155   EOF_TOOLFILE
156  
157 < # root toolfile
157 > # root toolfile, alias for rootphysics. Using rootphysics is preferred.
158   cat << \EOF_TOOLFILE >%i/etc/scram.d/root
159   <doc type=BuildSystem::ToolDoc version=1.0>
160   <Tool name=root version=%v>
161   <info url="http://root.cern.ch/root/"></info>
162 + <use name=rootphysics>
163 + </Tool>
164 + EOF_TOOLFILE
165 +
166 + # roothistmatrix toolfile
167 + cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix
168 + <doc type=BuildSystem::ToolDoc version=1.0>
169 + <Tool name=roothistmatrix version=%v>
170 + <info url="http://root.cern.ch/root/"></info>
171 + <lib name=Hist>
172 + <lib name=Matrix>
173 + <use name=ROOTCore>
174 + </Tool>
175 + EOF_TOOLFILE
176 +
177 + # rootphysics toolfile
178 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootphysics
179 + <doc type=BuildSystem::ToolDoc version=1.0>
180 + <Tool name=rootphysics version=%v>
181 + <info url="http://root.cern.ch/root/"></info>
182 + <lib name=Physics>
183 + <use name=roothistmatrix>
184 + </Tool>
185 + EOF_TOOLFILE
186 +
187 + # rootgraphics toolfile, identical to old "root" toolfile
188 + cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgraphics
189 + <doc type=BuildSystem::ToolDoc version=1.0>
190 + <Tool name=rootgraphics version=%v>
191 + <info url="http://root.cern.ch/root/"></info>
192   <lib name=TreePlayer>
193   <lib name=Gpad>
194   <lib name=Graf3d>
# Line 261 | Line 332 | EOF_TOOLFILE
332   %post
333   %{relocateConfig}etc/scram.d/root
334   %{relocateConfig}etc/scram.d/rootcore
335 + %{relocateConfig}etc/scram.d/roothistmatrix
336 + %{relocateConfig}etc/scram.d/rootphysics
337 + %{relocateConfig}etc/scram.d/rootgraphics
338   %{relocateConfig}etc/scram.d/rootcintex
339   %{relocateConfig}etc/scram.d/rootinteractive
340   %{relocateConfig}etc/scram.d/rootmath

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines