Accepting request 1060930 from home:eroca:go
- Update to version 3.5.7 - Build section: add -trimpath which removes specific build time paths from the binary and add -w to strip DWARF symbols which aren't needed OBS-URL: https://build.opensuse.org/request/show/1060930 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/etcd?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
d42e332def
commit
9eb1b4f4f8
@@ -22,7 +22,7 @@
|
||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||
%endif
|
||||
Name: etcd
|
||||
Version: 3.5.4
|
||||
Version: 3.5.7
|
||||
Release: 0
|
||||
Summary: Highly-available key value store for configuration and service discovery
|
||||
License: Apache-2.0
|
||||
@@ -35,7 +35,7 @@ Source12: %{name}.service
|
||||
Source15: README.security
|
||||
Source16: system-user-etcd.conf
|
||||
Source17: vendor-update.sh
|
||||
BuildRequires: golang(API) >= 1.16
|
||||
BuildRequires: golang(API) >= 1.17
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: sysuser-tools
|
||||
@@ -90,7 +90,8 @@ for item in server etcdctl etcdutl;do
|
||||
go build -v \
|
||||
-buildmode=pie \
|
||||
-mod=vendor \
|
||||
-ldflags="-s -X main.Version=%{version}" \
|
||||
-trimpath \
|
||||
-ldflags="-s -w -X main.Version=%{version}" \
|
||||
-o ../bin/"$item"
|
||||
done
|
||||
cd "$dir"
|
||||
|
Reference in New Issue
Block a user