## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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.3 %bcond_without check # https://github.com/prometheus/exporter-toolkit %global goipath github.com/prometheus/exporter-toolkit Version: 0.6.1 %gometa %global common_description %{expand: Utility package to build exporters.} %global golicenses LICENSE %global godocs CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md\\\ README.md Name: %{goname} Release: %autorelease Summary: Utility package to build exporters # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/go-kit/kit/log) BuildRequires: golang(github.com/go-kit/kit/log/level) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/prometheus/common/config) BuildRequires: golang(golang.org/x/crypto/bcrypt) BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2) BuildRequires: golang(gopkg.in/yaml.v2) %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check # Go 1.18 deprecated SHA1-RSA export GODEBUG=x509sha1=1 for test in "TestServerBehaviour" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Wed Aug 10 2022 Maxwell G 0.6.1-5 - Rebuild to fix FTBFS * Thu Jul 21 2022 Fedora Release Engineering 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Feb 24 2022 Robert-André Mauchin 0.6.1-3 - Fix FTBFS Close: rhbz#2045605 * Thu Jan 20 2022 Fedora Release Engineering 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Aug 11 2021 Robert-André Mauchin 0.6.1-1 - Update to 0.6.1 Close: rhbz#1978051,rhbz#1991474,rhbz#1992362 * Thu Jul 22 2021 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 00:31:38 CET 2021 Robert-André Mauchin - 0.5.1-1 - Update to 0.5.1 * Thu Jan 07 17:57:30 CET 2021 Robert-André Mauchin - 0.4.0-1 - Initial package