commit 5f416c4255aae769ad5b88646f45fc686708fa9c
Author: Jan Chaloupka <[email protected]>
Date:   Tue Oct 14 09:52:12 2014 +0200

    Initial commit
    - resolves: #1148484

 .gitignore                        |    1 +
 golang-github-influxdb-gomdb.spec |   61 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0dc2b13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gomdb-29fe330.tar.gz
diff --git a/golang-github-influxdb-gomdb.spec 
b/golang-github-influxdb-gomdb.spec
new file mode 100644
index 0000000..bf374d5
--- /dev/null
+++ b/golang-github-influxdb-gomdb.spec
@@ -0,0 +1,61 @@
+%global provider       github
+%global provider_tld   com
+%global project                influxdb
+%global repo           gomdb
+%global commit         29fe330c5ab33c4e48470bd4b980bf522471190a
+
+%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 LMDB
+License:       BSD
+URL:           http://%{import_path}
+Source0:       
https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:     noarch
+
+%description
+Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires:      golang >= 1.2.1-3
+Summary:       Go wrapper for LMDB
+Provides:      golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database
+
+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,c,h} %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/*.c
+%{gopath}/src/%{import_path}/*.h
+
+%changelog
+* Thu Sep 25 2014 Jan Chaloupka <[email protected]> - 0-0.1.git29fe330
+- First package for Fedora
+
+
+
+
diff --git a/sources b/sources
index e69de29..89ad842 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bf863889eeab755ad9e698496ce55e49  gomdb-29fe330.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to