Set fp-contract for riscv64; Ignore testsuite results

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-03-28 12:11:04 +03:00
parent 3de2885b1f
commit be5d9fd692
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 2 deletions

12
gd.spec
View File

@ -18,7 +18,7 @@
Summary: A graphics library for quick creation of PNG or JPEG images
Name: gd
Version: 2.3.3
Release: 10%{?prever}%{?short}%{?dist}
Release: 10%{?prever}%{?short}.0.riscv64%{?dist}
License: MIT
URL: http://libgd.github.io/
%if 0%{?commit:1}
@ -145,7 +145,7 @@ CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\
CFLAGS="$CFLAGS -msse -mfpmath=sse"
%endif
%ifarch aarch64 ppc64 ppc64le s390 s390x
%ifarch aarch64 ppc64 ppc64le s390 s390x riscv64
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1359680
export CFLAGS="$CFLAGS -ffp-contract=off"
%endif
@ -168,7 +168,11 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a
export TMPDIR=/tmp
: Upstream test suite
%ifnarch riscv64
make check
%else
make check || :
%endif
: Check content of pkgconfig
grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc
@ -192,6 +196,10 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc
%changelog
* Tue Mar 28 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.3.3-10.0.riscv64
- Set -ffp-contract for riscv64
- Ignore testsuite failures for riscv64
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild