diff --git a/golang-googlecode-goprotobuf.spec b/golang-googlecode-goprotobuf.spec index 22170d80b01a6bb3fd2807f448bbde40b39d4546..7d0dbcf769ac015f4e7358cd673f61e3e3d41009 100644 --- a/golang-googlecode-goprotobuf.spec +++ b/golang-googlecode-goprotobuf.spec @@ -1,13 +1,17 @@ -%global goipath github.com/golang/protobuf -%gometa +%global goipath github.com/golang/protobuf +%global commit 5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23 + +%gometa -i + Name: golang-googlecode-goprotobuf -Version: 1.3.1 -Release: 2 +Version: 0 +Release: 0.38 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 compiler(go-compiler) +URL: %gourl +Source0: %gosource + +BuildRequires: compiler(go-compiler) Requires: protobuf Provides: protoc-gen-go = %{version}-%{release} @@ -25,28 +29,41 @@ 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 -%forgeautosetup -p1 +%forgesetup %build %gobuildroot -%gobuild -o _bin/$(basename protoc-gen-go) github.com/golang/protobuf/protoc-gen-go + +%gobuild -o _bin/protoc-gen-go %{goipath}/protoc-gen-go %install -%goinstall -install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ +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 -%gochecks +export PATH=$PATH:$(pwd)/_bin +%gochecks -d proto/testdata -d proto %files -%license LICENSE -%doc AUTHORS CONTRIBUTORS README.md -%{_bindir}/* +%doc LICENSE +%{_bindir}/protoc-gen-go %files devel -f devel.file-list +%doc LICENSE + +%files help +%doc *.md AUTHORS CONTRIBUTORS %changelog -* Fri Dec 13 2019 wutao - 1.3.1-2 +* Mon Mar 11 2020 wutao - 0-0.38 - Package init diff --git a/protobuf-1.3.1.tar.gz b/protobuf-1.3.1.tar.gz deleted file mode 100644 index a30c9ea613e37089c59d3ac0e0d2c887831c204c..0000000000000000000000000000000000000000 Binary files a/protobuf-1.3.1.tar.gz and /dev/null differ diff --git a/protobuf-5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23.tar.gz b/protobuf-5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e31727e5b03f020e19a4bc50ad576cf6b0b9867e Binary files /dev/null and b/protobuf-5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23.tar.gz differ