Patch soname (5 -> 5.2) of shared library

This commit is contained in:
sagitter 2018-04-25 16:02:40 +02:00
parent 358318a41c
commit 87174c209e
2 changed files with 20 additions and 1 deletions

View File

@ -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)

View File

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