[golang-github-ghodss-yaml/el6] First package for Fedora - resolves: #1172603
Jan Chaloupka
jchaloup at fedoraproject.org
Wed Dec 10 16:34:06 UTC 2014
commit 364d9a60c204222592c6b479b225b08f83a19477
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Wed Dec 10 17:21:10 2014 +0100
First package for Fedora
- resolves: #1172603
.gitignore | 1 +
golang-github-ghodss-yaml.spec | 60 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f8d938a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/yaml-92ff9d3.tar.gz
diff --git a/golang-github-ghodss-yaml.spec b/golang-github-ghodss-yaml.spec
new file mode 100644
index 0000000..72e833b
--- /dev/null
+++ b/golang-github-ghodss-yaml.spec
@@ -0,0 +1,60 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project ghodss
+%global repo yaml
+%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit 92ff9d30bd0a5a2d077f3bc00843e409f65cd38e
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: A better way to marshal and unmarshal YAML in Golang
+License: MIT
+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/v2/yaml)
+Requires: golang >= 1.2.1-3
+Requires: golang(gopkg.in/v2/yaml)
+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}/
+
+%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
+* Tue Dec 09 2014 jchaloup <jchaloup at redhat.com> - 0-0.1.git92ff9d3
+- First package for Fedora
+ resolves: #1172603
diff --git a/sources b/sources
index e69de29..575faf8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+498922473fee402d9a50da6c63a655cd yaml-92ff9d3.tar.gz
More information about the scm-commits
mailing list