commit 98dedd1fd5c6f4366dd901c990f1b067130a986a
Author: Jan Chaloupka <[email protected]>
Date:   Thu Oct 16 22:55:04 2014 +0200

    Initial commit
    - resolves: #1153724

 .gitignore                                |    1 +
 golang-github-mitchellh-mapstructure.spec |   71 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..06d23ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mapstructure-740c764.tar.gz
diff --git a/golang-github-mitchellh-mapstructure.spec 
b/golang-github-mitchellh-mapstructure.spec
new file mode 100644
index 0000000..115297b
--- /dev/null
+++ b/golang-github-mitchellh-mapstructure.spec
@@ -0,0 +1,71 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         mitchellh
+%global repo            mapstructure
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          740c764bc6149d3f1806231418adb9f52c11bcbf
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Go library for decoding generic map values into native Go 
structures
+License:        MIT
+URL:            https://%{import_path}
+Source0:        
https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:      noarch
+
+%description
+mapstructure is a Go library for decoding generic map values to structures
+and vice versa, while providing helpful error handling.
+
+This library is most useful when decoding values from some data stream (JSON,
+Gob, etc.) where you don't quite know the structure of the underlying data
+until you read a part of it. You can therefore read a map[string]interface{}
+and use this library to decode it into the proper underlying
+native Go structure.
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        %{summary}
+Provides:       golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+mapstructure is a Go library for decoding generic map values to structures
+and vice versa, while providing helpful error handling.
+
+This library is most useful when decoding values from some data stream (JSON,
+Gob, etc.) where you don't quite know the structure of the underlying data
+until you read a part of it. You can therefore read a map[string]interface{}
+and use this library to decode it into the proper underlying
+native Go structure.
+
+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 %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+# sometimes tests pass, sometimes not, probably due to unordered list expected 
to be ordered
+#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
+
+%changelog
+* Thu Oct 16 2014 jchaloup <[email protected]> - 0-0.1.git740c764
+- First package for Fedora
+  resolves: #1153724
+
diff --git a/sources b/sources
index e69de29..fa2c583 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9593cd0524a602fc3114ad281a3868fb  mapstructure-740c764.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to