9aa116f
%global realname riak_ensemble
9aa116f
%global upstream basho
9aa116f
# Technically, we're noarch; but erlang whose directories we install into is not.
9aa116f
%global debug_package %{nil}
9aa116f
9aa116f
9aa116f
Name:		erlang-%{realname}
9aa116f
Version:	2.1.2
9aa116f
Release:	1%{?dist}
9aa116f
Summary:	Multi-Paxos framework in Erlang
9aa116f
Group:		Development/Languages
9aa116f
License:	ASL 2.0
9aa116f
URL:		https://github.com/%{upstream}/%{realname}
9aa116f
%if 0%{?el7}%{?fedora}
9aa116f
VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
9aa116f
%endif
9aa116f
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
9aa116f
Patch1:		erlang-riak_ensemble-0001-Remove-deprecated-BIF.patch
9aa116f
BuildRequires:	erlang-eleveldb
9aa116f
BuildRequires:	erlang-lager
9aa116f
BuildRequires:	erlang-rebar
9aa116f
#BuildRequires:	erlang-riak_test
9aa116f
%{?__erlang_nif_version:Requires: %{__erlang_nif_version}}
9aa116f
9aa116f
9aa116f
%description
9aa116f
A consensus library that supports creating multiple consensus groups
9aa116f
(ensembles). Each ensemble is a separate Multi-Paxos instance with its own
9aa116f
leader, set of members, and state.
9aa116f
9aa116f
Each ensemble also supports an extended API that provides consistent key/value
9aa116f
operations. Conceptually, this is identical to treating each key as a separate
9aa116f
Paxos entity. However, this isn't accomplished by having each key maintain its
9aa116f
own Paxos group. Instead, an ensemble emulates per-key consensus through a
9aa116f
combination of per-key and per-ensemble state.
9aa116f
9aa116f
9aa116f
%prep
9aa116f
%setup -q -n %{realname}-%{version}
9aa116f
%patch1 -p1 -b .deprecated_bifs
9aa116f
9aa116f
9aa116f
%build
9aa116f
%{erlang_compile}
9aa116f
9aa116f
9aa116f
%install
9aa116f
%{erlang_install}
9aa116f
9aa116f
9aa116f
%check
9aa116f
#%%{erlang_test}
9aa116f
9aa116f
9aa116f
%files
9aa116f
%license LICENSE
9aa116f
%doc doc/ README.md
9aa116f
%{erlang_appdir}/
9aa116f
9aa116f
9aa116f
%changelog
9aa116f
* Wed Mar 16 2016 Peter Lemenkov <lemenkov@gmail.com> - 2.1.2-1
9aa116f
- Ver. 2.1.2