Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
jsonx
jsonx.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jsonx.spec of Package jsonx
%define bname jsonx Name: %bname Version: 3.0 Release: 2 Summary: Erlang library for efficient JSON decoding and encoding License: MIT Group: Development/Tools/Other URL: https://github.com/iskra/%bname Source: %bname.tar.xz Patch1: %bname-match-float.patch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.5.1-13 BuildRequires: erl_interface erts-devel BuildRequires: erlang-eunit erlang-otp-base-devel %description JSONX is an Erlang library for efficient JSON decoding and encoding, implemented in Erlang NIFs. Works with binaries as strings, arrays as lists and only knows how to decode UTF-8 (and ASCII). %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 3.0-2 %description doc JSONX is an Erlang library for efficient JSON decoding and encoding, implemented in Erlang NIFs. Works with binaries as strings, arrays as lists and only knows how to decode UTF-8 (and ASCII). This package contains socumentation of %bname. %prep %setup -q -n %bname %patch1 -p1 %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], [raw]), init:stop().' ERL_COMPILER_OPTIONS="[verbose]" \ CC=%__cc CFLAGS="%optflags -flto" LDFLAGS="%optflags -flto" \ 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/%name-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%name-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%name-%version/priv install -p -m 0755 priv/*.so %buildroot%_otplibdir/%name-%version/priv/ install -d -m 0755 %buildroot%_otplibdir/%name-%version/examples install -p -m 0644 examples/* %buildroot%_otplibdir/%name-%version/examples/ install -d -m 0755 %buildroot%_otplibdir/%name-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%name-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html ln -sf %_otplibdir/%name-%version/examples %buildroot%_docdir/%name/ install -p -m 0644 README* %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS="[verbose]" 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 27 2023 Led <ledest@gmail.com> 3.0-2 - add patches: + jsonx-match-float.patch - move docs to separate subpackage * Fri Jun 19 2015 Led <ledest@gmail.com> 3.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