Blob Blame History Raw
# Generated by go2rpm
%ifnarch s390x
%bcond_without check
%endif

# https://github.com/elastic/gosigar
%global goipath         github.com/elastic/gosigar
Version:                0.11.0

%gometa

%global common_description %{expand:
Go sigar is a Golang implementation of the sigar API. The Go version of sigar
has a very similar interface, but is being written from scratch in pure go/cgo,
rather than cgo bindings for libsigar.}

%global golicenses      LICENSE NOTICE
%global godocs          examples CHANGELOG.md README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        Gathers system and per process statistics

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/pkg/errors)
BuildRequires:  golang(golang.org/x/sys/unix)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Sun Jul 26 15:54:58 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.11.0-1
- Update to 0.11.0

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed May 15 21:09:59 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.10.2-1
- Initial package