# Generated by go2rpm 1.3
%bcond_without check

# https://github.com/ivaaaan/smug
%global goipath         github.com/ivaaaan/smug
%global commit          f85d2fcb9833186ae8ab34298bb9e373d92c10dc

%gometa

%global common_description %{expand:
A session manager for tmux written in Go.}

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

Name:           %{goname}
Version:        0
Release:        0.1%{?dist}
Summary:        A session manager for tmux written in Go

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/docopt/docopt-go)
BuildRequires:  golang(gopkg.in/yaml.v2)
Requires: tmux
Provides: smug

%description
%{common_description}

%gopkg

%prep
%goprep

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

%gopkgfiles

%changelog
* Mon Dec 21 12:52:36 CET 2020 Jeremy Bertozzi <jeremy.bertozi@gmail.com> - 0-0.1.20201221gitf85d2fc
- Initial package