Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
kvc
kvc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kvc.spec of Package kvc
%define bname kvc Name: %bname Version: 1.7.0 Release: 3 Summary: Key Value Coding for Erlang data structures License: MIT Group: Development/Tools/Other URL: https://github.com/etrepum/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-1.7.0-test.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 # check BuildRequires: erlang-eunit erlang-proper %description kvc supports Key Value Coding-like queries on common Erlang data structures. A common use case for kvc is to quickly access one or more deep values in decoded JSON, or some other nested data structure. It can also help with some aggregate operations. It solves similar problems that you might want to use a tool like XPath or jQuery for, but it is far simpler and strictly less powerful. It's inspired by Apple's NSKeyValueCoding protocol from Objective-C. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 1.7.0-3 %description doc kvc supports Key Value Coding-like queries on common Erlang data structures. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch1 -p1 %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, lists:keystore(edoc_opts, 1, lists:keydelete(deps, 1, L), {edoc_opts, case lists:keyfind(edoc_opts, 1, L) of {_, [_|_] = O} -> lists:keystore(new, 1, O, {preprocess, true}); _ -> [{preprocess, true}] end})), [raw]), init:stop().' ERL_COMPILER_OPTIONS='[inline,verbose]' rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -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 CHANGES* README* %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS="[inline,verbose,{d,'USE_PROPER'}]" rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sun Aug 22 2021 Led <ledest@gmail.com> 1.7.0-3 - add patches: + kvc-1.7.0-test.patch - add doc subpackage - add BuildRequires for %%check * Sat Aug 19 2017 Led <ledest@gmail.com> 1.7.0-2 - update spec * Thu Mar 24 2016 Led <ledest@gmail.com> 1.7.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