!1 package init
From: @yaokai13 Reviewed-by: @yanzh_h Signed-off-by: @yanzh_h
This commit is contained in:
commit
dc50950ae2
19
erlang-mustache-0001-Migrate-to-a-new-Meck.patch
Normal file
19
erlang-mustache-0001-Migrate-to-a-new-Meck.patch
Normal 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
39
erlang-mustache.spec
Normal 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
4
erlang-mustache.yaml
Normal 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
BIN
mustache-0.1.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user