From bda282db79002935395f22700693a19dd05f6a21 Mon Sep 17 00:00:00 2001 From: wujing Date: Wed, 8 Sep 2021 15:40:51 +0800 Subject: [PATCH] strip coredns Signed-off-by: wujing (cherry picked from commit 4d26f08e94dd1c53e9dfdbb9d475f3505ec3a3a3) --- coredns.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/coredns.spec b/coredns.spec index 0fa981e..5a7eadb 100644 --- a/coredns.spec +++ b/coredns.spec @@ -2,7 +2,7 @@ %global debug_package %{nil} Name: coredns Version: 1.7.0 -Release: 1.0 +Release: 1.1 Summary: CoreDNS is a DNS server/forwarder, written in Go License: Apache-2.0 URL: https://coredns.io @@ -42,7 +42,9 @@ go build -mod=vendor -v -buildmode=pie -o coredns %install # Binaries +strip coredns install -D -m 0755 coredns %{buildroot}%{_sbindir}/coredns + # Manpages install -d %{buildroot}/%{_mandir}/man1 install -m 0644 man/coredns*.1 %{buildroot}/%{_mandir}/man1 @@ -63,5 +65,11 @@ install -m 0644 man/coredns-*.7 %{buildroot}/%{_mandir}/man7 %{_mandir}/man7/coredns-* %changelog -* Thu Mar 11 2021 WuJing +* Wed Sep 08 2021 WuJing 1.7.0-1.1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: strip coredns + +* Thu Mar 11 2021 WuJing - 1.7.0-1.0 - Initial Packaging -- Gitee