Tweak spec file to selectively apply arch patches

This commit is contained in:
Deji Akingunola 2011-09-01 21:14:14 -04:00
parent 6e9c4c1580
commit 1baaf569a9

View File

@ -234,7 +234,7 @@ optimizations for the z10 architecture.
%global mode %{__isa_bits} %global mode %{__isa_bits}
%ifarch %{arm} %ifarch %{arm}
%define arch_option -A 33 %define arch_option -A 38
%define threads_option -t 2 %define threads_option -t 2
%global mode ' ' %global mode ' '
%endif %endif
@ -242,8 +242,12 @@ optimizations for the z10 architecture.
%prep %prep
%setup -q -n ATLAS %setup -q -n ATLAS
%patch0 -p0 -b .shared %patch0 -p0 -b .shared
%ifarch s390 s390x
%patch1 -p1 -b .s390 %patch1 -p1 -b .s390
%endif
%ifarch %{arm}
%patch2 -p0 -b .arm %patch2 -p0 -b .arm
%endif
cp %{SOURCE1} CONFIG/ARCHS/ cp %{SOURCE1} CONFIG/ARCHS/
cp %{SOURCE2} CONFIG/ARCHS/ cp %{SOURCE2} CONFIG/ARCHS/
cp %{SOURCE3} doc cp %{SOURCE3} doc
@ -660,7 +664,7 @@ fi
%changelog %changelog
* Thu Sep 01 2011 Deji Akingunola <dakingun@gmail.com> - 3.8.4-3 * Thu Sep 01 2011 Deji Akingunola <dakingun@gmail.com> - 3.8.4-3
- Aply patch to enable arm build (Patch provided by Jitesh Shah <jiteshs@marvell.com>) - Apply patch to enable arm build (Patch provided by Jitesh Shah <jiteshs@marvell.com>)
- Stop turning off throttle checking, upstream frown at it (seems O.K. for Koji) - Stop turning off throttle checking, upstream frown at it (seems O.K. for Koji)
* Mon Jun 20 2011 Dan Horák <dan[at]danny.cz> - 3.8.4-2 * Mon Jun 20 2011 Dan Horák <dan[at]danny.cz> - 3.8.4-2