commit 221ff9c660fc565997ef42478bbb100e0acbf893
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Sep 22 11:53:51 2014 +0200
initial commit
.gitignore | 1 +
golang-googlecode-gogoprotobuf.spec | 147 +++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 149 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..94a0ac3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/d228c1a206c3a756d7ec6cc3579d92d00c35a161.tar.gz
diff --git a/golang-googlecode-gogoprotobuf.spec b/golang-googlecode-gogoprotobuf.spec
new file mode 100644
index 0000000..9811522
--- /dev/null
+++ b/golang-googlecode-gogoprotobuf.spec
@@ -0,0 +1,147 @@
+%global debug_package %{nil}
+%global provider_prefix code
+%global provider google
+%global provider_tld com
+%global project p
+%global repo gogoprotobuf
+%global import_path
%{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit d228c1a206c3a756d7ec6cc3579d92d00c35a161
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global setupcommit %(c=%{commit}; echo ${c:0:12})
+
+Name: golang-%{provider}%{provider_prefix}-%{repo}
+Version: 0
+Release: 0.8.git%{shortcommit}%{?dist}
+Summary: A fork of goprotobuf with several extra features
+License: BSD
+URL: http://%{import_path}
+Source0:
https://gogoprotobuf.googlecode.com/archive/%{commit}.tar.gz
+BuildRequires: golang >= 1.2.1-3
+ExclusiveArch: %{ix86} x86_64 %{arm}
+Requires: protobuf
+
+%description
+%{summary}
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Requires: %{name}
+Summary: A fork of goprotobuf with several extra features
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/fieldpath) = %{version}-%{release}
+Provides: golang(%{import_path}/parser) = %{version}-%{release}
+Provides: golang(%{import_path}/io) = %{version}-%{release}
+Provides: golang(%{import_path}/proto) = %{version}-%{release}
+Provides: golang(%{import_path}/protoc-gen-gogo) = %{version}-%{release}
+Provides: golang(%{import_path}/protoc-gen-gogo/descriptor) =
%{version}-%{release}
+Provides: golang(%{import_path}/protoc-gen-gogo/generator) = %{version}-%{release}
+Provides: golang(%{import_path}/protoc-gen-gogo/plugin) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/defaultcheck) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/description) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/embedcheck) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/enumstringer) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/equal) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/face) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/gostring) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/marshalto) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/populate) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/size) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/stringer) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/testgen) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/union) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/unmarshal) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/unsafemarshaler) = %{version}-%{release}
+Provides: golang(%{import_path}/plugin/unsafeunmarshaler) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+%prep
+%setup -q -n %{repo}-%{setupcommit}
+
+%build
+unset GOPATH
+export GOPATH=$(pwd)
+mkdir -p
src/code.google.com/p/
+ln -s $(pwd)
src/code.google.com/p/gogoprotobuf
+cd protoc-gen-gogo
+go build
+
+%install
+install -d %{buildroot}%{_bindir}
+install -m 755 protoc-gen-gogo/protoc-gen-gogo %{buildroot}/%{_bindir}/protoc-gen-gogo
+rm -rf proto/testdata protoc-gen-gogo/{protoc-gen-gogo,testdata} fieldpath/fieldpath-gen
+mkdir -p %{buildroot}/%{gopath}/src/%{import_path}
+for d in fieldpath io parser plugin proto protoc-gen-gogo; do
+ cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}
+ find %{buildroot}/%{gopath}/ -name Makefile -delete
+done
+
+%files
+%doc CONTRIBUTORS LICENSE README
+%{_bindir}/protoc-gen-gogo
+
+%files devel
+%doc CONTRIBUTORS LICENSE README
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/fieldpath
+%dir %{gopath}/src/%{import_path}/parser
+%dir %{gopath}/src/%{import_path}/plugin
+%dir %{gopath}/src/%{import_path}/plugin/defaultcheck
+%dir %{gopath}/src/%{import_path}/plugin/description
+%dir %{gopath}/src/%{import_path}/plugin/embedcheck
+%dir %{gopath}/src/%{import_path}/plugin/enumstringer
+%dir %{gopath}/src/%{import_path}/plugin/equal
+%dir %{gopath}/src/%{import_path}/plugin/face
+%dir %{gopath}/src/%{import_path}/plugin/gostring
+%dir %{gopath}/src/%{import_path}/plugin/marshalto
+%dir %{gopath}/src/%{import_path}/plugin/populate
+%dir %{gopath}/src/%{import_path}/plugin/size
+%dir %{gopath}/src/%{import_path}/plugin/stringer
+%dir %{gopath}/src/%{import_path}/plugin/testgen
+%dir %{gopath}/src/%{import_path}/plugin/union
+%dir %{gopath}/src/%{import_path}/plugin/unmarshal
+%dir %{gopath}/src/%{import_path}/plugin/unsafemarshaler
+%dir %{gopath}/src/%{import_path}/plugin/unsafeunmarshaler
+%dir %{gopath}/src/%{import_path}/io
+%dir %{gopath}/src/%{import_path}/proto
+%dir %{gopath}/src/%{import_path}/protoc-gen-gogo
+%dir %{gopath}/src/%{import_path}/protoc-gen-gogo/descriptor
+%dir %{gopath}/src/%{import_path}/protoc-gen-gogo/generator
+%dir %{gopath}/src/%{import_path}/protoc-gen-gogo/plugin
+%{gopath}/src/%{import_path}/fieldpath/*.go
+%{gopath}/src/%{import_path}/io/*.go
+%{gopath}/src/%{import_path}/parser/*.go
+%{gopath}/src/%{import_path}/plugin/defaultcheck/*.go
+%{gopath}/src/%{import_path}/plugin/description/*.go
+%{gopath}/src/%{import_path}/plugin/embedcheck/*.go
+%{gopath}/src/%{import_path}/plugin/enumstringer/*.go
+%{gopath}/src/%{import_path}/plugin/equal/*.go
+%{gopath}/src/%{import_path}/plugin/face/*.go
+%{gopath}/src/%{import_path}/plugin/gostring/*.go
+%{gopath}/src/%{import_path}/plugin/marshalto/*.go
+%{gopath}/src/%{import_path}/plugin/populate/*.go
+%{gopath}/src/%{import_path}/plugin/size/*.go
+%{gopath}/src/%{import_path}/plugin/stringer/*.go
+%{gopath}/src/%{import_path}/plugin/testgen/*.go
+%{gopath}/src/%{import_path}/plugin/union/*.go
+%{gopath}/src/%{import_path}/plugin/unmarshal/*.go
+%{gopath}/src/%{import_path}/plugin/unsafemarshaler/*.go
+%{gopath}/src/%{import_path}/plugin/unsafeunmarshaler/*.go
+%{gopath}/src/%{import_path}/proto/*.go
+%{gopath}/src/%{import_path}/protoc-gen-gogo/*.go
+%{gopath}/src/%{import_path}/protoc-gen-gogo/descriptor/*.pb.go*
+%{gopath}/src/%{import_path}/protoc-gen-gogo/descriptor/*.go*
+%{gopath}/src/%{import_path}/protoc-gen-gogo/generator/*.go
+%{gopath}/src/%{import_path}/protoc-gen-gogo/plugin/*.go*
+
+%changelog
+* Fri Sep 19 2014 Lokesh Mandvekar <lsm5(a)fedoraproject.org> - 0-0.8.gitd228c1a
+- preserve timestamps
+- don't own golang dirs
+- don't redifine gopath
+- ExcluseBuild for goarches
+
+* Thu Jul 17 2014 Colin Walters <walters(a)verbum.org> - 0-0.7.gitd228c1a
+- Initial package
diff --git a/sources b/sources
index e69de29..6393b17 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2576e2b124987e7b49484535f2dd2f59 d228c1a206c3a756d7ec6cc3579d92d00c35a161.tar.gz