%global goipath    github.com/timtadh/data-structures
Version:           0.5.3

%gometa

%global common_description %{expand:
Extra Go data structures.}

%global golicenses LICENSE

Name:              %{goname}
Release:           1%{?dist}
Summary:           Extra Go data structures
License:           GPLv2 and BSD
URL:               %{gourl}
Source0:           %{gosource}

Patch0:            0001-Fix-string-formatting-in-tests.patch
Patch1:            0002-Fix-arguments-forwarding-syntax.patch
Patch2:		   0003-Use-absolute-value-of-hash-as-bucket.patch

%description
%{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%install
%gopkginstall

%check
%gocheck

%gopkgfiles

%changelog
* Tue Feb 22 2022 Julien Rische <jrische@redhat.com> - 0.5.3-1
- Initial package release