Patch soname (5 -> 5.2) of shared library

epel9
sagitter 7 years ago
parent 358318a41c
commit 87174c209e

@ -0,0 +1,11 @@
--- a/SRC/CMakeLists.orig.txt 2018-04-25 15:17:39.786715000 +0200
+++ b/SRC/CMakeLists.txt 2018-04-25 15:25:00.253317607 +0200
@@ -230,7 +230,7 @@
target_link_libraries(superlu ${BLAS_LIB} m)
set_target_properties(superlu PROPERTIES
- VERSION ${PROJECT_VERSION} SOVERSION ${VERSION_MAJOR}
+ VERSION ${PROJECT_VERSION} SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}
)
include(GNUInstallDirs)

@ -18,7 +18,7 @@
Name: SuperLU
Version: 5.2.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Subroutines to solve sparse linear systems
License: BSD and GPLv2+
@ -27,6 +27,9 @@ Source0: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/%{genname}_%{version}.tar.gz
Patch0: %{genname}-cmake-includedir.patch
Patch1: %{genname}-removemc64.patch
# Patch soname (5 -> 5.2) of shared library
Patch2: %{name}-%{version}-set_soname.patch
%ifarch %{openblas_arches}
BuildRequires: openblas-devel, openblas-srpm-macros
%else
@ -80,6 +83,8 @@ done
%build
mkdir -p build; cd build
# Do not use bundled CBLAS code
%cmake3 -Denable_blaslib:BOOL=OFF ..
%make_build
@ -106,6 +111,9 @@ popd
%doc DOC EXAMPLE FORTRAN
%changelog
* Wed Apr 25 2018 Antonio Trande <sagitterATfedoraproject.org> - 5.2.1-3
- Patch soname (5 -> 5.2) of shared library
* Sun Apr 15 2018 Antonio Trande <sagitterATfedoraproject.org> - 5.2.1-2
- Use cmake3 on rhel
- Use blas from system

Loading…
Cancel
Save