From 5022ba4270e0dbebc8a4bfc5ec916c091108c23f Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Tue, 30 Mar 2021 20:20:11 +0800 Subject: [PATCH] strip binary files --- openssl-pkcs11.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/openssl-pkcs11.spec b/openssl-pkcs11.spec index 8dae3fb..589fd64 100644 --- a/openssl-pkcs11.spec +++ b/openssl-pkcs11.spec @@ -1,6 +1,6 @@ Name: openssl-pkcs11 Version: 0.4.11 -Release: 3 +Release: 4 Summary: A PKCS#11 engine for use with OpenSSL License: LGPLv2+ and BSD URL: https://github.com/OpenSC/libp11 @@ -41,13 +41,19 @@ make %{?_smp_mflags} V=1 %install rm -rf %{buildroot} -strip examples/.libs/* mkdir -p %{buildroot}%{_libdir}/engines-1.1 %make_install %delete_la +#strip binary files +pushd %{_builddir}/libp11-%{version} +find src/.libs -type f -name '*.so*' -exec strip '{}' ';' +strip examples/.libs/* +popd + %check make check +strip %{_builddir}/libp11-%{version}/examples/.libs/lt-* %pre @@ -74,6 +80,9 @@ make check %exclude %{_defaultdocdir}/libp11/* %changelog +* Tue Mar 30 2021 panxiaohe - 0.4.11-4 +- strip binary files + * Mon Mar 22 2021 panxiaohe - 0.4.11-3 - strip binary files in examples directory - remove strip secure compile option -- Gitee