commit 91ffefbe70cf926e67f659bb5208860c06509470 Author: Daniel Demus Date: Sat Jan 4 01:25:33 2025 +0100 Initial version diff --git a/golang-connectrpc-connect.spec b/golang-connectrpc-connect.spec new file mode 100644 index 0000000..b934518 --- /dev/null +++ b/golang-connectrpc-connect.spec @@ -0,0 +1,86 @@ +# Generated by go2rpm 1.14.0 +%bcond check 1 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +Version: 1.16.2 +# https://github.com/connectrpc/connect-go +%global goipath connectrpc.com/connect +%global forgeurl https://github.com/connectrpc/connect-go + +%gometa -f + +%global common_description %{expand: +The Go implementation of Connect: Protobuf RPC that works.} + +%global golicenses LICENSE +%global godocs MAINTAINERS.md README.md RELEASE.md SECURITY.md + +Name: golang-connectrpc-connect +Release: %autorelease +Summary: The Go implementation of Connect: Protobuf RPC that works + +License: Apache-2.0 +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep -A +rm -fR internal/conformance +%dnl %autopatch -p1 + +%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 + +%install +%gopkginstall +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc MAINTAINERS.md README.md RELEASE.md SECURITY.md +# REMOVE BEFORE SUBMITTING THIS FOR REVIEW +# --- +# New Fedora packages should not use globs to avoid installing conflicting +# binaries. +# Write a _bindir line per each of the binaries the package will install. +# --- +# REMOVE BEFORE SUBMITTING THIS FOR REVIEW +%{_bindir}/* +%endif + +%gopkgfiles + +%changelog +%autochangelog