Remove RPATH

This commit is contained in:
Milan Bouchet-Valat 2021-07-25 19:53:20 +02:00
parent 0519e7e6e9
commit 58dfc1cac6
No known key found for this signature in database
GPG Key ID: C40AF671A8FAC5C9

View File

@ -30,11 +30,6 @@
%global blaslib openblas
%endif
# Workaround until we find a way to fix the incorrect RPATH
# (since it points to /builddir/build/BUILD/ it is not a security issue)
# https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
%global __brp_check_rpaths %{nil}
Name: suitesparse
Version: 5.10.1
Release: 1%{?dist}
@ -47,6 +42,7 @@ Source0: https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/
BuildRequires: make
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: patchelf
BuildRequires: metis-devel
BuildRequires: %{blaslib}-devel
@ -375,6 +371,9 @@ do
popd
done
# Remove invalid RPATH pointing to BUILDROOT
# Required after https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
patchelf --remove-rpath ${RPM_BUILD_ROOT}%{_libdir}/*.so*
%check
export AUTOCC=no