Clean up broken SOPS build, don't add any dumb flags (#692)

* Clean up broken SOPS build, don't add any dumb flags

* show verbose logs

* fix build flag
This commit is contained in:
Cappy Ishihara
2023-08-14 17:22:39 +07:00
committed by GitHub
parent 30731ce11c
commit 86002dee77
+3 -3
View File
@@ -1,7 +1,7 @@
%define debug_package %nil
Name: sops
Version: 3.7.3
Release: 1%?dist
Release: 2%?dist
Summary: Simple and flexible tool for managing secrets
License: MPL-2.0
URL: https://github.com/getsops/sops
@@ -14,11 +14,11 @@ formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP.
%prep
%autosetup
go mod download
go mod download -x
%build
mkdir -p build/bin
go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -s -w" -buildmode=pie -o build/bin/sops .
go build -ldflags "-s -w" -v -x -buildmode=pie -o build/bin/sops ./cmd/sops
%install
mkdir -p %buildroot%_bindir