diff --git a/qrupdate-gcc10.patch b/qrupdate-gcc10.patch new file mode 100644 index 0000000..c59363e --- /dev/null +++ b/qrupdate-gcc10.patch @@ -0,0 +1,33 @@ +From 9acdea766fe924c4a43a627653a6f48bc26dbe95 Mon Sep 17 00:00:00 2001 +From: root +Date: Mon, 2 Aug 2021 11:35:55 +0800 +Subject: [PATCH] qrupdate-gcc10 + +--- + test/utils.f | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/utils.f b/test/utils.f +index 5cffb51..cdc6941 100644 +--- a/test/utils.f ++++ b/test/utils.f +@@ -60,14 +60,14 @@ c + + subroutine crandg(m,n,x,ldx) + integer m,n,ldx +- complex x(ldx,*) ++ real x(ldx,*) + external srandg + call srandg(2*m,n,x,2*ldx) + end subroutine + + subroutine zrandg(m,n,x,ldx) + integer m,n,ldx +- double complex x(ldx,*) ++ double precision x(ldx,*) + external srandg + call drandg(2*m,n,x,2*ldx) + end subroutine +-- +2.23.0 + diff --git a/qrupdate.spec b/qrupdate.spec index 078db7d..3afc105 100644 --- a/qrupdate.spec +++ b/qrupdate.spec @@ -1,11 +1,13 @@ Name: qrupdate Version: 1.1.2 -Release: 1 +Release: 2 Summary: A Fortran library for fast updates of QR and Cholesky decompositions License: GPLv3+ URL: http://qrupdate.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Patch0: qrupdate-gcc10.patch + BuildRequires: gcc-gfortran BuildRequires: openblas-devel @@ -24,6 +26,7 @@ This package contains the development libraries for %{name}. %prep %setup -q +%autosetup -p1 # Modify install location sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile @@ -50,5 +53,8 @@ make test FC=gfortran FFLAGS="%{optflags} -fimplicit-none -funroll-loops" BLAS=" %changelog +* Mon Aug 02 2021 wangyong - 1.1.2-2 +- Fix build error caused by GCC upgrade to GCC-10 + * Tue May 05 2020 Hubble Zhu - 1.1.2-1 - First release.