commit b47326a0c6d70842e9be2d714b556a30d6f7bd1d Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Sep 24 12:48:26 2014 +0200
Initial commit
.gitignore | 1 + golang-github-stretchr-objx.spec | 61 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..95f92d7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/objx-cbeaeb1.tar.gz diff --git a/golang-github-stretchr-objx.spec b/golang-github-stretchr-objx.spec new file mode 100644 index 0000000..40350fb --- /dev/null +++ b/golang-github-stretchr-objx.spec @@ -0,0 +1,61 @@ +%global debug_package %{nil} +%global import_path github.com/stretchr/objx +%global commit cbeaeb16a013161a98496fad62933b1d21786672 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-github-stretchr-objx +Version: 0 +Release: 0.2.git%{shortcommit}%{?dist} +Summary: Go package for dealing with maps, slices, JSON and other data +License: MIT +URL: http://godoc.org/%%7Bimport_path%7D +Source0: https://%%7Bimport_path%7D/archive/%%7Bcommit%7D/objx-%%7Bshortcommit%7D.tar... +BuildArch: noarch + +%description +Objx provides the `objx.Map` type, which is a `map[string]interface{}` that +exposes a powerful `Get` method (among others) that allows you to easily and +quickly get access to data within the map, without having to worry too much +about type assertions, missing data, default values etc. + +%package devel +BuildRequires: golang >= 1.2.1-3 +Requires: golang >= 1.2.1-3 +Requires: golang(github.com/stretchr/testify) +Summary: Go package for dealing with maps, slices, JSON and other data +Provides: golang(%{import_path}) = %{version}-%{release} + +%description devel +Objx provides the `objx.Map` type, which is a `map[string]interface{}` that +exposes a powerful `Get` method (among others) that allows you to easily and +quickly get access to data within the map, without having to worry too much +about type assertions, missing data, default values etc. + +%prep +%setup -q -n objx-%{commit} + +%build + +%install +install -d %{buildroot}/%{gopath}/src/%{import_path} +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/ +cp -pav codegen %{buildroot}/%{gopath}/src/%{import_path}/ + +%check +# as long as there is circular dependency between +# golang-github-stretchr-testify and golang-github-stretchr-objx +# there can not by test + +%files devel +%doc LICENSE.md README.md +%dir %{gopath}/src/%{import_path} +%dir %{gopath}/src/%{import_path}/codegen +%{gopath}/src/%{import_path}/* +%{gopath}/src/%{import_path}/codegen/* + +%changelog +* Mon Sep 15 2014 Lokesh Mandvekar lsm5@fedoraproject.org - 0-0.2.gitcbeaeb1 +- do not redefine gopath + +* Wed Aug 06 2014 Adam Miller maxamillion@fedoraproject.org - 0-0.1.gitcbeaeb1 +- First package for Fedora. diff --git a/sources b/sources index e69de29..ef5eb17 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f85e2560806c565e2c2a62bdf5f16a20 objx-cbeaeb1.tar.gz
golang@lists.fedoraproject.org