Files
erlang-hanoidb/erlang-hanoidb.spec

98 lines
3.4 KiB
RPMSpec

#
# spec file for package erlang-hanoidb
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define pkg_version 0.0.0
%define git_version 20160204
Name: erlang-hanoidb
Version: %{pkg_version}+git%{git_version}
Release: 1
Summary: HanoiDB Indexed Key/Value Storage
License: Apache-2.0
Group: Development/Libraries/Other
URL: https://github.com/krestenkrab/hanoidb
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: hanoidb-%{version}.tar.bz2
Patch1: no-rebar-deps.patch
Patch2: new-lz4-lib.patch
Patch3: fix-warnings.patch
Requires: erlang >= R13B01
BuildRequires: erlang-ebloom
Requires: erlang-ebloom
BuildRequires: erlang-lager
Requires: erlang-lager
BuildRequires: erlang-lz4
Requires: erlang-lz4
BuildRequires: erlang-rebar
BuildRequires: erlang-plain_fsm
Requires: erlang-plain_fsm
BuildRequires: erlang-proper
BuildRequires: erlang-sext
Requires: erlang-sext
BuildRequires: erlang-snappy-nif
Requires: erlang-snappy-nif
%description
HanoiDB implements an indexed, key/value storage engine. The primary index is a log-structured merge tree (LSM-BTree) implemented using "doubling sizes" persistent ordered sets of key/value pairs, similar is some regards to LevelDB. HanoiDB includes a visualizer which when used to watch a living database resembles the "Towers of Hanoi" puzzle game, which inspired the name of this database.
%package src
Summary: HanoiDB Indexed Key/Value Storage
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description src
HanoiDB implements an indexed, key/value storage engine. The primary index is a log-structured merge tree (LSM-BTree) implemented using "doubling sizes" persistent ordered sets of key/value pairs, similar is some regards to LevelDB. HanoiDB includes a visualizer which when used to watch a living database resembles the "Towers of Hanoi" puzzle game, which inspired the name of this database.
%prep
%setup -q -n hanoidb
%patch1 -p1
%patch2 -p1
%patch3 -p1
# don't build basho_bench driver:
rm tools/basho_bench_driver_hanoidb.erl
%build
%__make
%install
for dir in include ebin src test ; do
install -d %{buildroot}%{erlang_libdir}/hanoidb-%{version}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/hanoidb-%{version}/${dir}/
done
%check
%if 0%{?suse_version} != 1310
# erlang version too old for the dict:dict/0 type
%__make test
%endif
%files
%defattr(-,root,root)
%doc README.md LICENSE DESIGN.md
%dir %{erlang_libdir}/hanoidb-%{version}
%{erlang_libdir}/hanoidb-%{version}/ebin
%{erlang_libdir}/hanoidb-%{version}/include
%files src
%defattr(-,root,root)
%{erlang_libdir}/hanoidb-%{version}/src
%{erlang_libdir}/hanoidb-%{version}/test
%changelog