diff --git a/scipy.spec b/scipy.spec index 9029db192fb36c9ca2716b7578e275f628204353..2ebc676c94138036aad98f37b6c6f3c3d4e565f5 100644 --- a/scipy.spec +++ b/scipy.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 # without means enabled %bcond_with doc @@ -128,7 +128,11 @@ rm $(grep -rl '/\* Generated by Cython') PKG-INFO %build for PY in %{python3_version}; do env CFLAGS="$RPM_OPT_FLAGS -lm" \ + %if 0%{?_gcc_version} >= 10 FFLAGS="$RPM_OPT_FLAGS -fPIC -cpp -fallow-argument-mismatch" \ + %else + FFLAGS="$RPM_OPT_FLAGS -fPIC -cpp" \ + %endif LDFLAGS="$RPM_LD_FLAGS -shared" \ %ifarch %{openblas_arches} OPENBLAS=%{_libdir} \ @@ -203,6 +207,9 @@ popd %endif %changelog +* Sun Jun 25 2023 Ren Bo - 1.3.1-4.0.2 +- Change -fallow-argument-mismatch flag condition for build failure + * Fri Aug 05 2022 DengXiewei - 1.3.1-4.0.1 - Adding -fallow-argument-mismatch workaround for build failure with gfortran 10