Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
kvlists
kvlists.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kvlists.spec of Package kvlists
%define bname kvlists Name: %bname Version: 0.9.0 Release: 3 Summary: Lists of key-value pairs in Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/jcomellas/%bname Source: %bname-%version.tar.xz Patch: %bname-%version-git.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-common_test %description kvlists is a module that can manipulate lists of key/value pairs in Erlang. It should be quite useful when dealing with medium to large-sized nested property lists or decoded JSON documents (in the format used by jsx). Its interface is similar to that of the proplists module, with the addition of nested key (path) retrieval and modification (loosely inspired by Bob Ippolito's great kvc library, which itself was inspired by Apple's NSKeyValueCoding protocol from Objective-C). kvlists provides functionality that is similar to that of XPath, but with a syntax specifically adapted to Erlang. It supports lists of key/value pairs where the keys are either atoms or binaries. %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 proplists:delete/2, L, [erl_opts, deps])])), 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/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %if 0 %check rebar -C %bname.rebar.config ct %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Thu Mar 24 2016 Led <ledest@gmail.com> 0.9.0-3 - disable %%check * Thu Mar 24 2016 Led <ledest@gmail.com> 0.9.0-2 - add build options * Thu Mar 24 2016 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