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.73 by dlange, Mon Oct 15 12:31:04 2007 UTC vs.
Revision 1.105 by ratnik, Fri Mar 7 23:43:18 2008 UTC

# Line 1 | Line 1
1 < ### RPM lcg root 5.14.00g-CMS11
1 > ### RPM lcg root 5.14.00g-CMS18l
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
# Line 12 | Line 12 | Patch4: root_TXMLSetup
12   Patch5: root-Cintex
13   Patch6: root_Reflex_Cintex
14   Patch7: root_CallFunc
15 < Patch8: root-proofd
15 > # The following patch should only be applied for gcc4.x (x>0) and when
16 > # using gccxml 0.7.0
17 > Patch9: root_5.14_reflex_gccxml070_update
18 > Patch10: root-5.14-xrootd-20071001-0000a
19 > Patch11: root-5.14-silence-tmva
20 > Patch12: root_5.14-CINTFunctional
21 > Patch13: root_5.14-streamerinfo
22  
23   %define cpu %(echo %cmsplatf | cut -d_ -f2)
24   %define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2)
19 Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd
25  
26 < %if "%cpu" != "amd64"
26 > Requires: gccxml
27 > Requires: python
28 > Requires: gsl
29 > Requires: castor
30 > Requires: libjpg
31 > Requires: dcap
32 > Requires: pcre
33 >
34 > %if "%{?online_release:set}" != "set"
35 > Requires: qt
36 > Requires: openssl
37 > Requires: mysql
38 > Requires: libpng
39 > Requires: zlib
40 > Requires: oracle
41 > Requires: libungif
42 > Requires: xrootd
43 > %else
44 > %define skiplibtiff true
45 > %endif
46 >
47 > %if "%cpu" == "amd64"
48 > %define skiplibtiff true
49 > %endif
50 >
51 > %if "%skiplibtiff" != "true"
52   Requires: libtiff
53   %endif
54  
# Line 32 | Line 62 | Requires: libtiff
62   %patch5 -p1
63   %patch6 -p0
64   %patch7 -p0
65 < %patch8 -p1
65 > %if "%cmsplatf" == "slc4_ia32_gcc412"
66 > %patch9 -p1
67 > %endif
68 > %patch10 -p1
69 > %patch11 -p1
70 > %patch12 -p0
71 > %patch13 -p0
72  
73   %build
74   mkdir -p %i
75   export ROOTSYS=%_builddir/root
76 +
77 +
78 + %if "%{?online_release:set}" == "set"
79 + # Use oracle from xdaq installation:
80 + ORACLE_ROOT="/opt/xdaq"
81 + # Build without mysql, and use system qt and openssl.
82 + # Also skip xrootd for online case:
83 + EXTRA_CONFIG_ARGS="
84 +             --disable-mysql
85 +             --disable-xrootd
86 +             --disable-odbc
87 +             --enable-qt"
88 + %else
89 + EXTRA_CONFIG_ARGS="
90 +   --with-xrootd=$XROOTD_ROOT
91 +   --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
92 +   --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
93 +   --with-ssl-incdir=${OPENSSL_ROOT}/include
94 +   --with-ssl-libdir=${OPENSSL_ROOT}/lib"
95 + %endif
96 +
97   CONFIG_ARGS="--enable-table
98               --disable-builtin-pcre
99               --disable-builtin-freetype
100               --disable-builtin-zlib
101               --with-gccxml=${GCCXML_ROOT}
102               --enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4
46             --enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include
103               --enable-explicitlink
104               --enable-qtgsi
49             --enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include
105               --enable-mathcore
106               --enable-mathmore
107               --enable-reflex  
# Line 55 | Line 110 | CONFIG_ARGS="--enable-table
110               --enable-roofit
111               --disable-ldap
112               --disable-krb5
58             --with-ssl-incdir=${OPENSSL_ROOT}/include
59             --with-ssl-libdir=${OPENSSL_ROOT}/lib
113               --with-gsl-incdir=${GSL_ROOT}/include
114               --with-gsl-libdir=${GSL_ROOT}/lib
115               --with-dcap-libdir=${DCAP_ROOT}/lib
116               --with-dcap-incdir=${DCAP_ROOT}/include
64             --with-xrootd=$XROOTD_ROOT
117               --disable-pgsql
118 <             --disable-xml"
118 >             --disable-xml ${EXTRA_CONFIG_ARGS}"
119 >
120 > %if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_amd64_gcc345"))
121 >  CONFIG_ARGS="$CONFIG_ARGS --disable-cern"
122 > %endif
123  
124   case $(uname)-$(uname -p) in
125    Linux-x86_64)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines