From 11a90a635cc41039843fa83bb0a8a339c44c9144 Mon Sep 17 00:00:00 2001 From: yueyaoqiang Date: Fri, 29 Aug 2025 13:41:13 +0800 Subject: [PATCH] remove f2py form python3-numpy package and Do not pack open-source test case files --- numpy.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/numpy.spec b/numpy.spec index 0719532..14c4927 100644 --- a/numpy.spec +++ b/numpy.spec @@ -2,7 +2,7 @@ Name: numpy Version: 1.16.5 -Release: 7 +Release: 8 Epoch: 1 Summary: A fast multidimensional array facility for Python @@ -158,6 +158,9 @@ popd &> /dev/null %{python2_sitearch}/%{name}-*.egg-info %{_includedir}/numpy %exclude %{python2_sitearch}/%{name}/LICENSE.txt +%exclude %{python2_sitearch}/%{name}/f2py +%exclude %{python2_sitearch}/%{name}/f2py/tests/ +%exclude %{python2_sitearch}/%{name}/*/tests/ %files -n python2-numpy-f2py %{_bindir}/f2py @@ -165,6 +168,7 @@ popd &> /dev/null %{_bindir}/f2py2.7 %{_bindir}/f2py.numpy %{python2_sitearch}/%{name}/f2py +%exclude %{python2_sitearch}/%{name}/f2py/tests/ %files -n python3-numpy %license LICENSE.txt @@ -173,13 +177,21 @@ popd &> /dev/null %{python3_sitearch}/%{name}/* %{python3_sitearch}/%{name}-*.egg-info %exclude %{python3_sitearch}/%{name}/LICENSE.txt +%exclude %{python3_sitearch}/%{name}/f2py +%exclude %{python3_sitearch}/%{name}/f2py/tests/ +%exclude %{python3_sitearch}/%{name}/*/tests/ %files -n python3-numpy-f2py %{_bindir}/f2py3 %{_bindir}/f2py3.7 %{python3_sitearch}/%{name}/f2py +%exclude %{python3_sitearch}/%{name}/f2py/tests/ %changelog +* Thu Aug 28 2025 yueyaoqiang - 1:1.16.5-8 +- remove f2py form python3-numpy package. It is in python3-numpy-f2py + Do not pack open-source test case files + * Mon Feb 21 2022 renhongxun - 1.16.5-7 - revert CVE-2021-34141 -- Gitee