Blob Blame History Raw
# Generated by go2rpm 1.3
%ifnarch %{arm} %{ix86}
%bcond_without check
%endif

# https://github.com/DataDog/sketches-go
%global goipath         github.com/DataDog/sketches-go
Version:                1.0.0

%gometa

%global common_description %{expand:
Go implementations of the distributed quantile sketch algorithms GKArray and
DDSketch.}

%global golicenses      LICENSE LICENSE-3rdparty.csv NOTICE
%global godocs          CONTRIBUTING.md README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        Implementations of the distributed quantile sketch algorithms

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

BuildRequires:  golang(google.golang.org/protobuf/reflect/protoreflect)
BuildRequires:  golang(google.golang.org/protobuf/runtime/protoimpl)

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

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
# dataset: test not up to date
%gocheck -d dataset
%endif

%gopkgfiles

%changelog
* Mon Dec 21 13:33:37 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1
- Initial package