# Bootstrap for google.golang.org/api %bcond_without bootstrapping # Run tests in check section %bcond_with check %global goipath go.opencensus.io %global forgeurl https://github.com/census-instrumentation/opencensus-go Version: 0.8.0 %global common_description %{expand: OpenCensus Go is a Go implementation of OpenCensus, a toolkit for collecting application performance and behavior monitoring data. Currently it consists of three major components: tags, stats, and tracing.} %gometa Name: %{goname} Release: 1%{?dist} Summary: A stats collection and distributed tracing framework License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/golang/mock/gomock) BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp) BuildRequires: golang(github.com/golang/protobuf/ptypes/wrappers) BuildRequires: golang(github.com/openzipkin/zipkin-go/model) BuildRequires: golang(github.com/openzipkin/zipkin-go/reporter) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/prometheus/client_golang/prometheus/promhttp) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/oauth2/google) %if %{without bootstrapping} BuildRequires: golang(google.golang.org/api/option) BuildRequires: golang(google.golang.org/api/support/bundler) %endif BuildRequires: golang(google.golang.org/genproto/googleapis/api/distribution) BuildRequires: golang(google.golang.org/genproto/googleapis/api/label) BuildRequires: golang(google.golang.org/genproto/googleapis/api/metric) BuildRequires: golang(google.golang.org/genproto/googleapis/api/monitoredres) BuildRequires: golang(google.golang.org/genproto/googleapis/devtools/cloudtrace/v2) BuildRequires: golang(google.golang.org/genproto/googleapis/monitoring/v3) BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/status) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(google.golang.org/grpc/codes) BuildRequires: golang(google.golang.org/grpc/grpclog) BuildRequires: golang(google.golang.org/grpc/metadata) BuildRequires: golang(google.golang.org/grpc/stats) BuildRequires: golang(google.golang.org/grpc/status) %if %{with check} BuildRequires: golang(cloud.google.com/go/monitoring/apiv3) BuildRequires: golang(cloud.google.com/go/trace/apiv2) BuildRequires: golang(git.apache.org/thrift.git/lib/go/thrift) %endif %description %{common_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{summary} This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %forgeautosetup %if %{with bootstrapping} rm -rf exporter/stackdriver rm -rf exporter/jaeger %endif %install %goinstall %if %{with check} %check %gochecks %endif %files devel -f devel.file-list %license LICENSE %doc README.md CONTRIBUTING.md AUTHORS %changelog * Thu Mar 22 2018 Robert-André Mauchin - 0.8.0-1 - First package for Fedora