1 |
< |
### RPM lcg root 5.14.00g-CMS9 |
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 |
10 |
|
Patch3: root-fastmerge-ttree |
11 |
|
Patch4: root_TXMLSetup |
12 |
|
Patch5: root-Cintex |
13 |
+ |
Patch6: root_Reflex_Cintex |
14 |
+ |
Patch7: root_CallFunc |
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) |
25 |
|
|
26 |
< |
Requires: gccxml gsl castor libjpg dcap pcre python |
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 openssl mysql libpng zlib oracle libungif |
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 |
60 |
|
%patch3 -p1 |
61 |
|
%patch4 -p0 |
62 |
|
%patch5 -p1 |
63 |
+ |
%patch6 -p0 |
64 |
+ |
%patch7 -p0 |
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 |
< |
%if "%{?online_release:set}" != "set" |
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 |
< |
--with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
85 |
< |
--with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
86 |
< |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
87 |
< |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
84 |
> |
--disable-mysql |
85 |
> |
--disable-xrootd |
86 |
> |
--disable-odbc |
87 |
> |
--enable-qt" |
88 |
|
%else |
89 |
< |
ORACLE_ROOT="/opt/xdaq" |
90 |
< |
EXTRA_CONFIG_ARGS=" --enable-ssl" |
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 |
99 |
|
--disable-builtin-freetype |
100 |
|
--disable-builtin-zlib |
101 |
|
--with-gccxml=${GCCXML_ROOT} |
102 |
< |
--enable-python |
62 |
< |
--with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
63 |
< |
--enable-mysql |
102 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
103 |
|
--enable-explicitlink |
104 |
|
--enable-qtgsi |
66 |
– |
--enable-qt |
105 |
|
--enable-mathcore |
106 |
|
--enable-mathmore |
107 |
|
--enable-reflex |
117 |
|
--disable-pgsql |
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) |
126 |
|
./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;; |