From 5210b75e04a40685cbec3566a0ae25d418408784 Mon Sep 17 00:00:00 2001 From: lch Date: Sep 06 2020 10:09:52 +0000 Subject: Initial commit --- diff --git a/golang-filippo-age.spec b/golang-filippo-age.spec new file mode 100644 index 0000000..43c423d --- /dev/null +++ b/golang-filippo-age.spec @@ -0,0 +1,75 @@ +# Generated by go2rpm 1 +%bcond_without check +%global commit 21a7203f6a899379131f3ec9be026519eebcc555 +%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) + +%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 +