diff -ruN python-peak-rules-0.5a1.dev-9.2582.1.el6.src.rpm-rpmbuild/SPECS/python-peak-rules.spec python-peak-rules-0.5a1.dev-9.2582.1.el6.0.src.rpm-rpmbuild/SPECS/python-peak-rules.spec
--- python-peak-rules-0.5a1.dev-9.2582.1.el6.src.rpm-rpmbuild/SPECS/python-peak-rules.spec	2009-12-04 01:13:04.000000000 +0000
+++ python-peak-rules-0.5a1.dev-9.2582.1.el6.0.src.rpm-rpmbuild/SPECS/python-peak-rules.spec	2011-12-15 23:41:31.000000000 +0000
@@ -13,7 +13,7 @@
 # Release:0.3.a1.dev%{devrev}%{?dist}
 # But we can't do that yet because it breaks the upgrade path.
 # When version hits 0.5.1 or 0.6 we can correct this.
-Release:        9.%{devrev}.1%{?dist}
+Release:        9.%{devrev}.1%{?dist}.0
 Summary:        Generic functions and business rules support systems
 
 Group:          Development/Languages
@@ -25,7 +25,6 @@
 Patch2:         %{name}-x86_64-doctest.patch
 Patch3:         %{name}-py26-deprecation.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:      noarch
 
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools-devel
@@ -64,7 +63,10 @@
 
 %check
 # Disable checks on s390x for now, see bugzilla #495874 
-%ifnarch s390x
+echo "_target_cpu: %{_target_cpu} "
+echo "__isa_name:  %{__isa_name} "
+echo "_host_cpu:   %{_host_cpu} "
+%ifnarch s390x %{arm}
 %{__python} setup.py test
 %endif
 
@@ -77,6 +79,10 @@
 %{python_sitelib}/*
 
 %changelog
+* Thu Dec 15 2011 Gordan Bobic <gordan@bobich.net> - 0.5a1.dev-9.2582.1.0
+- Add %{arm} to list of platforms to exclude from tests due to rhbz #495874
+- Fix %ifnarch not working because BuildArch overrides %{_target_cpu}
+
 * Mon Nov 30 2009 Dennis Gregorovic <dgregor@redhat.com> - 0.5a1.dev-9.2582.1
 - Rebuilt for RHEL 6
 
