Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang
econfig
econfig.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File econfig.spec of Package econfig
%define bname econfig Name: %bname Version: 0.7.3 Release: 1 Summary: Simple Erlang config handler using INI files License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/benoitc/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface %description %bname is a simple Erlang config handler to manage a config from INI files. %bname can be use to read and update INI files. Values are cached in an ETS table and you can manage multiple configuration profiles. A process can also subscribe to config updates events. Autoreload of the config when an INI file is updated is supported, you can even manage changes from a full config directory. %prep %setup -q -n %bname-%version #patch -p1 %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|lists: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 #rebar -C %bname.rebar.config doc -v %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/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md NOTICE %buildroot%_docdir/%name/ %check rebar -C %bname.rebar.config eunit %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Sun Jun 26 2016 Led <ledest@gmail.com> 0.7.3-1 - 0.7.3 * Sun Jan 17 2016 Led <ledest@gmail.com> 0.7.1-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