File ejson.spec of Package ejson
#
# spec file for package ejson
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ejson
# Version is automatically updated by _service to base_tag.YYYYMMDD format
Version: 1.5.4.20251016
Release: 0
Summary: Utility for managing encrypted secrets with asymmetric encryption
License: MIT
URL: https://github.com/Shopify/ejson
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.21
Requires: golang(API) >= 1.21
%description
EJSON is a utility for managing a collection of secrets in source control.
The secrets are encrypted using public key, elliptic curve cryptography
(NaCl Box: Curve25519 + Salsa20 + Poly1305). Secrets are collected in a JSON
file, where values are encrypted and keys are readable.
%prep
%autosetup -a 1
%build
%ifnarch ppc64
export GOFLAGS="-buildmode=pie"
%endif
go build -mod=vendor -o %{name} ./cmd/ejson
%install
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
%files
%doc README.md
%license LICENSE.txt
%{_bindir}/%{name}
%changelog