commit 397f35929e547323c3eda28009977f601ee855fa
Author: Jan Chaloupka <[email protected]>
Date:   Wed Oct 8 11:39:13 2014 +0200

    Initial commit
    - resolves: #1148447

 .gitignore               |    1 +
 golang-github-kr-fs.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fce1c90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fs-2788f0d.tar.gz
diff --git a/golang-github-kr-fs.spec b/golang-github-kr-fs.spec
new file mode 100644
index 0000000..c2381df
--- /dev/null
+++ b/golang-github-kr-fs.spec
@@ -0,0 +1,60 @@
+%global provider       github
+%global provider_tld   com
+%global project                kr
+%global repo           fs
+%global commit         2788f0dbd16903de03cb8186e5c7d97b69ad387b
+
+%global import_path    %{provider}.%{provider_tld}/%{project}/%{repo}
+%global shortcommit    %(c=%{commit}; echo ${c:0:7})
+%global debug_package  %{nil}
+
+Name:          golang-%{provider}-%{project}-%{repo}
+Version:       0
+Release:       0.1.git%{shortcommit}%{?dist}
+Summary:       Provides Go filesystem-related functions
+License:       BSD
+URL:           http://%{import_path}
+Source0:       
https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:     noarch
+
+%description
+%{summary}
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires:      golang >= 1.2.1-3
+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 LICENSE Readme
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Wed Oct 01 2014 Jan Chaloupka <jchaloup@redhat> - 0-0.1.git2788f0d
+- First package for Fedora
+
+
+
+
+
diff --git a/sources b/sources
index e69de29..6e27470 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+89bc0e244d8b085b5ee51271cf9fc4e8  fs-2788f0d.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to