commit 503925c1691b8883840be8f3c66820f45e84d83b
Author: Jan Chaloupka <[email protected]>
Date:   Fri Jan 16 13:00:54 2015 +0100

    First package for Fedora
    - resolves: #1181100

 .gitignore                       |    1 +
 golang-github-imdario-mergo.spec |   62 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c9724fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mergo-6ce7536.tar.gz
diff --git a/golang-github-imdario-mergo.spec b/golang-github-imdario-mergo.spec
new file mode 100644
index 0000000..6e6cd3e
--- /dev/null
+++ b/golang-github-imdario-mergo.spec
@@ -0,0 +1,62 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         imdario
+%global repo            mergo
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          6ce7536fed6623eff47b95768f858a0f8d1ac57b
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Merging Go structs and maps
+License:        BSD
+URL:            https://%{import_path}
+Source0:        
https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(gopkg.in/yaml.v1)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(gopkg.in/yaml.v1)
+Summary:        %{summary}
+Provides:       golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+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}/
+cp -rpav testdata %{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}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Mon Jan 12 2015 jchaloup <[email protected]> - 0-0.1.git6ce7536
+- First package for Fedora
+  resolves: #1181100
+
diff --git a/sources b/sources
index e69de29..03160ea 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+60d240a75e525df365fbf30b87b7ba2e  mergo-6ce7536.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to