From 83903d3dd90241f085be75d15e4c0c6f3523c2ec Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Tue, 30 Mar 2021 15:22:29 +0800 Subject: [PATCH] strip binary files --- openssl-pkcs11.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openssl-pkcs11.spec b/openssl-pkcs11.spec index 4e6a6ac..f38373e 100644 --- a/openssl-pkcs11.spec +++ b/openssl-pkcs11.spec @@ -1,6 +1,6 @@ Name: openssl-pkcs11 Version: 0.4.11 -Release: 1 +Release: 2 Summary: A PKCS#11 engine for use with OpenSSL License: LGPLv2+ and BSD URL: https://github.com/OpenSC/libp11 @@ -48,6 +48,14 @@ mkdir -p %{buildroot}%{_libdir}/engines-1.1 %check make check +#strip binary files +pushd %{_builddir}/libp11-%{version} +find src/.libs -type f -name '*.so*' -exec strip '{}' ';' +find examples -type f -name '*.o' -exec strip '{}' ';' +strip examples/.libs/* +popd +strip %{buildroot}%{_libdir}/*.a + %pre %preun @@ -73,6 +81,9 @@ make check %exclude %{_defaultdocdir}/libp11/* %changelog +* Tue Mar 30 2021 panxiaohe - 0.4.11-2 +- strip binary files + * Sat Jan 23 2021 zoulin - 0.4.11-1 - update version to 0.4.11 -- Gitee