package init

This commit is contained in:
yaokai13 2020-08-29 18:23:55 +08:00
parent dc4a7cc685
commit 33ca729d5d
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,19 @@
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Sun, 6 Mar 2016 22:27:37 +0300
Subject: [PATCH] Migrate to a new Meck
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
diff --git a/test/mustache_ctx_tests.erl b/test/mustache_ctx_tests.erl
index df579d8..e25ef19 100644
--- a/test/mustache_ctx_tests.erl
+++ b/test/mustache_ctx_tests.erl
@@ -62,7 +62,7 @@ get_from_module_not_found_test() ->
get_from_module_test_() ->
{foreach,
- fun() -> ok = meck:new(mock_module) end,
+ fun() -> ok = meck:new(mock_module,[non_strict]) end,
fun(_) -> ok = meck:unload(mock_module) end,
[
{"fun/1", fun get_from_module_fun_1_/0},

39
erlang-mustache.spec Normal file
View File

@ -0,0 +1,39 @@
%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

4
erlang-mustache.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: mojombo/mustache.erl
tag_prefix: "^v"
seperator: "."

BIN
mustache-0.1.1.tar.gz Normal file

Binary file not shown.