|
|
|
@ -1,43 +1,134 @@
|
|
|
|
|
# Generated by go2rpm
|
|
|
|
|
%bcond_without check 1.7.0
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# https://github.com/grpc/grpc-go
|
|
|
|
|
%global goipath google.golang.org/grpc
|
|
|
|
|
%global forgeurl https://github.com/grpc/grpc-go
|
|
|
|
|
Version: 1.48.0
|
|
|
|
|
Version: 1.43.0
|
|
|
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
|
|
|
|
|
%global goipaths0 google.golang.org/grpc
|
|
|
|
|
%global goipathsex0 google.golang.org/grpc/status google.golang.org/grpc/test google.golang.org/grpc/internal/transport
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%global goipaths1 google.golang.org/grpc/status google.golang.org/grpc/test google.golang.org/grpc/internal/transport
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
The Go language implementation of GRPC, http/2 based rpc.}
|
|
|
|
|
|
|
|
|
|
# This should be removed in Fedora 39
|
|
|
|
|
%global godevelheader0 %{expand:
|
|
|
|
|
# This package used to be split up to solve a bootstrapping issue.
|
|
|
|
|
# golang-google-grpc-status-devel has since been merged with
|
|
|
|
|
# the main -devel package, so we need this to ensure a smooth update path.
|
|
|
|
|
# See https://bugzilla.redhat.com/2109630
|
|
|
|
|
Provides: golang-google-grpc-status-devel = %{?epoch:epoch:}%{version}-%{release}
|
|
|
|
|
Obsoletes: golang-google-grpc-status-devel < 1.48.0-2
|
|
|
|
|
}
|
|
|
|
|
%global golicenses LICENSE
|
|
|
|
|
%global godocs examples AUTHORS CONTRIBUTING.md README.md Documentation
|
|
|
|
|
|
|
|
|
|
%global golicenses LICENSE NOTICE.txt
|
|
|
|
|
%global godocs examples AUTHORS CODE-OF-CONDUCT.md CONTRIBUTING.md\\\
|
|
|
|
|
GOVERNANCE.md MAINTAINERS.md README.md SECURITY.md\\\
|
|
|
|
|
Documentation
|
|
|
|
|
%global gosupfiles glide.lock glide.yaml
|
|
|
|
|
|
|
|
|
|
Name: %{goname}
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Go language implementation of GRPC
|
|
|
|
|
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
# Upstream license specification: Apache-2.0
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: %{gourl}
|
|
|
|
|
Source: %{gosource}
|
|
|
|
|
Source0: %{gosource}
|
|
|
|
|
Source1: glide.yaml
|
|
|
|
|
Source2: glide.lock
|
|
|
|
|
|
|
|
|
|
# Fix test suite failures due to SHA-1
|
|
|
|
|
# https://github.com/grpc/grpc-go/pull/5074
|
|
|
|
|
Patch0: testdata-use-SHA256-as-signing-algorithm-in-testdata.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: golang(github.com/cespare/xxhash/v2)
|
|
|
|
|
BuildRequires: golang(github.com/cncf/udpa/go/udpa/type/v1)
|
|
|
|
|
BuildRequires: golang(github.com/cncf/xds/go/xds/data/orca/v3)
|
|
|
|
|
BuildRequires: golang(github.com/cncf/xds/go/xds/type/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/admin/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/api/v2)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/api/v2/core)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/core/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/listener/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/rbac/v2)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/route/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/rbac/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v2)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/service/status/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/type)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/type/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/pkg/cache/types)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/pkg/cache/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/pkg/resource/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/pkg/server/v3)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/pkg/wellknown)
|
|
|
|
|
BuildRequires: golang(github.com/golang/glog)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/jsonpb)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/proto)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/protoc-gen-go/descriptor)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes/any)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes/duration)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes/wrappers)
|
|
|
|
|
BuildRequires: golang(github.com/google/cel-go/cel)
|
|
|
|
|
BuildRequires: golang(github.com/google/cel-go/checker/decls)
|
|
|
|
|
BuildRequires: golang(github.com/google/cel-go/common/types)
|
|
|
|
|
BuildRequires: golang(github.com/google/cel-go/interpreter)
|
|
|
|
|
BuildRequires: golang(github.com/google/go-cmp/cmp)
|
|
|
|
|
BuildRequires: golang(github.com/google/uuid)
|
|
|
|
|
BuildRequires: golang(golang.org/x/net/http2)
|
|
|
|
|
BuildRequires: golang(golang.org/x/net/http2/hpack)
|
|
|
|
|
BuildRequires: golang(golang.org/x/net/trace)
|
|
|
|
|
BuildRequires: golang(golang.org/x/oauth2)
|
|
|
|
|
BuildRequires: golang(golang.org/x/oauth2/google)
|
|
|
|
|
BuildRequires: golang(golang.org/x/oauth2/jwt)
|
|
|
|
|
BuildRequires: golang(golang.org/x/sys/unix)
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
BuildRequires: golang(google.golang.org/genproto/googleapis/api/expr/v1alpha1)
|
|
|
|
|
BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/code)
|
|
|
|
|
BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/errdetails)
|
|
|
|
|
BuildRequires: golang(google.golang.org/genproto/googleapis/rpc/status)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/compiler/protogen)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/encoding/protojson)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/proto)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/reflect/protoreflect)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/runtime/protoiface)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/runtime/protoimpl)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/descriptorpb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/known/anypb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/known/durationpb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/known/structpb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/known/timestamppb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/known/wrapperspb)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/types/pluginpb)
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/api/v2/route)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2)
|
|
|
|
|
BuildRequires: golang(github.com/envoyproxy/go-control-plane/envoy/config/listener/v2)
|
|
|
|
|
BuildRequires: golang(github.com/golang/protobuf/ptypes/struct)
|
|
|
|
|
BuildRequires: golang(github.com/google/cel-go/common/types/ref)
|
|
|
|
|
BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts)
|
|
|
|
|
BuildRequires: golang(github.com/hashicorp/golang-lru)
|
|
|
|
|
BuildRequires: golang(google.golang.org/protobuf/testing/protocmp)
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{common_description}
|
|
|
|
@ -46,50 +137,21 @@ Source: %{gosource}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%goprep
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%go_generate_buildrequires
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%build
|
|
|
|
|
for cmd in cmd/* ; do
|
|
|
|
|
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
|
|
|
|
done
|
|
|
|
|
%endif
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
cp %{S:1} %{S:2} .
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%gopkginstall
|
|
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
for test in "InvalidMetadata" \
|
|
|
|
|
"SvrWriteStatusEarlyWrite" \
|
|
|
|
|
"AuthorizationEngineEvaluate" \
|
|
|
|
|
"HealthWatchServiceStatusSetBeforeStartingServer" \
|
|
|
|
|
"PolicyEngineEvaluate" \
|
|
|
|
|
"IdentityEncoding" \
|
|
|
|
|
"Fallback" \
|
|
|
|
|
"HealthCheckOff" \
|
|
|
|
|
; do
|
|
|
|
|
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
|
|
|
|
|
done
|
|
|
|
|
%gocheck
|
|
|
|
|
# balancer/grpclb: needs network
|
|
|
|
|
# credentials/tls/certprovider/pemfile: https://github.com/grpc/grpc-go/issues/4170
|
|
|
|
|
%gocheck -d balancer/grpclb -d credentials/alts -d security/advancedtls -d credentials/tls/certprovider/pemfile
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE NOTICE.txt
|
|
|
|
|
%doc examples AUTHORS CODE-OF-CONDUCT.md CONTRIBUTING.md GOVERNANCE.md
|
|
|
|
|
%doc MAINTAINERS.md README.md SECURITY.md Documentation
|
|
|
|
|
%{_bindir}/protoc-gen-go-grpc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|