From 1235805da8bf3abe8e5182e5df76c5245df6cb92 Mon Sep 17 00:00:00 2001 From: zhangtao2020 <18066722603@163.com> Date: Sat, 4 Sep 2021 14:25:02 +0800 Subject: [PATCH] strip Dynamic library --- scipy.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scipy.spec b/scipy.spec index 295e326..af72cfd 100644 --- a/scipy.spec +++ b/scipy.spec @@ -2,7 +2,7 @@ %global debug_package %{nil} Name: scipy Version: 1.2.2 -Release: 5 +Release: 6 Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering License: Qhull and Apache-2.0 URL: https://www.scipy.org @@ -72,12 +72,17 @@ env FFLAGS="$RPM_OPT_FLAGS -fPIC" \ %py3_install popd +find %{buildroot} -type f -name '*.so' -exec strip '{}' ';' + %files -n python3-scipy %license LICENSE.txt %{python3_sitearch}/scipy %{python3_sitearch}/*.egg-info %changelog +* Sat Sep 4 2021 zhangtao - 1.2.2-6 +- Strip Dynamic library + * Sun 01 Aug 2021 sunguoshuai - 1.2.2-5 - Fix build error with gcc 10 -- Gitee