import suitesparse-5.4.0-10.el9

This commit is contained in:
CentOS Sources 2022-04-05 06:22:55 -04:00 committed by Stepan Oksanichenko
parent f78f0ab79c
commit 2fc0e53634
2 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From 6cfb73889129bd537115479b5756b834f4bf1070 Mon Sep 17 00:00:00 2001
From: Michal Sekletar <msekleta@redhat.com>
Date: Mon, 21 Feb 2022 18:42:28 +0100
Subject: [PATCH] build: don't set RPATH on Linux
---
SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk b/SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk
index 1d3d18f..ee60de4 100644
--- a/SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk
+++ b/SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk
@@ -358,7 +358,7 @@ SUITESPARSE_VERSION = 5.4.0
ifeq ($(UNAME),Linux)
# add the realtime library, librt, and SuiteSparse/lib
- LDLIBS += -lrt -Wl,-rpath=$(INSTALL_LIB)
+ LDLIBS += -lrt
endif
#---------------------------------------------------------------------------
--
2.33.1

View File

@ -32,7 +32,7 @@
Name: suitesparse
Version: 5.4.0
Release: 9%{?dist}
Release: 10%{?dist}
Summary: A collection of sparse matrix libraries
License: (LGPLv2+ or BSD) and LGPLv2+ and GPLv2+
@ -54,6 +54,8 @@ Obsoletes: umfpack <= 5.0.1
Obsoletes: ufsparse <= 2.1.1
Provides: ufsparse = %{version}-%{release}
Patch0001: 0001-build-don-t-set-RPATH-on-Linux.patch
%description
suitesparse is a collection of libraries for computations involving sparse
matrices. The package includes the following libraries:
@ -164,6 +166,9 @@ This package contains documentation files for %{name}.
%prep
%setup -c -q
%patch1 -p1
pushd SuiteSparse
# Remove bundled metis
rm -r metis*
@ -203,6 +208,7 @@ do
mkdir -p Doc/{AMD,BTF,CAMD,CCOLAMD,CHOLMOD,COLAMD,KLU,LDL,UMFPACK,SPQR,RBio} Include
export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="-Wl,-z,now"
export LAPACK=""
# Set flags for ILP64 build
if [ $build = SuiteSparse64 ]
@ -400,7 +406,7 @@ do
fi
for d in $TESTDIRS ; do
%make_build -C $d/Demo CFLAGS="$CFLAGS" LIB="%{?__global_ldflags} -lm -lrt" BLAS="$BLAS" LIBRARY_SUFFIX="$LIBRARY_SUFFIX" SPQR_CONFIG=-DHAVE_TBB TBB=-ltbb
LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir}/ %make_build -C $d/Demo CFLAGS="$CFLAGS" LIB="%{?__global_ldflags} -lm -lrt" BLAS="$BLAS" LIBRARY_SUFFIX="$LIBRARY_SUFFIX" SPQR_CONFIG=-DHAVE_TBB TBB=-ltbb
done
popd
done
@ -489,6 +495,10 @@ done
%doc SuiteSparse/Doc/*
%changelog
* Mon Feb 21 2022 Michal Sekletar <msekleta@redhat.com> - 5.4.0-10
- Disable lazy binding (#2044892)
- Remove RPATH (#2056604)
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 5.4.0-9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688