diff --git a/erlang-mustache-0001-Migrate-to-a-new-Meck.patch b/erlang-mustache-0001-Migrate-to-a-new-Meck.patch new file mode 100644 index 0000000..d3e886b --- /dev/null +++ b/erlang-mustache-0001-Migrate-to-a-new-Meck.patch @@ -0,0 +1,19 @@ +From: Peter Lemenkov +Date: Sun, 6 Mar 2016 22:27:37 +0300 +Subject: [PATCH] Migrate to a new Meck + +Signed-off-by: Peter Lemenkov + +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}, diff --git a/erlang-mustache.spec b/erlang-mustache.spec new file mode 100644 index 0000000..247e8dd --- /dev/null +++ b/erlang-mustache.spec @@ -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 - 0.1.1-1 +- package init diff --git a/erlang-mustache.yaml b/erlang-mustache.yaml new file mode 100644 index 0000000..9188980 --- /dev/null +++ b/erlang-mustache.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: mojombo/mustache.erl +tag_prefix: "^v" +seperator: "." diff --git a/mustache-0.1.1.tar.gz b/mustache-0.1.1.tar.gz new file mode 100644 index 0000000..c63fbde Binary files /dev/null and b/mustache-0.1.1.tar.gz differ