## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/jessicalins/instrumentation-practices-examples %global goipath github.com/jessicalins/instrumentation-practices-examples %global commit 4a1cf17820a65232af223ba0ef751cb5565fd5fe %gometa %global common_description %{expand: A repo containing examples of instrumented applications, following the best practices.} %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: A repo containing examples of instrumented applications, following the best practices License: # FIXME URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in simple middleware exemplars; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %doc README.md %{_bindir}/* %gopkgfiles %changelog * Mon May 01 2023 John Doe - 0-0.1 - Uncommitted changes