Blob Blame History Raw
# Generated by go2rpm 1.10.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/prometheus/procfs
%global goipath         github.com/prometheus/procfs
Version:                0.12.0

%gometa


%global common_description %{expand:
Procfs provides functions to retrieve system, kernel and process metrics from
the pseudo-filesystem proc.}

%global golicenses      LICENSE NOTICE
%global godocs          CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md\\\
                        README.md SECURITY.md

Name:           %{goname}
Release:        %autorelease
Summary:        Retrieve system, kernel and process metrics from proc

License:        Apache-2.0
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
# Tests require that fixtures are extracted
./ttar -x -C testdata -f ./testdata/fixtures.ttar
%ifarch i686
rm proc_stat_test.go
%else
%gocheck
%endif
%endif

%gopkgfiles

%changelog
%autochangelog