Blob Blame History Raw
# Generated by go2rpm 1
%bcond_without check

# https://github.com/meshbird/meshbird
%global goipath         github.com/meshbird/meshbird
Version:                2.3

%gometa

%global common_description %{expand:
Distributed private networking.}

%global golicenses      LICENSE
%global godocs          README.md CHANGELOG.md

Name:           meshbird
Release:        1%{?dist}
Summary:        Distributed private networking

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/alexflint/go-arg)
BuildRequires:  golang(github.com/golang/protobuf/proto)
BuildRequires:  golang(github.com/songgao/water)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
%gobuild -o %{gobuilddir}/bin/meshbird %{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
%doc README.md CHANGELOG.md
%{_bindir}/*

%gopkgfiles

%changelog
* Tue Apr 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.3-1
- Initial package