1 |
< |
### RPM lcg root 5.17.08-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 |
< |
#Patch: root-CINT-maxlongline |
8 |
< |
#Patch1: root_libpng |
9 |
< |
#Patch2: root_PositionVector |
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 |
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 |
|
|
12 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
13 |
|
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
23 |
– |
Requires: gccxml python qt gsl castor openssl mysql libpng libjpg dcap pcre zlib oracle libungif xrootd |
14 |
|
|
15 |
< |
%if "%cpu" != "amd64" |
15 |
> |
Requires: gccxml gsl castor libjpg dcap pcre python |
16 |
> |
|
17 |
> |
%if "%{?online_release:set}" != "set" |
18 |
> |
Requires: qt openssl mysql libpng zlib oracle libungif xrootd |
19 |
> |
%else |
20 |
> |
%define skiplibtiff true |
21 |
> |
%endif |
22 |
> |
|
23 |
> |
%if "%cpu" == "amd64" |
24 |
> |
%define skiplibtiff true |
25 |
> |
%endif |
26 |
> |
|
27 |
> |
%if "%skiplibtiff" != "true" |
28 |
|
Requires: libtiff |
29 |
|
%endif |
30 |
|
|
31 |
|
%prep |
32 |
|
%setup -n root |
33 |
< |
#%patch -p0 |
34 |
< |
#%patch1 -p2 |
35 |
< |
#%patch2 -p2 |
36 |
< |
#%patch3 -p1 |
35 |
< |
#%patch4 -p0 |
36 |
< |
#%patch5 -p1 |
37 |
< |
#%patch6 -p0 |
38 |
< |
#%patch7 -p0 |
39 |
< |
#%if "%cmsplatf" == "slc4_ia32_gcc412" |
40 |
< |
#%patch9 -p1 |
41 |
< |
#%endif |
42 |
< |
#%patch10 -p1 |
43 |
< |
#%patch11 -p1 |
33 |
> |
%patch0 -p1 |
34 |
> |
%patch1 -p1 |
35 |
> |
%patch2 -p0 |
36 |
> |
%patch3 -p1 |
37 |
|
|
38 |
|
%build |
39 |
|
mkdir -p %i |
40 |
|
export ROOTSYS=%_builddir/root |
41 |
+ |
|
42 |
+ |
%if "%{?online_release:set}" == "set" |
43 |
+ |
# Use oracle from xdaq installation: |
44 |
+ |
ORACLE_ROOT="/opt/xdaq" |
45 |
+ |
# Build without mysql, and use system qt and openssl: |
46 |
+ |
EXTRA_CONFIG_ARGS=" |
47 |
+ |
--disable-mysql |
48 |
+ |
--enable-qt |
49 |
+ |
--enable-ssl" |
50 |
+ |
# Also skip xrootd option for online case. |
51 |
+ |
%else |
52 |
+ |
EXTRA_CONFIG_ARGS=" |
53 |
+ |
--with-xrootd=$XROOTD_ROOT |
54 |
+ |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
55 |
+ |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
56 |
+ |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
57 |
+ |
--with-ssl-libdir=${OPENSSL_ROOT}/lib" |
58 |
+ |
%endif |
59 |
+ |
|
60 |
|
CONFIG_ARGS="--enable-table |
61 |
|
--disable-builtin-pcre |
62 |
|
--disable-builtin-freetype |
63 |
|
--disable-builtin-zlib |
64 |
|
--with-gccxml=${GCCXML_ROOT} |
65 |
|
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
54 |
– |
--enable-mysql --with-mysql-libdir=${MYSQL_ROOT}/lib --with-mysql-incdir=${MYSQL_ROOT}/include |
66 |
|
--enable-explicitlink |
67 |
|
--enable-qtgsi |
57 |
– |
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
68 |
|
--enable-mathcore |
69 |
|
--enable-mathmore |
70 |
|
--enable-reflex |
73 |
|
--enable-roofit |
74 |
|
--disable-ldap |
75 |
|
--disable-krb5 |
66 |
– |
--with-ssl-incdir=${OPENSSL_ROOT}/include |
67 |
– |
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
76 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
77 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
78 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
79 |
|
--with-dcap-incdir=${DCAP_ROOT}/include |
72 |
– |
--with-xrootd=$XROOTD_ROOT |
80 |
|
--disable-pgsql |
81 |
< |
--disable-xml" |
81 |
> |
--disable-xml ${EXTRA_CONFIG_ARGS}" |
82 |
|
|
83 |
|
%if (("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422")||("%cmsplatf" == "slc4_amd64_gcc345")) |
84 |
|
CONFIG_ARGS="$CONFIG_ARGS --disable-cern" |