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 |
+ |
%define ismac %(case %cmsplatf in osx*%closingbrace echo true;; *%closingbrace e |
9 |
+ |
cho false;; esac) |
10 |
|
|
11 |
|
Patch0: root-5.27-06-externals |
12 |
|
Patch1: root-5.27-04-CINT-maxlongline-maxtypedef |
20 |
|
Patch9: root-5.27-06b-r36572 |
21 |
|
Patch10: root-5.27-06b-r36707 |
22 |
|
Patch11: root-5.27-06b-r36594 |
23 |
+ |
Patch12: root-5.27-06b-tmva-MethodBase-initvar |
24 |
+ |
Patch13: root-5.27-06b-tmva_Event_dynamic_hack |
25 |
|
|
26 |
|
%define cpu %(echo %cmsplatf | cut -d_ -f2) |
27 |
|
|
28 |
< |
Requires: xrootd gccxml gsl castor libjpg dcap pcre python fftw3 |
29 |
< |
%if "%online" != "true" |
30 |
< |
Requires: qt openssl libpng zlib libungif libtiff |
28 |
> |
Requires: gccxml gsl libjpg libpng libtiff libungif pcre python fftw3 |
29 |
> |
|
30 |
> |
%if "%ismac" == "false" |
31 |
> |
Requires: castor dcap |
32 |
> |
%endif |
33 |
> |
|
34 |
> |
%if "%online-%ismac" == "false-true" |
35 |
> |
Requires: openssl zlib gfortran-macosx |
36 |
> |
%endif |
37 |
> |
|
38 |
> |
%if "%online-%ismac" == "false-false" |
39 |
> |
Requires: openssl zlib qt xrootd |
40 |
|
%endif |
41 |
|
|
42 |
|
%prep |
53 |
|
%patch9 -p1 |
54 |
|
%patch10 -p1 |
55 |
|
%patch11 -p1 |
56 |
+ |
%patch12 -p1 |
57 |
+ |
%patch13 -p1 |
58 |
|
|
59 |
|
# The following patch can only be applied on SLC5 or later (extra linker |
60 |
|
# options only available with the SLC5 binutils) |
119 |
|
Darwin*) |
120 |
|
case %cmsplatf in |
121 |
|
*_ia32_* ) |
122 |
< |
comparch=i386 ;; |
122 |
> |
comparch=i386 |
123 |
> |
macconfig=macosx |
124 |
> |
;; |
125 |
|
*_amd64_* ) |
126 |
< |
comparch=x86_64 ;; |
126 |
> |
comparch=x86_64 |
127 |
> |
macconfig=macosx64 |
128 |
> |
;; |
129 |
|
* ) |
130 |
< |
comparch=ppc ;; |
130 |
> |
comparch=ppc |
131 |
> |
macconfig=macosx |
132 |
> |
;; |
133 |
|
esac |
134 |
|
export CC="gcc -arch $comparch" CXX="g++ -arch $comparch" |
135 |
< |
./configure macosx $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
135 |
> |
./configure $macconfig $CONFIG_ARGS --with-cc="$CC" --with-cxx="$CXX" --disable-rfio --disable-builtin_afterimage ;; |
136 |
|
Linux-ppc64*) |
137 |
|
./configure linux $CONFIG_ARGS --disable-rfio;; |
138 |
|
esac |