## START: Set by rpmautospec %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/etcd-io/gofail %global goipath github.com/etcd-io/gofail %global commit ad7f989257ca7de90de65657c9748a3108b1460f %gometa %global common_description %{expand: Failpoints for Go.} %global golicenses LICENSE NOTICE %global godocs examples README.md code-of-conduct.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: Failpoints for Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/gofail %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE NOTICE %doc examples README.md code-of-conduct.md %{_bindir}/* %gopkgfiles %changelog * Fri Aug 06 2021 Robert-André Mauchin 0-0.1 - Initial release