Blob Blame History Raw
# Generated by go2rpm 1.6.0
# Needs redoctober binary in a specific place
%bcond_with check

# https://github.com/cloudflare/redoctober
%global goipath         github.com/cloudflare/redoctober
%global commit          6a74ccc611f655e1ee9a648062a6ececfb6f2bb8

%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:        %autorelease -p
Summary:        Go server for two-man rule style file encryption and decryption

License:        BSD-2-Clause
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%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
%autochangelog