[golang-github-stretchr-objx/f21] Initial commit

Jan Chaloupka jchaloup at fedoraproject.org
Wed Sep 24 11:00:04 UTC 2014


commit 18e1ef618191b4d6a477fdc1b4e076b7076091a2
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Wed Sep 24 13:00:04 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/%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/objx-%{shortcommit}.tar.gz
+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 at fedoraproject.org> - 0-0.2.gitcbeaeb1
+- do not redefine gopath
+
+* Wed Aug 06 2014 Adam Miller <maxamillion at 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


More information about the scm-commits mailing list