From bad8b5c8ad0c285ee84e04388ad463e107292f07218b5dcdf06d87aec2d8ed09 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 17 Feb 2023 11:00:13 +0000 Subject: [PATCH] - need to turn off noarch to be able to skip tests on 32bit arches OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astunparse?expand=0&rev=14 --- python-astunparse.changes | 5 +++++ python-astunparse.spec | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/python-astunparse.changes b/python-astunparse.changes index abbba69..9d85966 100644 --- a/python-astunparse.changes +++ b/python-astunparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 17 10:59:59 UTC 2023 - Dirk Müller + +- need to turn off noarch to be able to skip tests on 32bit arches + ------------------------------------------------------------------- Thu Feb 16 22:39:53 UTC 2023 - Dirk Müller diff --git a/python-astunparse.spec b/python-astunparse.spec index 47874d4..ebf20d0 100644 --- a/python-astunparse.spec +++ b/python-astunparse.spec @@ -36,7 +36,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six >= 1.6.1 Requires: python-wheel >= 0.23.0 -BuildArch: noarch %python_subpackages %description @@ -62,11 +61,9 @@ Added to this is a pretty-printing dump utility function. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%check -%ifarch %ix86 %arm32 # fails to parse the 32bit stdlib -%pyunittest discover -v || : -%else +%if "%_lib" == "lib64" +%check %pyunittest discover -v %endif