From 87174c209ed87c6d194a36ed75dc044a4f7479d4 Mon Sep 17 00:00:00 2001 From: sagitter Date: Wed, 25 Apr 2018 16:02:40 +0200 Subject: [PATCH] Patch soname (5 -> 5.2) of shared library --- SuperLU-5.2.1-set_soname.patch | 11 +++++++++++ SuperLU.spec | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 SuperLU-5.2.1-set_soname.patch diff --git a/SuperLU-5.2.1-set_soname.patch b/SuperLU-5.2.1-set_soname.patch new file mode 100644 index 0000000..d362e87 --- /dev/null +++ b/SuperLU-5.2.1-set_soname.patch @@ -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) diff --git a/SuperLU.spec b/SuperLU.spec index e1ec86d..172024c 100644 --- a/SuperLU.spec +++ b/SuperLU.spec @@ -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 - 5.2.1-3 +- Patch soname (5 -> 5.2) of shared library + * Sun Apr 15 2018 Antonio Trande - 5.2.1-2 - Use cmake3 on rhel - Use blas from system