## 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
%bcond_without check

# https://github.com/cucumber/messages-go
%global goipath         github.com/cucumber/messages-go
Version:                17.1.1

%gometa

%global goaltipaths     github.com/cucumber/messages-go/v17

%global common_description %{expand:
Cucumber Messages for Go (Protocol Buffers).}

%global golicenses      LICENSE

Name:           %{goname}
Release:        %autorelease
Summary:        Cucumber Messages for Go (Protocol Buffers)

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

BuildRequires:  golang(github.com/gofrs/uuid)
BuildRequires:  golang(github.com/gogo/protobuf/io)
BuildRequires:  golang(github.com/gogo/protobuf/jsonpb)
BuildRequires:  golang(github.com/gogo/protobuf/proto)

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

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

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

%gopkgfiles

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

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

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> 17.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Wed Sep 22 2021 Robert-André Mauchin <zebob.m@gmail.com> 17.1.1-2
- Fix alternate import path

* Wed Sep 22 2021 Fabian Affolter <mail@fabian-affolter.ch> 17.1.1-1
- Update to latest upstream release 17.1.1 (closes rhbz#1963565)

* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> 13.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> 13.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Fri Jan 15 2021 Robert-André Mauchin <zebob.m@gmail.com> 13.2.1-1
- Update to 13.2.1

* Wed Sep 09 2020 Robert-André Mauchin <zebob.m@gmail.com> 13.0.1-1
- Initial import