代码拉取完成,页面将自动刷新
%global goipath github.com/golang/protobuf
%global commit 5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23
%gometa -i
Name: golang-googlecode-goprotobuf
Version: 0
Release: 0.38
Summary: A support for Google's protocol buffers
License: BSD
URL: %gourl
Source0: %gosource
BuildRequires: compiler(go-compiler)
Requires: protobuf
Provides: protoc-gen-go = %{version}-%{release}
%description
This package provides a library that implements run-time support for encoding
(marshaling), decoding (unmarshaling), and accessing protocol buffers in the
Go language. Install golang-googlecode-goprotobuf for the related protocol
compiler plugin. This package contains library source intended for building
other packages which use import path with github.com/golang/protobuf prefix.
%package devel
Summary: Development library and headers for golang-googlecode-goprotobuf package
BuildArch: noarch
%description devel
Development library and headers for golang-googlecode-goprotobuf package.
%package help
Summary: Help documents for golang-googlecode-goprotobuf
%description help
Help documents forgolang-googlecode-goprotobuf.
%prep
%forgesetup
%build
%gobuildroot
%gobuild -o _bin/protoc-gen-go %{goipath}/protoc-gen-go
%install
install -d %{buildroot}%{_bindir}
install -m 755 _bin/protoc-gen-go %{buildroot}/%{_bindir}/protoc-gen-go
files=$(find . -name "testdata" -type d)
%goinstall $files
%check
export PATH=$PATH:$(pwd)/_bin
%gochecks -d proto/testdata -d proto
%files
%doc LICENSE
%{_bindir}/protoc-gen-go
%files devel -f devel.file-list
%doc LICENSE
%files help
%doc *.md AUTHORS CONTRIBUTORS
%changelog
* Mon Mar 11 2020 wutao <wutao61@huawei.com> - 0-0.38
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。