d6b3731
# Generated by go2rpm 1.10.0
3c9a3df
%bcond_without check
3c001f2
%global debug_package %{nil}
d436818
3c9a3df
# https://github.com/prometheus/common
d436818
%global goipath         github.com/prometheus/common
92ec890
Version:                0.50.0
67ad14b
92ec890
%gometa -L
d436818
3c9a3df
%global common_description %{expand:
3c9a3df
This repository contains Go libraries that are shared across Prometheus
3c9a3df
components and libraries.
3c9a3df
3c9a3df
 - config: Common configuration structures
3c9a3df
 - expfmt: Decoding and encoding for the exposition format
3c9a3df
 - log: A logging wrapper around logrus
3c9a3df
 - model: Shared data structures
3c9a3df
 - route: A routing wrapper around httprouter using context.Context
3c9a3df
 - version: Version information and metrics}
d436818
dc3c959
%global golicenses      LICENSE NOTICE
dc3c959
%global godocs          CONTRIBUTING.md MAINTAINERS.md README.md
dc3c959
92ec890
Name:           golang-github-prometheus-common
eccdd52
Release:        %autorelease
d6b3731
Summary:        Go libraries shared across Prometheus components and libraries
3c9a3df
d6b3731
License:        Apache-2.0
d436818
URL:            %{gourl}
d6b3731
Source:         %{gosource}
3c9a3df
d6b3731
%description %{common_description}
67ad14b
dc3c959
%gopkg
67ad14b
67ad14b
%prep
92ec890
%goprep -A
d6b3731
%autopatch -p1
67ad14b
3c001f2
%generate_buildrequires
3c001f2
%go_generate_buildrequires
3c001f2
67ad14b
%install
dc3c959
%gopkginstall
67ad14b
380755c
%if %{without bootstrap}
3c9a3df
%if %{with check}
67ad14b
%check
c7359a2
# Go 1.18 deprecated SHA1-RSA
c7359a2
export GODEBUG=x509sha1=1
380755c
%gocheck
380755c
%endif
3c9a3df
%endif
67ad14b
dc3c959
%gopkgfiles
67ad14b
67ad14b
%changelog
eccdd52
%autochangelog