# Generated by go2rpm 1.15.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 # https://github.com/protocolbuffers/protobuf-go %global goipath google.golang.org/protobuf %global forgeurl https://github.com/protocolbuffers/protobuf-go Version: 1.36.2 %global tag v1.36.2 %gometa -L -f %global common_description %{expand: Go support for Google's protocol buffers.} %global golicenses LICENSE PATENTS %global godocs CONTRIBUTING.md README.md SECURITY.md Name: golang-google-protobuf Release: %autorelease Summary: Go support for Google's protocol buffers %global godevelheader %{expand: Obsoletes: compat-golang-github-protobuf-devel < 1.31.0-3 } License: BSD-3-Clause URL: %{gourl} Source: %{gosource} BuildRequires: protobuf-compiler Requires: protobuf Provides: protoc-gen-go = %{version}-%{release} Provides: golang(%{goipath}/protoc-gen-go) = %{version}-%{release} %description %{common_description} %gopkg %prep %goprep -A %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 %dnl %gobuild -o %{gobuilddir}/bin/protobuf-go %{goipath} %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 PATENTS %doc CONTRIBUTING.md README.md SECURITY.md %{_bindir}/protoc-gen-go %endif %gopkgfiles %changelog %autochangelog