commit e88032e2900dd1a71fcec433c5f04e2f2658f33e
Author: Jan Chaloupka <[email protected]>
Date:   Thu Jan 29 10:00:39 2015 +0100

    First package for Fedora
    - resolves: #1186346

 .gitignore                                  |    1 +
 golang-github-influxdb-hyperleveldb-go.spec |   61 +++++++++++++++++++++++++++
 sources                                     |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..91e438f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hyperleveldb-go-e24de94.tar.gz
diff --git a/golang-github-influxdb-hyperleveldb-go.spec 
b/golang-github-influxdb-hyperleveldb-go.spec
new file mode 100644
index 0000000..f75195e
--- /dev/null
+++ b/golang-github-influxdb-hyperleveldb-go.spec
@@ -0,0 +1,61 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         influxdb
+%global repo            hyperleveldb-go
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          e24de943b3ab3c25276993321079383f10b94bf9
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Go wrapper for HyperLevelDB
+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
+Requires:       golang >= 1.2.1-3
+Summary:        %{summary}
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/examples) = %{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 examples %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+# missing hyperleveldb/c.h
+#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 Jan 27 2015 jchaloup <[email protected]> - 0-0.1.gite24de94
+- First package for Fedora
+  resolves: #1186346
diff --git a/sources b/sources
index e69de29..ed3ca07 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c6ab394ed659fc7af79ae1179ae8e8cc  hyperleveldb-go-e24de94.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to