From dbff52f5e6192aeeacf6e4dd2612e54428eacbf4 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Thu, 25 Aug 2022 10:17:27 +0800 Subject: [PATCH] Remove rpath --- numpy.spec | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/numpy.spec b/numpy.spec index fffea7f..4aac366 100644 --- a/numpy.spec +++ b/numpy.spec @@ -2,7 +2,7 @@ Name: numpy Version: 1.21.4 -Release: 4 +Release: 5 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 @@ -84,6 +84,10 @@ env OPENBLAS=%{_libdir} \ %{__python3} setup.py install --root %{buildroot} pushd %{buildroot}%{_bindir} &> /dev/null +chrpath -d %{buildroot}%{python3_sitearch}/numpy/core/_multiarray_umath.cpython-310-%{_arch}-linux-gnu.so +chrpath -d %{buildroot}%{python3_sitearch}/numpy/linalg/_umath_linalg.cpython-310-%{_arch}-linux-gnu.so +chrpath -d %{buildroot}%{python3_sitearch}/numpy/linalg/lapack_lite.cpython-310-%{_arch}-linux-gnu.so + %check pushd doc &> /dev/null PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ @@ -106,47 +110,50 @@ popd &> /dev/null %changelog -* Tue May 31 2022 huangduirong - 1.21.4-4 +* Thu Aug 25 2022 wangkai - 1:1.21.4-5 +- Remove rpath + +* Tue May 31 2022 huangduirong - 1:1.21.4-4 - Type:CVE - ID:CVE-2021-34141 - SUGA:NA - DESC:fix CVE-2021-34141 -* Tue Feb 08 2022 renhongxun - 1.21.4-3 +* Tue Feb 08 2022 renhongxun - 1:1.21.4-3 - fix CVE-2021-41495 -* Wed Jan 05 2022 yuanxin - 1.21.4-2 +* Wed Jan 05 2022 yuanxin - 1:1.21.4-2 - fix CVE-2021-41496 -* Mon Dec 13 2021 shixuantong - 1.21.4-1 +* Mon Dec 13 2021 shixuantong - 1:1.21.4-1 - update version to 1.21.4 -* Thu Aug 24 2021 wulei - 1.18.5-1 +* Thu Aug 24 2021 wulei - 1:1.18.5-1 - update to 1.18.5 -* Mon Jan 18 2021 tianwei - 1.16.5-6 +* Mon Jan 18 2021 tianwei - 1:1.16.5-6 - Type:NA - ID:N/A - SUGA:NA - DESC:fix package files -* Fri Oct 30 2020 tianwei - 1.16.5-5 +* Fri Oct 30 2020 tianwei - 1:1.16.5-5 - Type:NA - ID:N/A - SUGA:NA - DESC:remove python2 -* Tue Sep 22 2020 shixuantong - 1.16.5-4 +* Tue Sep 22 2020 shixuantong - 1:1.16.5-4 - Type:NA - ID:N/A - SUGA:NA - DESC:remove python-nose -* Sat Jun 20 2020 fuyangqing - 1.16.5-3 +* Sat Jun 20 2020 fuyangqing - 1:1.16.5-3 - Type:bugfix - ID:N/A - SUGA:NA - DESC:change spec hardcode the dependent python version number -* Tue Oct 22 2019 openEuler Buildteam - 1.16.5-1 +* Tue Oct 22 2019 openEuler Buildteam - 1:1.16.5-1 - Package init -- Gitee