# Generated by go2rpm 1 %bcond_without check %global commit 902a3d4e6b9a6d94942150fdb4bc1fb156cbfa27 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # https://github.com/FiloSottile/age.git %global goipath filippo.io/age %global forgeurl https://github.com/FiloSottile/age Version: 1.0.0 %gometa %global common_description %{expand: A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability. } %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: A simple, modern and secure encryption tool # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: https://github.com/FiloSottile/age/archive/%{commit}/age-%{commit}.tar.gz BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/crypto/poly1305) BuildRequires: golang(golang.org/x/crypto/scrypt) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/terminal) BuildRequires: golang(filippo.io/edwards25519) %description %{common_description} %gopkg %package -n age Summary: %{summary} %description -n age %{common_description} %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files -n age %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog