Name: sops Version: 3.7.3 Release: 1%{?dist} Summary: sops is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP URL: https://github.com/mozilla/sops License: MPL-2.0 Source0: https://github.com/mozilla/sops/archive/refs/tags/v%{version}.tar.gz BuildRequires: golang BuildRequires: rubygems # BuildRequires: systemd-rpm-macros Provides: %{name} = %{version} %description sops is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP. # %global debug_package %{nil} %prep %autosetup %build # rm -rf tmppkg # mkdir -p tmppkg/usr/local/bin GOPROXY=https://proxy.golang.org go mod tidy GOPROXY=https://proxy.golang.org go mod vendor CGO_ENABLED=0 GOPROXY=https://proxy.golang.org go build -mod vendor -ldflags=-linkmode=external -o %{name} go.mozilla.org/sops/v3/cmd/sops %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %check # go test should be here... :) # %post # %preun %files %{_bindir}/%{name} %license LICENSE %doc README.rst %changelog * Wed June 14 2023 Yannik Mueller - 3.7.3-1 - Initial release