commit d958d60189edc26051beb83ef9814646920a1c94 Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Oct 8 13:39:21 2014 +0200
Initial commit - resolves: #1148460
.gitignore | 1 + golang-github-SeanDolphin-bqschema.spec | 66 +++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..226f632 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bqschema-a713d26.tar.gz diff --git a/golang-github-SeanDolphin-bqschema.spec b/golang-github-SeanDolphin-bqschema.spec new file mode 100644 index 0000000..2554e0b --- /dev/null +++ b/golang-github-SeanDolphin-bqschema.spec @@ -0,0 +1,66 @@ +%global provider github +%global provider_tld com +%global project SeanDolphin +%global repo bqschema +%global commit a713d26df274e999ec10e9bbc7e73a1c4791053c + +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global debug_package %{nil} + +Name: golang-%{provider}-%{project}-%{repo} +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: Package for creating Google Big Query from Go structs +License: ASL 2.0 +URL: http://%%7Bimport_path%7D +Source0: https://github.com/%%7Bproject%7D/%%7Brepo%7D/archive/%%7Bcommit%7D/%%7Brepo... +BuildArch: noarch + +%description +BQSchema is a package used to created Google Big Query schema +directly from Go structs and import BigQuery QueryResponse +into arrays of Go structs. + +%package devel +BuildRequires: golang >= 1.2.1-3 +BuildRequires: golang(github.com/onsi/gomega) +BuildRequires: golang(github.com/onsi/ginkgo) +BuildRequires: golang(code.google.com/p/google-api-go-client) +Requires: golang >= 1.2.1-3 +Summary: %{summary} +Provides: golang(%{import_path}) = %{version}-%{release} + +%description devel +BQSchema is a package used to created Google Big Query schema +directly from Go structs and import BigQuery QueryResponse +into arrays of Go structs. + +This package contains library source intended for +building other packages which use %{project}/%{repo}. + +%prep +%setup -q -n %{repo}-%{commit} + +%build + +%install +install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ +cp -pav *.{go,yaml} %{buildroot}/%{gopath}/src/%{import_path}/ + +%check +GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} + +%files devel +%doc README.md LICENSE +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%dir %{gopath}/src/%{import_path} +%{gopath}/src/%{import_path}/*.go +%{gopath}/src/%{import_path}/*.yaml + +%changelog +* Thu Sep 25 2014 Jan Chaloupka jchaloup@redhat.com - 0-0.1.gitb8a3500 +- First package for Fedora + + + diff --git a/sources b/sources index e69de29..19ebba4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7be2c54fccbbcc9d8040eb08658ba503 bqschema-a713d26.tar.gz
golang@lists.fedoraproject.org