From f055b72d20be364d94c79f33fb8350e07cd1a9ff Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 05 2022 10:22:55 +0000 Subject: import suitesparse-5.4.0-10.el9 --- diff --git a/SOURCES/0001-build-don-t-set-RPATH-on-Linux.patch b/SOURCES/0001-build-don-t-set-RPATH-on-Linux.patch new file mode 100644 index 0000000..cf048e1 --- /dev/null +++ b/SOURCES/0001-build-don-t-set-RPATH-on-Linux.patch @@ -0,0 +1,25 @@ +From 6cfb73889129bd537115479b5756b834f4bf1070 Mon Sep 17 00:00:00 2001 +From: Michal Sekletar +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 + diff --git a/SPECS/suitesparse.spec b/SPECS/suitesparse.spec index b392497..0269220 100644 --- a/SPECS/suitesparse.spec +++ b/SPECS/suitesparse.spec @@ -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 - 5.4.0-10 +- Disable lazy binding (#2044892) +- Remove RPATH (#2056604) + * Tue Aug 10 2021 Mohan Boddu - 5.4.0-9 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688