fix lapack devel build error

This commit is contained in:
zhouwenpei 2021-12-06 17:30:51 +08:00
parent 9c64fad4d6
commit dfcfc843fa
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,22 @@
From 39333a8126c1b25b5fc2fb556c4796422a91bc01 Mon Sep 17 00:00:00 2001
From: zhouwenpei <zhouwenpei1@huawei.com>
Date: Mon, 6 Dec 2021 15:23:13 +0800
Subject: [PATCH] fix lapack-devel build error
---
LAPACKE/lapacke.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in
index 0097c25..c1d806b 100644
--- a/LAPACKE/lapacke.pc.in
+++ b/LAPACKE/lapacke.pc.in
@@ -7,4 +7,4 @@ Version: @LAPACK_VERSION@
URL: http://www.netlib.org/lapack/#_standard_c_language_apis_for_lapack
Libs: -L${libdir} -l@LAPACKELIB@
Cflags: -I${includedir}
-Requires.private: @LAPACKLIB@
+Requires.private: lapack
--
2.30.0

View File

@ -5,13 +5,15 @@
Name: lapack Name: lapack
Version: %{mediumver}.0 Version: %{mediumver}.0
Release: 1 Release: 2
Summary: The LAPACK libraries for numerical linear algebra. Summary: The LAPACK libraries for numerical linear algebra.
License: BSD License: BSD
URL: http://www.netlib.org/lapack/ URL: http://www.netlib.org/lapack/
Source0: https://github.com/Reference-LAPACK/lapack/archive/v%{version}.tar.gz Source0: https://github.com/Reference-LAPACK/lapack/archive/v%{version}.tar.gz
Source1: http://www.netlib.org/lapack/manpages.tgz Source1: http://www.netlib.org/lapack/manpages.tgz
Patch1: 0001-fix-lapack-devel-build-error.patch
BuildRequires: gcc-gfortran BuildRequires: gcc-gfortran
Provides: blas = %{version}-%{release} Provides: blas = %{version}-%{release}
Obsoletes: blas < %{version}-%{release} Obsoletes: blas < %{version}-%{release}
@ -205,6 +207,9 @@ sed -i 's|@LAPACK_VERSION@|%{version}|g' %{buildroot}%{_libdir}/pkgconfig/lapack
%endif %endif
%changelog %changelog
* Mon Dec 6 2021 zhouwenpei <zhouwenpei1huawei.com> - 3.10.0-2
- fix lapack-devel build error
* Mon Nov 29 2021 zhouwenpei <zhouwenpei1huawei.com> - 3.10.0-1 * Mon Nov 29 2021 zhouwenpei <zhouwenpei1huawei.com> - 3.10.0-1
- update verion to 3.10.0 - update verion to 3.10.0