当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
139 Star 0 Fork 1

src-openEuler/golang-googlecode-goprotobuf
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
golang-googlecode-goprotobuf.spec 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
jackie_wu123 提交于 2020-03-11 16:08 . add buildrequires
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/golang-googlecode-goprotobuf.git
git@gitee.com:src-openeuler/golang-googlecode-goprotobuf.git
src-openeuler
golang-googlecode-goprotobuf
golang-googlecode-goprotobuf
master

搜索帮助