diff --git a/libmysofa.spec b/libmysofa.spec index cc9f203..a22429e 100644 --- a/libmysofa.spec +++ b/libmysofa.spec @@ -1,3 +1,14 @@ +# Some tests are failing: +# https://github.com/hoene/libmysofa/issues/129 +%ifarch s390x +%global _without_tests 1 +%endif +%if 0%{?el7:1} +%ifarch ppc64le +%global _without_tests 1 +%endif +%endif + Name: libmysofa Version: 1.1 Release: 1%{?dist} @@ -15,7 +26,7 @@ BuildRequires: gcc-c++ BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(zlib) # for tests -BuildRequires: nodejs +%{?!_without_tests:BuildRequires: nodejs} %description @@ -59,9 +70,11 @@ cd build %make_install +%{?!_without_tests: %check cd build -make test +make test || (cat Testing/Temporary/LastTest.log && exit 1) +} %ldconfig_scriptlets