Files
golang-github-prometheus-co…/golang-github-prometheus-common.spec
2025-01-12 23:48:31 +01:00

78 lines
1.6 KiB
RPMSpec

# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%global debug_package %{nil}
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/prometheus/common
%global goipath github.com/prometheus/common
Version: 0.61.0
%gometa -L -f
%global common_description %{expand:
Go libraries shared across Prometheus components and libraries.}
%global golicenses LICENSE NOTICE
%global godocs CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md\\\
README.md RELEASE.md SECURITY.md sigv4/README.md
Name: golang-github-prometheus-common
Release: %autorelease
Summary: Go libraries shared across Prometheus components and libraries
License: Apache-2.0
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in config; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE NOTICE
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md RELEASE.md
%doc SECURITY.md sigv4/README.md
%{_bindir}/*
%endif
%gopkgfiles
%changelog
%autochangelog