diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d86c3a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/age-1.0.0-beta6.tar.gz diff --git a/age.spec b/age.spec new file mode 100644 index 0000000..a6fd71f --- /dev/null +++ b/age.spec @@ -0,0 +1,74 @@ +# Generated by go2rpm 1.3 +%bcond_without check + +# https://github.com/FiloSottile/age +%global goipath filippo.io/age +%global forgeurl https://github.com/FiloSottile/age +Version: 1.0.0~beta6 + +%gometa + +%global goname age + +%global extractdir %(echo %{extractdir} | sed -e 's/~/-/g') +%global gosource %(echo %{gosource} | sed -e 's/~/-/g') + +%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: Simple, modern and secure encryption tool + +# Upstream license specification: BSD-3-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(filippo.io/edwards25519) +BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) +BuildRequires: golang(golang.org/x/crypto/cryptobyte) +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 + +%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 +%license LICENSE +%doc README.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Fri Jan 22 00:03:19 CET 2021 Robert-André Mauchin - 1.0.0-beta6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..171af9e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (age-1.0.0-beta6.tar.gz) = 111e5fe3986771cf1974ef4af083d4816cbe19c97fde4e8e54da729eb8c2f1c9836afec6aaefc6acbdcd4fe9744edeb37d097e79621bbb1b6e6926d395a56a12