delete rpath

(cherry picked from commit 344e3f1566bfafd8f4c4317c2d55207e2b549ad0)
This commit is contained in:
wu-leilei 2023-02-17 15:18:12 +08:00 committed by openeuler-sync-bot
parent 0be317f2b8
commit 656380ece8

View File

@ -2,7 +2,7 @@
Name: numpy Name: numpy
Version: 1.21.4 Version: 1.21.4
Release: 5 Release: 6
Epoch: 1 Epoch: 1
Summary: A fast multidimensional array facility for Python 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: openblas-devel
BuildRequires: lapack-devel gcc-gfortran BuildRequires: lapack-devel gcc-gfortran
BuildRequires: python3-Cython >= 0.29.24 BuildRequires: python3-Cython >= 0.29.24 chrpath
Patch0: backport-CVE-2021-41496.patch Patch0: backport-CVE-2021-41496.patch
Patch1: backport-CVE-2021-41495.patch Patch1: backport-CVE-2021-41495.patch
@ -85,6 +85,10 @@ env OPENBLAS=%{_libdir} \
%{__python3} setup.py install --root %{buildroot} %{__python3} setup.py install --root %{buildroot}
pushd %{buildroot}%{_bindir} &> /dev/null 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 %check
pushd doc &> /dev/null pushd doc &> /dev/null
PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \
@ -107,6 +111,9 @@ popd &> /dev/null
%changelog %changelog
* Fri Feb 17 2023 wulei <wulei80@h-partners.com> - 1:1.21.4-6
- Delete rpath
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 1.21.4-5 * Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 1.21.4-5
- Type:feature - Type:feature
- CVE:NA - CVE:NA