erlang-mustache/erlang-mustache.spec
2020-08-29 18:23:55 +08:00

40 lines
1.0 KiB
RPMSpec

%global realname mustache
%global upstream mojombo
Name: erlang-mustache
Version: 0.1.1
Release: 1
BuildArch: noarch
Summary: Mustache template engine for Erlang
License: MIT
URL: https://github.com/mojombo/mustache.erl
Source0: https://github.com/mojombo/mustache.erl/archive/v%{version}/mustache-%{version}.tar.gz
Patch1: erlang-mustache-0001-Migrate-to-a-new-Meck.patch
BuildRequires: erlang-meck
BuildRequires: erlang-rebar
%description
An Erlang port of Mustache for Ruby. Mustache is a framework-agnostic template
system that enforces separation of view logic from the template file. Indeed, it
is not even possible to embed logic in the template. This allows templates to be
reused across language boundaries and for other language independent uses.
%prep
%autosetup -p1 -n mustache.erl-%{version}
%build
%{erlang_compile}
%install
%{erlang_install}
%check
%{erlang_test}
%files
%license LICENSE
%doc examples/ README.md
%{erlang_appdir}/
%changelog
* Sat Aug 29 2020 yaokai <yaokai13@huawei.com> - 0.1.1-1
- package init