## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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.8.1 %bcond_without check # https://github.com/prometheus/statsd_exporter %global goipath github.com/prometheus/statsd_exporter Version: 0.22.8 %gometa -f %global common_description %{expand: StatsD to Prometheus metrics exporter.} %global golicenses LICENSE NOTICE %global godocs CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md\\\ README.md SECURITY.md CHANGELOG.md Name: %{goname} Release: %autorelease Summary: StatsD to Prometheus metrics exporter License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/statsd_exporter %{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 CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md SECURITY.md %doc CHANGELOG.md %{_bindir}/* %gopkgfiles %changelog * Sun Sep 25 2022 Robert-André Mauchin 0.22.8-1 - Uncommitted changes