LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bbmustache.spec of Package bbmustache (Project home:Ledest:erlang:18)

%define bname bbmustache
Name: %bname
Version: 1.1.0
Release: 1
Summary: Binary pattern match Based Mustache template engine for Erlang/OTP
License: MIT
Group: Development/Tools/Other
URL: https://github.com/soranoba/%bname
Source: %bname-%version.tar.xz
Provides: erlang-%bname = %version-%release
BuildArch: noarch

BuildRequires: rpm-macros-erlang rpm-build-erlang
BuildRequires: rebar erl_interface eunit_formatters

%description
%summary.


%prep
%setup -q -n %bname-%version


%build
erl -noshell -eval '
{ok, L} = file:consult("rebar.config"),
file:write_file("%bname.rebar.config",
                lists:map(fun(E) -> io_lib:format("~p.~n", [E]) end,
                          [{erl_opts, [slim,inline,no_debug_info|proplists:delete(debug_info, proplists:get_value(erl_opts, L, []))]}|lists:foldl(fun(O, A) -> proplists:delete(O, A) end, L, [deps, erl_opts, cover_enabled])])),
halt().'
rebar -C %bname.rebar.config compile -v


%install
install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin
install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/


%check
rebar -C %bname.rebar.config eunit


%files
%defattr(-,root,root)
%doc README*
%_otplibdir/*


%changelog
* Sun Feb 14 2016 Led <ledest@gmail.com> 1.1.0-1
- 1.1.0

* Sun Jan 17 2016 Led <ledest@gmail.com> 1.0.5-1
- 1.0.5

* Sat Jul 04 2015 Led <ledest@gmail.com> 1.0.3-1
- initial build