%global realname bbmustache
%global upstream soranoba
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}
Name: erlang-%{realname}
Version: 1.5.0
Release: 1%{?dist}
Summary: Binary pattern match-based Mustache template engine for Erlang
Group: Development/Languages
License: MIT
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/v%{version}/%{realname}-%{version}.tar.gz
BuildRequires: erlang-rebar
%description
Binary pattern match-based Mustache template engine for Erlang.
%prep
%autosetup -p 1 -n %{realname}-%{version}
%build
%{erlang_compile}
%install
%{erlang_install}
%check
%{erlang_test}
%files
%license LICENSE
%doc doc/ README.md
%{erlang_appdir}/
%changelog
* Mon Oct 30 2017 Peter Lemenkov <lemenkov@gmail.com> - 1.5.0-1
- Initial build