From c86dfc33b1aedaee7effd983f0767497788c6b70a4bc068be89b6cd2f17a2a45 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 9 Jan 2024 17:41:49 +0000 Subject: [PATCH] - Don't use ifarch and ifnarch in noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=45 --- python-librosa.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python-librosa.spec b/python-librosa.spec index 913b212..a116401 100644 --- a/python-librosa.spec +++ b/python-librosa.spec @@ -1,7 +1,7 @@ # # spec file for package python-librosa # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -104,7 +104,8 @@ donttest="test_display" # fails with current Tumbleweed donttest+=" or test_pyin_multi_center" # Overflow on 32-bit -%ifnarch x86_64 aarch64 ppc64le +# can not use "ifarch" when BuildArch is set to noarch +%if "%_arch" != "x86_64" && "%_arch" != "aarch64" && "%_arch" != "ppc64le" donttest+=" or test_tempo or test_hybrid_cqt or test_stft_winsizes" donttest+=" or test_istft_reconstruction or test_trim" donttest+=" or test_multichannel" @@ -119,13 +120,13 @@ donttest+=" or (test_nnls_multiblock and 256)" donttest+=" or (test_rms and (4096 or 4097))" donttest+=" or test_tonnetz_audio" %endif -%ifarch aarch64 +%if "%_arch" == "aarch64" donttest+=" or test_piptrack_errors" donttest+=" or test_match_events_onesided" donttest+=" or test_yin" donttest+=" or test_yin_tone" %endif -%ifarch ppc64le +%if "%_arch" == "ppc64le" donttest+=" or test_cqt" %endif # Flaky segfaults when run in parallel, upstream does not test with xdist