From 9c53ec7e8c834b4396a2bbf8f8cf453d124f9ad6 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Apr 11 2019 12:56:53 +0000 Subject: Release 1.3.1 Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore index d785e53..61fc22a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /protobuf-5afd06f9d81a86d6e3bb7dc702d6bd148ea3ff23.tar.gz /protobuf-1.1.0.tar.gz /protobuf-1.2.0.tar.gz +/protobuf-1.3.1.tar.gz diff --git a/golang-googlecode-goprotobuf.spec b/golang-googlecode-goprotobuf.spec index 65869de..7a953bb 100644 --- a/golang-googlecode-goprotobuf.spec +++ b/golang-googlecode-goprotobuf.spec @@ -1,14 +1,20 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/golang/protobuf %global goipath github.com/golang/protobuf -Version: 1.2.0 +Version: 1.3.1 %gometa Name: golang-googlecode-goprotobuf -Release: 2%{?dist} -Summary: Go support for Google protocol buffers +Release: 1%{?dist} +Summary: Go support for Google's protocol buffers + +# Upstream license specification: BSD-3-Clause License: BSD -URL: %gourl -Source0: %gosource +URL: %{gourl} +Source0: %{gosource} BuildRequires: protobuf-compiler Requires: protobuf @@ -37,38 +43,37 @@ building other packages which use import path with %{goipath} prefix. %prep -%forgesetup +%forgeautosetup -p1 %build %gobuildroot - -%gobuild -o _bin/protoc-gen-go %{goipath}/protoc-gen-go +for cmd in protoc-gen-go; do + %gobuild -o _bin/$(basename $cmd) %{goipath}/$cmd +done %install -install -d %{buildroot}%{_bindir} -install -m 755 _bin/protoc-gen-go %{buildroot}/%{_bindir}/protoc-gen-go - -# source codes for building projects -files=$(find . -name "testdata" -type d) -%goinstall $files +%goinstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ +%if %{with check} %check -# Disable until https://github.com/golang/protobuf/issues/763 is fixed -export PATH=$PATH:$(pwd)/_bin -# %%gochecks -d proto/testdata -d proto - -#define license tag if not already defined -%{!?_licensedir:%global license %doc} +%gochecks +%endif %files -%doc AUTHORS CONTRIBUTORS LICENSE README.md -%{_bindir}/protoc-gen-go +%license LICENSE +%doc AUTHORS CONTRIBUTORS README.md +%{_bindir}/* %files devel -f devel.file-list %license LICENSE -%doc *.md AUTHORS CONTRIBUTORS +%doc AUTHORS CONTRIBUTORS README.md %changelog +* Thu Apr 11 14:42:10 CEST 2019 Robert-André Mauchin - 1.3.1-1 +- Release 1.3.1 + * Mon Feb 25 2019 Robert-André Mauchin - 1.2.0-3 - Disable tests until https://github.com/golang/protobuf/issues/763 is fixed diff --git a/sources b/sources index 8ff6c74..c606903 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (protobuf-1.2.0.tar.gz) = a0f596ee96f7501ee47da75ea234c1e29c0abb2c3fda731acd601a55880502ae90d70f6d3da9c9a35e493fd1bcb69971c062e16b1e49a0996137950dac2effac +SHA512 (protobuf-1.3.1.tar.gz) = 7dfc6d7851c7181e1a73effe9e8a97752bb428bf207a44b065412a8e87e0e3e200b5eef3d8c68af33a0721d12a8b98bfa88b22add074b19b6e1759e9268abf25