From 344e3f1566bfafd8f4c4317c2d55207e2b549ad0 Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Fri, 17 Feb 2023 15:18:12 +0800 Subject: [PATCH] delete rpath --- numpy.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/numpy.spec b/numpy.spec index c81b14d..90f39dc 100644 --- a/numpy.spec +++ b/numpy.spec @@ -2,7 +2,7 @@ Name: numpy Version: 1.21.4 -Release: 5 +Release: 6 Epoch: 1 Summary: A fast multidimensional array facility for Python @@ -12,7 +12,7 @@ Source0: https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f BuildRequires: openblas-devel BuildRequires: lapack-devel gcc-gfortran -BuildRequires: python3-Cython >= 0.29.24 +BuildRequires: python3-Cython >= 0.29.24 chrpath Patch0: backport-CVE-2021-41496.patch Patch1: backport-CVE-2021-41495.patch @@ -85,6 +85,10 @@ env OPENBLAS=%{_libdir} \ %{__python3} setup.py install --root %{buildroot} pushd %{buildroot}%{_bindir} &> /dev/null +chrpath --delete %{buildroot}%{python3_sitearch}/%{name}/core/_multiarray_umath.*.so +chrpath --delete %{buildroot}%{python3_sitearch}/%{name}/linalg/lapack_lite.*.so +chrpath --delete %{buildroot}%{python3_sitearch}/%{name}/linalg/_umath_linalg.*.so + %check pushd doc &> /dev/null PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ @@ -107,6 +111,9 @@ popd &> /dev/null %changelog +* Fri Feb 17 2023 wulei - 1:1.21.4-6 +- Delete rpath + * Mon Nov 14 2022 zhaozhen - 1.21.4-5 - Type:feature - CVE:NA -- Gitee