# Generated by go2rpm
%bcond_without check

# https://github.com/multiplay/go-ts3
%global goipath         github.com/multiplay/go-ts3
Version:                1.0.0

%gometa

%global common_description %{expand:
A golang TeamSpeak 3 ServerQuery client.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        A golang TeamSpeak 3 ServerQuery client

# Upstream license specification: BSD-2-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/mitchellh/mapstructure)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Wed Feb 05 2020 Xavier Bachelot <xavier@bachelot.org> - 1.0.0-1
- Initial package