Blob Blame History Raw
# 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.3%{?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}
# To use newer github.com/prometheus/client_golang
Patch0:         0001-use-promhttp-handler.patch

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
%patch0 -p1

%build
%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
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Mon May 06 21:59:33 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190628git3f826ee
- Initial package