2019-06-23 15:51:02 +00:00
|
|
|
# Generated by go2rpm
|
2022-10-15 06:32:08 +00:00
|
|
|
%bcond_with check 1.7.0
|
|
|
|
%bcond_without bootstrap
|
2019-06-23 15:51:02 +00:00
|
|
|
|
2022-08-07 18:13:06 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
2019-06-23 15:51:02 +00:00
|
|
|
# https://github.com/grpc/grpc-go
|
|
|
|
%global goipath google.golang.org/grpc
|
|
|
|
%global forgeurl https://github.com/grpc/grpc-go
|
2022-08-07 18:13:06 +00:00
|
|
|
Version: 1.48.0
|
2019-06-23 15:51:02 +00:00
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
The Go language implementation of GRPC, http/2 based rpc.}
|
|
|
|
|
2022-09-19 23:17:34 +00:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2022-08-07 18:13:06 +00:00
|
|
|
%global golicenses LICENSE NOTICE.txt
|
|
|
|
%global godocs examples AUTHORS CODE-OF-CONDUCT.md CONTRIBUTING.md\\\
|
|
|
|
GOVERNANCE.md MAINTAINERS.md README.md SECURITY.md\\\
|
|
|
|
Documentation
|
2019-06-23 15:51:02 +00:00
|
|
|
|
|
|
|
Name: %{goname}
|
2022-10-15 06:32:08 +00:00
|
|
|
Release: %autorelease -e 0.riscv64
|
2019-06-23 15:51:02 +00:00
|
|
|
Summary: Go language implementation of GRPC
|
|
|
|
|
2022-08-07 18:13:06 +00:00
|
|
|
License: Apache-2.0
|
2019-06-23 15:51:02 +00:00
|
|
|
URL: %{gourl}
|
2022-08-07 18:13:06 +00:00
|
|
|
Source: %{gosource}
|
2019-06-23 15:51:02 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
%gopkg
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%goprep
|
2022-08-07 18:13:06 +00:00
|
|
|
|
|
|
|
%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
|
2019-06-23 15:51:02 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%gopkginstall
|
2022-08-07 18:13:06 +00:00
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
2019-06-23 15:51:02 +00:00
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
2022-08-07 18:13:06 +00:00
|
|
|
for test in "InvalidMetadata" \
|
2022-08-07 19:38:29 +00:00
|
|
|
"SvrWriteStatusEarlyWrite" \
|
2022-08-08 00:33:07 +00:00
|
|
|
"AuthorizationEngineEvaluate" \
|
2022-08-08 17:06:02 +00:00
|
|
|
"HealthWatchServiceStatusSetBeforeStartingServer" \
|
2022-08-09 19:14:17 +00:00
|
|
|
"PolicyEngineEvaluate" \
|
|
|
|
"IdentityEncoding" \
|
|
|
|
"Fallback" \
|
|
|
|
"HealthCheckOff" \
|
2022-08-07 18:13:06 +00:00
|
|
|
; do
|
|
|
|
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
|
|
|
|
done
|
|
|
|
%gocheck
|
2019-06-23 15:51:02 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2022-08-07 18:13:06 +00:00
|
|
|
%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
|
|
|
|
|
2019-06-23 15:51:02 +00:00
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2021-08-06 20:00:22 +00:00
|
|
|
%autochangelog
|