delete rpath
(cherry picked from commit 344e3f1566bfafd8f4c4317c2d55207e2b549ad0)
This commit is contained in:
parent
0be317f2b8
commit
656380ece8
11
numpy.spec
11
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 <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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user