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 |
|
%define closingbrace ) |
7 |
< |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac) |
7 |
> |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac) |
8 |
|
|
9 |
|
Patch0: root-5.18-00-libpng |
10 |
|
Patch1: root-5.21-04-CINT-maxlongline |
24 |
|
Patch15: root-5.22-00d-fireworks5 |
25 |
|
|
26 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
27 |
– |
%define pythonv %(echo $PYTHON_VERSION | cut -d. -f1,2) |
27 |
|
|
28 |
|
Requires: gccxml gsl castor libjpg dcap pcre python |
29 |
|
|
83 |
|
|
84 |
|
mkdir -p %i |
85 |
|
export ROOTSYS=%_builddir/root |
86 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
87 |
|
|
88 |
|
%if "%online" == "true" |
89 |
|
# Build without mysql, and use system qt. |
109 |
|
--disable-builtin-freetype |
110 |
|
--disable-builtin-zlib |
111 |
|
--with-gccxml=${GCCXML_ROOT} |
112 |
< |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python2.4 |
112 |
> |
--enable-python --with-python-libdir=${PYTHON_ROOT}/lib --with-python-incdir=${PYTHON_ROOT}/include/python${PYTHONV} |
113 |
|
--enable-explicitlink |
114 |
|
--enable-mathmore |
115 |
|
--enable-reflex |
384 |
|
%{relocateConfig}etc/scram.d/rootminuit2 |
385 |
|
%{relocateConfig}etc/scram.d/rootrflx |
386 |
|
%{relocateConfig}etc/scram.d/roothtml |
387 |
– |
%{relocateConfig}etc/scram.d/rootroofit |
387 |
|
%{relocateConfig}etc/scram.d/rootmlp |
388 |
|
%{relocateConfig}etc/scram.d/roottmva |
389 |
|
%{relocateConfig}etc/scram.d/rootthread |