## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/aquasecurity/go-pep440-version %global goipath github.com/aquasecurity/go-pep440-version %global commit 22b2f8951d46b49bdd25be1e78fae04f5e634458 %gometa %global common_description %{expand: A golang library for parsing PEP 440 compliant Python versions.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: A golang library for parsing PEP 440 compliant Python versions # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/aquasecurity/go-version/pkg/part) BuildRequires: golang(golang.org/x/xerrors) %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 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Sat Sep 18 2021 Robert-André Mauchin 0-0.1 - Initial release