## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 5;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

# Generated by go2rpm 1.5.0
%bcond_without check

# https://github.com/aykevl/go-wasm
%global goipath         github.com/aykevl/go-wasm
%global commit          4a0a888aebdc0535a49a2ce46d638e95af164383

%gometa

%global common_description %{expand:
WebAssembly binary file parser written in go.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        %autorelease -p
Summary:        WebAssembly binary file parser

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

%description
%{common_description}

%gopkg

%prep
%goprep

# Remove the binary, as this package is only used for the Go library, and the
# binary can come from the original fork, if needed.
# It also causes an unfulfilled dependency on the original repo, since the
# import is not patched.
rm -r cmd/

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> 0-0.5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Tue Aug 02 2022 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0-0.4
- Update to commit 4a0a888aebdc0535a49a2ce46d638e95af164383

* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Fri Jun 17 2022 Robert-André Mauchin <zebob.m@gmail.com> 0-0.2
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327,
  CVE-2022-27191, CVE-2022-29526, CVE-2022-30629

* Wed Feb 02 2022 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0-0.1
- import #2036472