## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(go.opentelemetry.io/otel/sdk/export/metric/metrictest\\)$ # https://github.com/tonistiigi/opentelemetry-go-contrib %global goipath github.com/tonistiigi/opentelemetry-go-contrib Version: 0.21.0 %global commit cfed0ec004c51e9ce46e9409003cd9e5f76f1b09 %gometa %global common_description %{expand: Collection of extensions for OpenTelemetry-Go.} %global golicenses LICENSE %global godocs README.md RELEASING.md CHANGELOG.md CONTRIBUTING.md Name: %{goname} Release: %autorelease Summary: Collection of extensions for OpenTelemetry-Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(cloud.google.com/go/compute/metadata) BuildRequires: golang(github.com/DataDog/datadog-go/statsd) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/golang/snappy) BuildRequires: golang(github.com/prometheus/prometheus/prompb) BuildRequires: golang(github.com/spf13/afero) BuildRequires: golang(github.com/spf13/viper) # Examples are not packaged # BuildRequires: golang(go.opencensus.io/examples/exporter) # BuildRequires: golang(go.opencensus.io/examples/grpc/proto) BuildRequires: golang(go.opencensus.io/plugin/ocgrpc) BuildRequires: golang(go.opencensus.io/trace) BuildRequires: golang(go.opencensus.io/trace/propagation) BuildRequires: golang(go.opentelemetry.io/otel) BuildRequires: golang(go.opentelemetry.io/otel/attribute) BuildRequires: golang(go.opentelemetry.io/otel/baggage) BuildRequires: golang(go.opentelemetry.io/otel/bridge/opencensus/utils) BuildRequires: golang(go.opentelemetry.io/otel/exporters/stdout/stdouttrace) BuildRequires: golang(go.opentelemetry.io/otel/metric) BuildRequires: golang(go.opentelemetry.io/otel/metric/global) BuildRequires: golang(go.opentelemetry.io/otel/metric/number) BuildRequires: golang(go.opentelemetry.io/otel/metric/unit) BuildRequires: golang(go.opentelemetry.io/otel/propagation) BuildRequires: golang(go.opentelemetry.io/otel/sdk/export/metric) BuildRequires: golang(go.opentelemetry.io/otel/sdk/export/metric/aggregation) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/histogram) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/controller/basic) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/processor/basic) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/selector/simple) BuildRequires: golang(go.opentelemetry.io/otel/sdk/resource) BuildRequires: golang(go.opentelemetry.io/otel/sdk/trace) BuildRequires: golang(go.opentelemetry.io/otel/semconv/v1.4.0) BuildRequires: golang(go.opentelemetry.io/otel/trace) BuildRequires: golang(google.golang.org/grpc) BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1) BuildRequires: golang(k8s.io/client-go/kubernetes) BuildRequires: golang(k8s.io/client-go/rest) %if %{with check} # Tests BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata) BuildRequires: golang(github.com/gogo/protobuf/proto) BuildRequires: golang(github.com/golang/snappy) BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(github.com/prometheus/prometheus/prompb) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/mock) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(go.opentelemetry.io/otel) BuildRequires: golang(go.opentelemetry.io/otel/attribute) BuildRequires: golang(go.opentelemetry.io/otel/metric) BuildRequires: golang(go.opentelemetry.io/otel/metric/global) BuildRequires: golang(go.opentelemetry.io/otel/metric/number) BuildRequires: golang(go.opentelemetry.io/otel/oteltest) BuildRequires: golang(go.opentelemetry.io/otel/propagation) BuildRequires: golang(go.opentelemetry.io/otel/sdk/export/metric) BuildRequires: golang(go.opentelemetry.io/otel/sdk/export/metric/aggregation) # BuildRequires: golang(go.opentelemetry.io/otel/sdk/export/metric/metrictest) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/aggregatortest) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/histogram) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/lastvalue) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount) BuildRequires: golang(go.opentelemetry.io/otel/sdk/metric/aggregator/sum) BuildRequires: golang(go.opentelemetry.io/otel/sdk/resource) BuildRequires: golang(go.opentelemetry.io/otel/sdk/trace) BuildRequires: golang(go.opentelemetry.io/otel/semconv/v1.4.0) BuildRequires: golang(go.opentelemetry.io/otel/trace) BuildRequires: golang(go.uber.org/goleak) %endif %description %{common_description} %gopkg %prep %goprep sed -i "s|go.opentelemetry.io/contrib|github.com/tonistiigi/opentelemetry-go-contrib|" $(find . -iname "*.go" -type f) rm -rfv instrumentation/github.com/astaxie/beego/ # examples are not packaged rm -rvf propagators/opencensus/examples %install %gopkginstall %if %{with check} %check %gocheck -t exporters/metric -t instrumentation %endif %gopkgfiles %changelog * Mon Jan 31 2022 Robert-André Mauchin 0.21.0-4 - Uncommitted changes * Tue Aug 03 2021 Robert-André Mauchin 0.21.0-2 - Uncommitted changes * Mon Aug 02 2021 Robert-André Mauchin 0.21.0-1 - Initial release