commit ae714ccd502b1ffe6503f300d02c463303bdf4fc
Author: Jan Palus <[email protected]>
Date:   Sat Mar 6 14:02:36 2021 +0100

    set -fallow-argument-mismatch with gfortran >= 10
    
    see https://github.com/scipy/scipy/pull/11842

 python-scipy.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/python-scipy.spec b/python-scipy.spec
index 0cbac34..34bac4b 100644
--- a/python-scipy.spec
+++ b/python-scipy.spec
@@ -22,7 +22,7 @@ URL:          https://www.scipy.org/
 BuildRequires: blas-devel >= 3.6.0
 BuildRequires: gcc-fortran
 BuildRequires: lapack-devel >= 3.6.0
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 1.750
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 %if %{with python2}
@@ -100,7 +100,10 @@ Dokumentacja API moduĊ‚u SciPy.
 # instead of appending proper options (like -shared)
 CFLAGS="%{rpmcflags}"
 LDFLAGS="%{rpmldflags} -shared"
-export CFLAGS LDFLAGS
+%if %{_ver_ge %(rpm -q --qf='%%{VERSION}' gcc-fortran) 10}
+FFLAGS="-fallow-argument-mismatch"
+%endif
+export CFLAGS LDFLAGS FFLAGS
 
 export BLAS=%{_libdir}
 export LAPACK=%{_libdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-scipy.git/commitdiff/ae714ccd502b1ffe6503f300d02c463303bdf4fc

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to