Files
packages/anda/tools/sops/sops.spec
T
madomado 525f11d96c add: sops (#670)
Closes #669
2023-08-02 23:44:13 -07:00

34 lines
770 B
RPMSpec

%define debug_package %nil
Name: sops
Version: 3.7.3
Release: 1%?dist
Summary: Simple and flexible tool for managing secrets
License: MPL-2.0
URL: https://github.com/getsops/sops
Source0: %url/archive/refs/tags/v%version.tar.gz
BuildRequires: go git
%description
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.
%prep
%autosetup
go mod download
%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 .
%install
mkdir -p %buildroot%_bindir
install -pm755 build/bin/sops %buildroot%_bindir/
%files
%doc README.rst
%license LICENSE
%_bindir/sops
%changelog
%autochangelog