Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
lager_mongo
lager_mongo.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lager_mongo.spec of Package lager_mongo
%define bname lager_mongo Name: %bname Version: 0.9.0 Release: 2 Summary: A simple mongodb backend for lager logging License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/adrianroe/%bname Source: %bname.tar.xz BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: erlang >= R13 BuildRequires: rebar >= 2.6.1-7 %description This is a simple mongodb backend for Lager. It sends messages from lager to the configured mongodb server. In order to minimises delays due to logging DB writes are 'unsafe_ok' (no wait for confirmation that the write succeded). %prep %setup -q -n %bname %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, [lists:keystore(erl_opts, 1, proplists:delete(deps, L), {erl_opts, [no_debug_info, slim, inline|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]})])), halt().' for c in compile doc; do rebar -C %bname.rebar.config $c -v done %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Mon Apr 04 2016 Led <ledest@gmail.com> 0.9.0-2 - clean up BuildReqiures * Sat Dec 05 2015 Led <ledest@gmail.com> 0.9.0-1 - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor