9 |
|
|
10 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
11 |
|
%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 |
12 |
|
|
13 |
< |
%if "%cpu" != "amd64" |
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 |
17 |
> |
%else |
18 |
> |
%define skiplibtiff true |
19 |
> |
%endif |
20 |
> |
|
21 |
> |
%if "%cpu" == "amd64" |
22 |
> |
%define skiplibtiff true |
23 |
> |
%endif |
24 |
> |
|
25 |
> |
%if "%skiplibtiff" != "true" |
26 |
|
Requires: libtiff |
27 |
|
%endif |
28 |
|
|
34 |
|
%build |
35 |
|
mkdir -p %i |
36 |
|
export ROOTSYS=%_builddir/root |
37 |
+ |
|
38 |
+ |
%if "%{?online_release:set}" == "set" |
39 |
+ |
# Use oracle from xdaq installation: |
40 |
+ |
ORACLE_ROOT="/opt/xdaq" |
41 |
+ |
# Build without mysql, and use system qt and openssl: |
42 |
+ |
EXTRA_CONFIG_ARGS=" |
43 |
+ |
--disable-mysql |
44 |
+ |
--enable-qt |
45 |
+ |
--enable-ssl" |
46 |
+ |
# Also skip xrootd option for online case. |
47 |
+ |
%else |
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 |
57 |
|
--disable-builtin-pcre |
58 |
|
--disable-builtin-freetype |
59 |
|
--disable-builtin-zlib |
60 |
|
--with-gccxml=${GCCXML_ROOT} |
61 |
|
--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 |
62 |
|
--enable-explicitlink |
63 |
|
--enable-qtgsi |
35 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
64 |
|
--enable-mathcore |
65 |
|
--enable-mathmore |
66 |
|
--enable-reflex |
69 |
|
--enable-roofit |
70 |
|
--disable-ldap |
71 |
|
--disable-krb5 |
44 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
45 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
72 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
73 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
74 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
75 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
50 |
– |
--with-xrootd=$XROOTD_ROOT |
76 |
|
--disable-pgsql |
77 |
< |
--disable-xml" |
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" |