From 7cd1a8e43cf715f348368aa9cd4298234e3b59c0137a74a55968e9ecaec05f5a Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Wed, 13 Oct 2021 15:15:36 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:telephony/broadvoice32?expand=0&rev=3 --- broadvoice32.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/broadvoice32.spec b/broadvoice32.spec index e90d32e..a20daa0 100644 --- a/broadvoice32.spec +++ b/broadvoice32.spec @@ -83,6 +83,11 @@ rm -r %{buildroot}%{_includedir}/bv32-floatingpoint %check %if 0%{?tools} +%ifarch s390x ppc64 %sparc %sparc64 +%define endianness BigEndian +%else +%define endianness LittleEndian +%endif cd FloatingPoint/process #return failure if TestBroadVoice32 fails echo 'exit $checksum' >>TestBroadVoice32 @@ -93,13 +98,8 @@ grep -qF DG192BITSTREAM=0 ../meson.build && \ sed -i '/cmp tv.bv32.bfe10.raw tv.bv32.bfe10.ref.raw/,/fi/d' TestBroadVoice32 && \ sed -i '/cmp tvbe.bv32 tvbe.bv32.ref/,/fi/d' TestBroadVoice32 && \ sed -i '/cmp tvbe.bv32.bfe10.raw tvbe.bv32.bfe10.ref.raw/,/fi/d' TestBroadVoice32 -%ifarch s390x ppc64 %sparc %sparc64 PATH=%{buildroot}%{_bindir}:$PATH LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ - bash TestBroadVoice32 BigEndian -%else -PATH=%{buildroot}%{_bindir}:$PATH LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ - bash TestBroadVoice32 LittleEndian -%endif + bash TestBroadVoice32 %endianness %endif %if 0%{?shared}