diff --git a/python-fslpy.spec b/python-fslpy.spec index 449347f..d039428 100644 --- a/python-fslpy.spec +++ b/python-fslpy.spec @@ -10,7 +10,7 @@ FSLeyes. Name: python-%{srcname} Version: 3.2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The FSL Python Library @@ -92,6 +92,15 @@ rm -frv html/.doctrees rm -rfv %{buildroot}/%{python3_sitelib}/tests/ %check +# For F < 33: ppc64le bug with numpy, pillow +# https://bugzilla.redhat.com/show_bug.cgi?id=1738752 +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/BEKJIVVK4D73RAV6C26ZBV47S4R7DULX/ +%if %{_arch} == "ppc64le" +%if 0%{?fedora} < 33 +export LD_PRELOAD=/lib64/libgomp.so.1 +%endif +%endif + %if %{with xvfb_tests} # From https://git.fmrib.ox.ac.uk/fsl/fslpy/blob/master/.ci/test_template.sh xvfb-run pytest-3 tests/test_idle.py @@ -107,7 +116,16 @@ xvfb-run pytest-3 tests/test_platform.py || exit 0 # Ignore test using dcm2niix # Ignore failing test: https://github.com/pauldmccarthy/fslpy/issues/10 pytest-3 tests -m "not longtest" \ ---ignore=tests/test_idle.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py --ignore=tests/test_atlases.py --ignore=tests/test_atlases_query.py --ignore=tests/test_scripts/test_atlasq_list_summary.py --ignore=tests/test_scripts/test_atlasq_ohi.py --ignore=tests/test_scripts/test_atlasq_query.py --ignore=tests/test_callfsl.py --ignore=tests/test_mesh.py --ignore=tests/test_dicom.py --ignore=tests/test_parse_data.py --ignore=tests/test_scripts/test_fsl_apply_x5.py + --ignore=tests/test_idle.py --ignore=tests/test_platform.py \ + --ignore=tests/test_immv_imcp.py --ignore=tests/test_atlases.py \ + --ignore=tests/test_atlases_query.py \ + --ignore=tests/test_scripts/test_atlasq_list_summary.py \ + --ignore=tests/test_scripts/test_atlasq_ohi.py \ + --ignore=tests/test_scripts/test_atlasq_query.py --ignore=tests/test_callfsl.py \ + --ignore=tests/test_mesh.py --ignore=tests/test_dicom.py \ + --ignore=tests/test_parse_data.py \ + --ignore=tests/test_scripts/test_fsl_apply_x5.py + %files -n python3-%{srcname} %license LICENSE COPYRIGHT @@ -129,6 +147,9 @@ pytest-3 tests -m "not longtest" \ %doc html %changelog +* Mon Sep 07 2020 Ankur Sinha - 3.2.2-2 +- Add workaround to fix tests + * Fri Sep 04 2020 Ankur Sinha - 3.2.2-1 - Update to new release