Blame golang-opencensus.spec

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