1 |
< |
### RPM lcg root 5.27.02 |
1 |
> |
### RPM lcg root 5.27.06 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python |
3 |
< |
## INITENV SET ROOTSYS %i |
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 |
|
%define closingbrace ) |
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.22-00-TMVA-shut-the-hell-up-for-once |
11 |
< |
Patch2: root-5.22-00a-roofit-silence-static-printout |
12 |
< |
Patch3: root-5.22-00d-linker-gnu-hash-style |
13 |
< |
Patch4: root-5.26-00a-CINT-maxlongline |
14 |
< |
Patch5: root-5.26-00a-silence-TMVA |
15 |
< |
Patch6: root-5.22-00d-TBranchElement-dropped-data-member |
9 |
> |
Patch0: root-5.27-06-externals |
10 |
> |
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
11 |
> |
Patch2: root-5.22-00a-roofit-silence-static-printout |
12 |
> |
Patch3: root-5.22-00d-linker-gnu-hash-style |
13 |
> |
Patch4: root-5.22-00d-TBranchElement-dropped-data-member |
14 |
> |
Patch5: root-5.27-06-fireworks9 |
15 |
|
|
16 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
17 |
|
|
18 |
< |
Requires: gccxml gsl castor libjpg dcap pcre python |
20 |
< |
|
18 |
> |
Requires: xrootd gccxml gsl castor libjpg dcap pcre python |
19 |
|
%if "%online" != "true" |
20 |
< |
Requires: qt openssl libpng zlib libungif xrootd |
23 |
< |
%else |
24 |
< |
%define skiplibtiff true |
25 |
< |
%endif |
26 |
< |
|
27 |
< |
%if "%cpu" == "amd64" |
28 |
< |
%define skiplibtiff true |
29 |
< |
%endif |
30 |
< |
|
31 |
< |
%if "%skiplibtiff" != "true" |
32 |
< |
Requires: libtiff |
20 |
> |
Requires: qt openssl libpng zlib libungif libtiff |
21 |
|
%endif |
22 |
|
|
23 |
|
%prep |
25 |
|
%patch0 -p1 |
26 |
|
%patch1 -p1 |
27 |
|
%patch2 -p1 |
28 |
< |
%patch3 -p1 |
28 |
> |
# patch3 is OS version dependent, see below |
29 |
|
%patch4 -p1 |
30 |
|
%patch5 -p1 |
31 |
< |
%patch6 -p1 |
31 |
> |
|
32 |
> |
# The following patch can only be applied on SLC5 or later (extra linker |
33 |
> |
# options only available with the SLC5 binutils) |
34 |
> |
case %cmsplatf in |
35 |
> |
slc5_* | slc5onl_* ) |
36 |
> |
%patch3 -p1 |
37 |
> |
;; |
38 |
> |
esac |
39 |
|
|
40 |
|
%build |
41 |
|
|
42 |
|
mkdir -p %i |
43 |
+ |
export LIBJPG_ROOT |
44 |
|
export ROOTSYS=%_builddir/root |
45 |
|
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
46 |
|
|
48 |
|
# Use system qt. Also skip xrootd and odbc for online case: |
49 |
|
|
50 |
|
EXTRA_CONFIG_ARGS="--with-f77=/usr |
55 |
– |
--disable-xrootd |
51 |
|
--disable-odbc |
52 |
< |
--disable-qt --disable-qtgsi" |
52 |
> |
--disable-qt --disable-qtgsi --disable-astiff" |
53 |
|
%else |
54 |
+ |
export LIBPNG_ROOT ZLIB_ROOT LIBTIFF_ROOT LIBUNGIF_ROOT |
55 |
|
EXTRA_CONFIG_ARGS="--with-f77=${GCC_ROOT} |
60 |
– |
--with-xrootd=$XROOTD_ROOT |
56 |
|
--enable-qt --with-qt-libdir=${QT_ROOT}/lib --with-qt-incdir=${QT_ROOT}/include |
57 |
|
--with-ssl-incdir=${OPENSSL_ROOT}/include |
58 |
|
--with-ssl-libdir=${OPENSSL_ROOT}/lib |
72 |
|
--enable-minuit2 |
73 |
|
--disable-ldap |
74 |
|
--disable-krb5 |
75 |
+ |
--with-xrootd=${XROOTD_ROOT} |
76 |
|
--with-gsl-incdir=${GSL_ROOT}/include |
77 |
|
--with-gsl-libdir=${GSL_ROOT}/lib |
78 |
|
--with-dcap-libdir=${DCAP_ROOT}/lib |
83 |
|
|
84 |
|
case $(uname)-$(uname -m) in |
85 |
|
Linux-x86_64) |
86 |
< |
./configure linuxx8664gcc $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift --disable-astiff;; |
86 |
> |
./configure linuxx8664gcc $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
87 |
|
Linux-i*86) |
88 |
< |
./configure linux $CONFIG_ARGS --with-shift-libdir=${CASTOR_ROOT}/lib --with-shift-incdir=${CASTOR_ROOT}/include/shift;; |
88 |
> |
./configure linux $CONFIG_ARGS --with-rfio-libdir=${CASTOR_ROOT}/lib --with-rfio-incdir=${CASTOR_ROOT}/include/shift --with-castor-libdir=${CASTOR_ROOT}/lib --with-castor-incdir=${CASTOR_ROOT}/include/shift ;; |
89 |
|
Darwin*) |
90 |
< |
./configure macosx $CONFIG_ARGS --disable-rfio --disable-builtin_afterimage ;; |
90 |
> |
case %cmsplatf in |
91 |
> |
*_ia32_* ) |
92 |
> |
comparch=i386 ;; |
93 |
> |
*_amd64_* ) |
94 |
> |
comparch=x86_64 ;; |
95 |
> |
* ) |
96 |
> |
comparch=ppc ;; |
97 |
> |
esac |
98 |
> |
export CC="gcc -arch $comparch" CXX="g++ -arch $comparch" |
99 |
> |
./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
100 |
|
Linux-ppc64*) |
101 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
102 |
|
esac |
129 |
|
make INSTALL="$cp" INSTALLDATA="$cp" install |
130 |
|
mkdir -p $ROOTSYS/lib/python |
131 |
|
cp -r cint/reflex/python/genreflex $ROOTSYS/lib/python |
127 |
– |
# |
132 |
|
|
133 |
|
# SCRAM ToolBox toolfile |
134 |
|
mkdir -p %i/etc/scram.d |
168 |
|
|
169 |
|
# roothistmatrix toolfile |
170 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/roothistmatrix.xml |
171 |
< |
<tool name="roothistmatrix" version="%v"> |
171 |
> |
<tool name="roothistmatrix" version="%v"> |
172 |
|
<info url="http://root.cern.ch/root/"/> |
173 |
|
<lib name="Hist"/> |
174 |
|
<lib name="Matrix"/> |
178 |
|
|
179 |
|
# rootgpad toolfile |
180 |
|
cat << \EOF_TOOLFILE >%i/etc/scram.d/rootgpad.xml |
181 |
< |
<tool name="rootgpad" version="%v"> |
181 |
> |
<tool name="rootgpad" version="%v"> |
182 |
|
<info url="http://root.cern.ch/root/"/> |
183 |
|
<lib name="Gpad"/> |
184 |
|
<lib name="Graf"/> |
322 |
|
|
323 |
|
%post |
324 |
|
perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|g" $(find $RPM_INSTALL_PREFIX/%pkgrel/etc/scram.d -type f) |
325 |
+ |
|