import UBI scipy-1.5.4-5.module+el8.9.0+19644+d68f775d

This commit is contained in:
eabdullin 2023-11-15 02:21:32 +00:00
parent b72fec662d
commit 08e17fb3dd
1 changed files with 34 additions and 3 deletions

View File

@ -11,7 +11,7 @@
Summary: Scientific Tools for Python
Name: scipy
Version: 1.5.4
Release: 3%{?dist}
Release: 5%{?dist}
# BSD -- whole package except:
# Boost -- scipy/special/cephes/scipy_iv.c
@ -112,8 +112,6 @@ for PY in %{python3_version}; do
env CFLAGS="$RPM_OPT_FLAGS -lm" \
FFLAGS="$RPM_OPT_FLAGS -fPIC -cpp" \
LDFLAGS="$RPM_LD_FLAGS -shared" \
OPENBLAS=%{_libdir} \
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
%{_bindir}/python$PY setup.py config_fc \
--fcompiler=gnu95 --noarch \
build
@ -154,6 +152,31 @@ export PYTEST_ADDOPTS="-k '\
not test_pdf_logpdf_weighted'"
%endif
# Those tests fail on koji/brew for ppc64le but pass
# locally for that architecture
%ifarch ppc64le
export PYTEST_ADDOPTS="-k '\
not TestFFTConvolve and \
not TestDoubleFFT and \
not TestSingleFFT and \
not TestDoubleIFFT and \
not TestSingleIFFT and \
not test_tpsv and \
not TestLinear and \
not test_Mx1_economic and \
not test_hegst and \
not test_tpqrt_tpmqrt and \
not test_pteqr and \
not test_against_numpy_convolve and \
not test_convolve_method and \
not test_rank1 and \
not test_splu_smoketest and \
not test_spilu_smoketest and \
not test_threads_parallel and \
not test_hermitian and \
not test_convergence'"
%endif
pushd %{buildroot}/%{python3_sitearch}
%{pytest} scipy
# Remove test remnants
@ -174,6 +197,14 @@ popd
%endif
%changelog
* Fri Jul 14 2023 Charalampos Stratakis <cstratak@redhat.com> - 1.5.4-5
- Skip some tests that fail on the ppc64le builders
- Resolves: rhbz#2217858
* Fri Jul 14 2023 Charalampos Stratakis <cstratak@redhat.com> - 1.5.4-4
- Remove RPATH from certain shared object files
- Resolves: rhbz#2222715
* Mon Jan 18 2021 Tomas Orsava <torsava@redhat.com> - 1.5.4-3
- Specify LDFLAGS explicitly
- Force preprocessing of Fortran sources to make annobin record proper flags