!58 [sync] PR-57: delete rpath

From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-02-17 09:09:35 +00:00 committed by Gitee
commit 088928ad1f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <wulei80@h-partners.com> - 1:1.21.4-6
- Delete rpath
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 1.21.4-5
- Type:feature
- CVE:NA