diff --git a/golang-googlecode-goprotobuf.spec b/golang-googlecode-goprotobuf.spec new file mode 100644 index 0000000000000000000000000000000000000000..b26b4439554b4755681efee27c6b864055b21f05 --- /dev/null +++ b/golang-googlecode-goprotobuf.spec @@ -0,0 +1,52 @@ +%global goipath github.com/golang/protobuf +%gometa +Name: golang-googlecode-goprotobuf +Version: 1.3.1 +Release: 2 +Summary: A support for Google's protocol buffers +License: BSD +URL: https://github.com/golang/protobuf +Source0: https://github.com/golang/protobuf/archive/v1.3.1.tar.gz#/protobuf-1.3.1.tar.gz +BuildRequires: protobuf-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. + +%prep +%forgeautosetup -p1 + +%build +%gobuildroot +%gobuild -o _bin/$(basename protoc-gen-go) github.com/golang/protobuf/protoc-gen-go + +%install +%goinstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ + +%check +%gochecks + +%files +%license LICENSE +%doc AUTHORS CONTRIBUTORS README.md +%{_bindir}/* + +%files devel -f devel.file-list + +%changelog +* Fri Dec 13 2019 wutao - 1.3.1-2 +- Package init diff --git a/protobuf-1.3.1.tar.gz b/protobuf-1.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a30c9ea613e37089c59d3ac0e0d2c887831c204c Binary files /dev/null and b/protobuf-1.3.1.tar.gz differ