0cf2532
# Generated by go2rpm 1.10.0
0cf2532
%bcond_without check
0cf2532
%global debug_package %{nil}
a822370
2f2ba94
# https://github.com/prometheus/procfs
2f2ba94
%global goipath         github.com/prometheus/procfs
0cf2532
Version:                0.12.0
af8ef65
2f2ba94
%gometa
312413d
0cf2532
e1c9fcc
%global common_description %{expand:
e1c9fcc
Procfs provides functions to retrieve system, kernel and process metrics from
e1c9fcc
the pseudo-filesystem proc.}
312413d
2f2ba94
%global golicenses      LICENSE NOTICE
af8ef65
%global godocs          CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md\\\
af8ef65
                        README.md SECURITY.md
57730c6
2f2ba94
Name:           %{goname}
2a41f28
Release:        %autorelease
2f2ba94
Summary:        Retrieve system, kernel and process metrics from proc
57730c6
0cf2532
License:        Apache-2.0
2f2ba94
URL:            %{gourl}
0cf2532
Source:         %{gosource}
312413d
0cf2532
%description %{common_description}
312413d
2f2ba94
%gopkg
57730c6
57730c6
%prep
2f2ba94
%goprep
0cf2532
%autopatch -p1
0cf2532
0cf2532
%generate_buildrequires
0cf2532
%go_generate_buildrequires
57730c6
57730c6
%install
2f2ba94
%gopkginstall
dfa52a0
e1c9fcc
%if %{with check}
2f2ba94
%check
0cf2532
# Tests require that fixtures are extracted
0cf2532
./ttar -x -C testdata -f ./testdata/fixtures.ttar
3e1b4f9
%ifarch i686
3e1b4f9
rm proc_stat_test.go
3e1b4f9
%else
2f2ba94
%gocheck
312413d
%endif
3e1b4f9
%endif
dfa52a0
2f2ba94
%gopkgfiles
57730c6
57730c6
%changelog
2a41f28
%autochangelog