diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5804bae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/redoctober-3f826eedb692f563514d43f921506324386a98f1.tar.gz diff --git a/golang-github-cloudflare-redoctober.spec b/golang-github-cloudflare-redoctober.spec new file mode 100644 index 0000000..298ccfd --- /dev/null +++ b/golang-github-cloudflare-redoctober.spec @@ -0,0 +1,67 @@ +# Generated by go2rpm +# nEEDS REDOCTOBER BINARY +%bcond_with check + +# https://github.com/cloudflare/redoctober +%global goipath github.com/cloudflare/redoctober +%global commit 3f826eedb692f563514d43f921506324386a98f1 + +%gometa + +%global common_description %{expand: +Red October is a software-based two-man rule style encryption and decryption +server.} + +%global golicenses LICENSE.md +%global godocs README.md + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Go server for two-man rule style file encryption and decryption + +# Upstream license specification: BSD-2-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/coreos/go-systemd/activation) +BuildRequires: golang(github.com/getsentry/raven-go) +BuildRequires: golang(github.com/prometheus/client_golang/prometheus) +BuildRequires: golang(golang.org/x/crypto/scrypt) +BuildRequires: golang(golang.org/x/crypto/ssh) + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%build +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done +%gobuild -o %{gobuilddir}/bin/redoctober %{goipath} + +%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.md +%doc README.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Mon May 06 21:59:33 CEST 2019 Robert-André Mauchin - 0-0.1.20190628git3f826ee +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f0c6ba5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (redoctober-3f826eedb692f563514d43f921506324386a98f1.tar.gz) = 1d8144caebd92b4633c324c81018157ceede8cf24a91f2de74008dd7ee1f51493f6e95387f12ac6ca71e92ce0216a54d790160e57f4c4428c532e5c7b2765a95