# Run tests in check section
# disable for bootstrapping
%bcond_with check

%global goipath github.com/cheekybits/is
%global commit  68e9c0620927fb5427fda3708222d0edee89eae9

%gometa

Name:           %{goname}
Version:        0
Release:        0.2%{?dist}
Summary:        A mini testing helper for Go
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{summary}.

%package devel
Summary:        %{summary}
BuildArch:      noarch
Provides:       golang(%{import_path}) = %{version}-%{release}

%description devel
%{summary}.

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%prep
%forgeautosetup

%install
%goinstall

%if %{with check}
%check
%gochecks
%endif

%files devel -f devel.file-list
%doc README.md
%license LICENSE

%changelog
* Fri Nov  9 2018 mosquito <sensor.wen@gmail.com> - 0-0.2.20181109git68e9c06
- Rewrite rpm spec

* Tue Feb 13 2018 mosquito <sensor.wen@gmail.com> - 0-0.1.20150226git68e9c06
- Initial package build