[golang-github-syndtr-goleveldb/f20] First package for Fedora - resolves: #1190418

Jan Chaloupka jchaloup at fedoraproject.org
Mon Feb 16 11:12:52 UTC 2015


commit c03de3c7427ab1651b6b5ace39896f89b6e68442
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Mon Feb 16 11:58:56 2015 +0100

    First package for Fedora
    - resolves: #1190418

 .gitignore                          |    1 +
 golang-github-syndtr-goleveldb.spec |   89 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c133e92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/goleveldb-e9e2c8f.tar.gz
diff --git a/golang-github-syndtr-goleveldb.spec b/golang-github-syndtr-goleveldb.spec
new file mode 100644
index 0000000..c856a6e
--- /dev/null
+++ b/golang-github-syndtr-goleveldb.spec
@@ -0,0 +1,89 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         syndtr
+%global repo            goleveldb
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          e9e2c8f6d3b9c313fb4acaac5ab06285bcf30b04
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        LevelDB key/value database in Go
+License:        BSD
+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(github.com/onsi/ginkgo)
+BuildRequires:  golang(github.com/onsi/ginkgo/config)
+BuildRequires:  golang(github.com/onsi/gomega)
+BuildRequires:  golang(github.com/syndtr/gosnappy/snappy)
+Requires:       golang >= 1.2.1-3
+Requires:       golang(github.com/onsi/ginkgo)
+Requires:       golang(github.com/onsi/ginkgo/config)
+Requires:       golang(github.com/onsi/gomega)
+Requires:       golang(github.com/syndtr/gosnappy/snappy)
+Summary:        %{summary}
+Provides:       golang(%{import_path}/leveldb) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/cache) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/comparer) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/errors) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/filter) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/iterator) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/journal) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/memdb) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/opt) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/storage) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/table) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/testutil) = %{version}-%{release}
+Provides:       golang(%{import_path}/leveldb/util) = %{version}-%{release}
+Provides:       golang(%{import_path}/manualtest/filelock) = %{version}-%{release}
+Provides:       golang(%{import_path}/manualtest/leveldb) = %{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 -rpav manualtest %{buildroot}/%{gopath}/src/%{import_path}/
+cp -rpav leveldb %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/util
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/table
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/storage
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/memdb
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/journal
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/iterator
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/filter
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/leveldb/cache
+
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+%changelog
+* Sat Feb 07 2015 jchaloup <jchaloup at redhat.com> - 0-0.1.gite9e2c8f
+- First package for Fedora
+  resolves: #1190418
diff --git a/sources b/sources
index e69de29..8ab0041 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0a14be6e20322bd44b266f429406f72f  goleveldb-e9e2c8f.tar.gz


More information about the scm-commits mailing list