f6788a7
# Generated by go2rpm 1.5.0
eabe6c3
# https://github.com/prometheus/procfs/issues/432
eabe6c3
%ifnarch %{ix86} %{arm32}
e1c9fcc
%bcond_without check
eabe6c3
%endif
a822370
2f2ba94
# https://github.com/prometheus/procfs
2f2ba94
%global goipath         github.com/prometheus/procfs
af8ef65
Version:                0.7.3
3abc308
# Meeded by golang-github-prometheus-node-exporter
3abc308
%global commit          fbe360a68cc652b7d44167e8ec79e2ee70261569
af8ef65
2f2ba94
%gometa
312413d
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
%global gosupfiles glide.lock glide.yaml
312413d
2f2ba94
Name:           %{goname}
2a41f28
Release:        %autorelease
2f2ba94
Summary:        Retrieve system, kernel and process metrics from proc
57730c6
2f2ba94
# Upstream license specification: Apache-2.0
2f2ba94
License:        ASL 2.0
2f2ba94
URL:            %{gourl}
2f2ba94
Source0:        %{gosource}
2f2ba94
Source1:        glide.yaml
2f2ba94
Source2:        glide.lock
af8ef65
# https://github.com/prometheus/procfs/issues/430
af8ef65
Patch0:         0001-Convert-w-verb-in-t.Errorf-function-to-v.patch
312413d
2f2ba94
BuildRequires:  golang(golang.org/x/sync/errgroup)
a7d8e2b
BuildRequires:  golang(golang.org/x/sys/unix)
a7d8e2b
a7d8e2b
%if %{with check}
a7d8e2b
# Tests
a7d8e2b
BuildRequires:  golang(github.com/google/go-cmp/cmp)
a7d8e2b
%endif
57730c6
2f2ba94
%description
e1c9fcc
%{common_description}
312413d
2f2ba94
%gopkg
57730c6
57730c6
%prep
2f2ba94
%goprep
af8ef65
%patch0 -p1
2f2ba94
cp %{S:1} %{S:2} .
57730c6
57730c6
%install
2f2ba94
%gopkginstall
dfa52a0
e1c9fcc
%if %{with check}
2f2ba94
%check
2f2ba94
# Tests require that fixtures are extracted
2f2ba94
./ttar -x -f fixtures.ttar
2f2ba94
%gocheck
312413d
%endif
dfa52a0
2f2ba94
%gopkgfiles
57730c6
57730c6
%changelog
2a41f28
%autochangelog