%global realname setup %global upstream uwiger # Technically, we're noarch; but erlang whose directories we install into is not. %global debug_package %{nil} Name: erlang-%{realname} Version: 1.7 Release: 1%{?dist} Summary: Generic setup utility for Erlang-based systems Group: Development/Languages License: ASL 2.0 URL: https://github.com/%{upstream}/%{realname} %if 0%{?el7}%{?fedora} VCS: scm:git:https://github.com/%{upstream}/%{realname}.git %endif Source0: https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz BuildRequires: erlang-rebar %description While Erlang/OTP comes with many wonderful applications, including the Mnesia DBMS, there is no standard or convention for installing a system. Erlang/OTP provides tools for building a boot script, and rules for setting environment variables, etc., and Mnesia offers an API for creating and modifying the database schema. However, with no convention for when these tools and API functions are called - and by whom - application developers are left having to invent a lot of code and scripts, not to mention meditate over chapters of Erlang/OTP documentation in order to figure out how things fit together. This utility offers a framework for initializing and configuring a system, with a set of conventions allowing each component to provide callbacks for different steps in the installation procedure. The callbacks are defined through OTP application environment variables, which can easily be overriden at install time. %prep %setup -q -n %{realname}-%{version} %build %{erlang_compile} %install %{erlang_install} %check %{erlang_test} %files %doc doc/ examples/ README.md %{erlang_appdir}/ %changelog * Wed Mar 16 2016 Peter Lemenkov - 1.7-1 - Ver. 1.7