From b435ec8e8d59bdeff83e0de9c8c034c757950838 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Oct 13 2015 21:51:42 +0000 Subject: Disable FMA support to get it pass all tests on secondary architectures --- diff --git a/alglib.spec b/alglib.spec index 0d427d9..3de7aac 100644 --- a/alglib.spec +++ b/alglib.spec @@ -1,6 +1,6 @@ Name: alglib Version: 3.9.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A numerical analysis and data processing library License: GPLv2+ @@ -12,9 +12,6 @@ Source2: bsd.txt BuildRequires: cmake -# As upstream doesn't support other archs, and package fails to build on secondary archs due test failure -ExclusiveArch: %{ix86} %{arm} x86_64 - %description ALGLIB is a cross-platform numerical analysis and data processing library. ALGLIB features include: @@ -59,6 +56,11 @@ sed -i 's|\r||g' manual.cpp.html mkdir build ( cd build +# disable FMA support to get it pass all tests +%ifarch aarch64 %{power64} s390 s390x +export CXXFLAGS="%{optflags} -ffp-contract=off" +export CFLAGS="%{optflags} -ffp-contract=off" +%endif %cmake -DALGLIB_VERSION=%{version} .. make %{?_smp_mflags} ) @@ -94,6 +96,9 @@ popd %changelog +* Tue Oct 13 2015 Sandro Mani - 3.9.0-2 +- Disable FMA support to get it pass all tests on secondary architectures + * Sat Dec 13 2014 Sandro Mani - 3.9.0-1 - Update to 3.9.0 - Use version as library name suffix, not as soname