%global srcname cache_tab %global p1_utils_ver 1.0.25 Name: erlang-%{srcname} Version: 1.0.30 Release: %autorelease License: Apache-2.0 Summary: Erlang cache table application URL: https://github.com/processone/%{srcname} VCS: scm:git:%{url}.git Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildRequires: gcc BuildRequires: erlang-rebar BuildRequires: erlang-p1_utils >= %{p1_utils_ver} Requires: erlang-p1_utils >= %{p1_utils_ver} %description This application is intended to proxy back-end operations for Key-Value insert, lookup and delete and maintain a cache of those Key-Values in-memory, to save back-end operations. Operations are intended to be atomic between back-end and cache tables. The lifetime of the cache object and the max size of the cache can be defined as table parameters to limit the size of the in-memory tables. %prep %autosetup -p1 -n %{srcname}-%{version} %build %{erlang_compile} %install %{erlang_install} install -p -D -m 755 priv/lib/* --target-directory=%{buildroot}%{erlang_appdir}/priv/lib/ %check %{erlang_test} %files %license LICENSE.txt %doc CHANGELOG.md %doc README.md %{erlang_appdir}/ %changelog %autochangelog