Blame golang-github-cloudflare-redoctober.spec

b25384e
# Generated by go2rpm
b25384e
# nEEDS REDOCTOBER BINARY
b25384e
%bcond_with check
b25384e
b25384e
# https://github.com/cloudflare/redoctober
b25384e
%global goipath         github.com/cloudflare/redoctober
b25384e
%global commit          3f826eedb692f563514d43f921506324386a98f1
b25384e
b25384e
%gometa
b25384e
b25384e
%global common_description %{expand:
b25384e
Red October is a software-based two-man rule style encryption and decryption
b25384e
server.}
b25384e
b25384e
%global golicenses      LICENSE.md
b25384e
%global godocs          README.md
b25384e
b25384e
Name:           %{goname}
b25384e
Version:        0
3f38915
Release:        0.3%{?dist}
b25384e
Summary:        Go server for two-man rule style file encryption and decryption
b25384e
b25384e
# Upstream license specification: BSD-2-Clause
b25384e
License:        BSD
b25384e
URL:            %{gourl}
b25384e
Source0:        %{gosource}
7fab125
# To use newer github.com/prometheus/client_golang
7fab125
Patch0:         0001-use-promhttp-handler.patch
b25384e
b25384e
BuildRequires:  golang(github.com/coreos/go-systemd/activation)
b25384e
BuildRequires:  golang(github.com/getsentry/raven-go)
b25384e
BuildRequires:  golang(github.com/prometheus/client_golang/prometheus)
b25384e
BuildRequires:  golang(golang.org/x/crypto/scrypt)
b25384e
BuildRequires:  golang(golang.org/x/crypto/ssh)
b25384e
b25384e
%description
b25384e
%{common_description}
b25384e
b25384e
%gopkg
b25384e
b25384e
%prep
b25384e
%goprep
7fab125
%patch0 -p1
b25384e
b25384e
%build
b25384e
%gobuild -o %{gobuilddir}/bin/redoctober %{goipath}
b25384e
b25384e
%install
b25384e
%gopkginstall
b25384e
install -m 0755 -vd                     %{buildroot}%{_bindir}
b25384e
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
b25384e
b25384e
%if %{with check}
b25384e
%check
b25384e
%gocheck
b25384e
%endif
b25384e
b25384e
%files
b25384e
%license LICENSE.md
b25384e
%doc README.md
b25384e
%{_bindir}/*
b25384e
b25384e
%gopkgfiles
b25384e
b25384e
%changelog
3f38915
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
3f38915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3f38915
bb5545a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
bb5545a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bb5545a
b25384e
* Mon May 06 21:59:33 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190628git3f826ee
b25384e
- Initial package