## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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/gherkin-go %global goipath github.com/cucumber/gherkin-go Version: 21.0.0 %gometa %global goaltipaths github.com/cucumber/gherkin-go/v21 %global common_description %{expand: Gherkin parser/compiler for Go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Gherkin parser/compiler for Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/cucumber/messages-go/v17) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep sed -i 's|"github.com/cucumber/common/gherkin/go/v21|"github.com/cucumber/gherkin-go|' $(find . -iname "*.go" -type f) sed -i 's|"github.com/cucumber/common/messages/go/v17|"github.com/cucumber/messages-go/v17|' $(find . -iname "*.go" -type f) %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Thu Jan 19 2023 Fedora Release Engineering 21.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering 21.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 21.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 23 2021 Robert-André Mauchin 21.0.0-1 - Update to 21.0.0 Close: rhbz#1963566, rhbz#2006933 * Thu Jul 22 2021 Fedora Release Engineering - 16.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 16.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 15 18:06:36 CET 2021 Robert-André Mauchin - 16.0.0-1 - Update to 16.0.0 * Wed Sep 09 13:35:17 CEST 2020 Robert-André Mauchin - 15.0.2-1 - Initial package