commit 1c894b1c550ce24ae13eae042ac9546b6482336b
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu Oct 9 14:24:26 2014 +0200
Initial commit
- resolves: #1148705
.gitignore | 1 +
golang-github-jmhodges-levigo.spec | 62 ++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6dfabe0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/levigo-253793d.tar.gz
diff --git a/golang-github-jmhodges-levigo.spec b/golang-github-jmhodges-levigo.spec
new file mode 100644
index 0000000..8e0f2c5
--- /dev/null
+++ b/golang-github-jmhodges-levigo.spec
@@ -0,0 +1,62 @@
+%global provider github
+%global provider_tld com
+%global project jmhodges
+%global repo levigo
+%global commit 253793d7b92ea4d3a5e2e4368691c52e70f2c6fc
+
+%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: Go wrapper for LevelDB
+License: MIT
+URL: http://%{import_path}
+Source0:
https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortco...
+BuildArch: noarch
+
+%description
+%{summary}.
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+BuildRequires: leveldb-devel >= 1.7
+Requires: golang >= 1.2.1-3
+Requires: leveldb-devel >= 1.7
+Summary: Go wrapper for LevelDB
+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 -pav examples %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+# check fails (cannot create db in koji), on local machine test passes
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/examples
+%{gopath}/src/%{import_path}/examples/*.go
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Thu Sep 25 2014 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.1.git253793d
+- First package for Fedora
+
+
diff --git a/sources b/sources
index e69de29..a490d55 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aed406ab5a8c5bbbb9b2835cd06ab8e0 levigo-253793d.tar.gz