File protobuf-go.spec of Package protobuf-go

#
# spec file for package protobuf-go
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define pkg_name protobuf-go

Name:           protoc-gen-go
Version:        1.27.1
Release:        0
Summary:        Go support for Google's protocol buffers
License:        BSD-3-Clause
Group:          Development/Languages/Other
URL:            https://github.com/protocolbuffers/protobuf-go
Source0:        https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v%{version}.tar.gz#/%{pkg_name}-%{version}.tar.gz
Source1:        vendor.tar.gz
Source2:        protobuf-go-rpmlintrc
BuildRequires:  go

%description
protoc-gen-go implements Go bindings for protocol buffers.
For information about protocol buffers themselves, see
https://developers.google.com/protocol-buffers

%prep
%autosetup -n %{pkg_name}-%{version} -a1 -p1

%build
go build -mod=vendor -buildmode=pie -trimpath -ldflags=-buildid= -o . ./cmd/protoc-gen-go

%install
install -D -m 0755 -t %{buildroot}%{_bindir} protoc-gen-go

%files
%license LICENSE PATENTS
%doc README.md
%{_bindir}/protoc-gen-go

%changelog
openSUSE Build Service is sponsored by