[atlas] Tweak spec file to selectively apply arch patches

Deji Akingunola deji at fedoraproject.org
Fri Sep 2 01:11:52 UTC 2011


commit 1baaf569a99930552103fa3e5da55f5a5d1a61b9
Author: Deji Akingunola <dakingun at mail.com>
Date:   Thu Sep 1 21:14:14 2011 -0400

    Tweak spec file to selectively apply arch patches

 atlas.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/atlas.spec b/atlas.spec
index 9edce16..87dd914 100644
--- a/atlas.spec
+++ b/atlas.spec
@@ -234,7 +234,7 @@ optimizations for the z10 architecture.
 
 %global mode %{__isa_bits}
 %ifarch %{arm}
-%define arch_option -A 33
+%define arch_option -A 38
 %define threads_option -t 2
 %global mode ' '
 %endif
@@ -242,8 +242,12 @@ optimizations for the z10 architecture.
 %prep
 %setup -q -n ATLAS
 %patch0 -p0 -b .shared
+%ifarch s390 s390x
 %patch1 -p1 -b .s390
+%endif
+%ifarch %{arm}
 %patch2 -p0 -b .arm
+%endif
 cp %{SOURCE1} CONFIG/ARCHS/
 cp %{SOURCE2} CONFIG/ARCHS/
 cp %{SOURCE3} doc
@@ -660,7 +664,7 @@ fi
 
 %changelog
 * Thu Sep 01 2011 Deji Akingunola <dakingun at gmail.com> - 3.8.4-3
-- Aply patch to enable arm build (Patch provided by Jitesh Shah <jiteshs at marvell.com>)
+- Apply patch to enable arm build (Patch provided by Jitesh Shah <jiteshs at marvell.com>)
 - 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


More information about the scm-commits mailing list