Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
fast_xml
fast_xml.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fast_xml.spec of Package fast_xml
%define bname fast_xml Name: %bname Version: 1.1.37 Release: 1 Summary: Erlang and Elixir XML Parsing License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/processone/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface erts-devel BuildRequires: pkg-config pkgconfig(expat) # check BuildRequires: p1_utils >= 1.0.15 %description Fast Expat based Erlang XML parsing and manipulation library, with a strong focus on XML stream parsing from network. It supports: - Full XML structure parsing: Suitable for small but complete XML chunks. - XML stream parsing: Suitable for large XML document, or infinite network XML stream like XMPP. This module can parse files much faster than built-in module 'xmerl'. Depending on file complexity and size 'fxml_stream:parse_element/1' can be 8-18 times faster than calling 'xmerl_scan:string/2'. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %bname < 1.1.25 %description devel Headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %bname < 1.1.25 %description doc Documentation of %bname. %prep %setup -q -n %bname-%version #patch -p1 echo '-compile([no_inline]).' >> src/fxml_stream.erl erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("src/%bname.app.src"), file:write_file("src/%bname.app.src", io_lib:format("{application, %bname, ~81p}.~n", [lists:keydelete(files, 1, L)]), [raw]), init:stop().' %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:foldl(fun proplists:delete/2, lists:keystore(erl_opts, 1, L, {erl_opts, lists:keydelete(src_dirs, 1, proplists:get_value(erl_opts, L, []))}), [deps, port_env])), [raw]), init:stop().' LIBS="$(pkg-config --libs expat)" CFLAGS="%optflags" CC="%__cc" \ 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/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv/lib install -p -m 0755 priv/lib/* %buildroot%_otplibdir/%bname-%version/priv/lib/ 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 *.md %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/include %exclude %_otplibdir/%bname-*/doc %files devel %defattr(-,root,root) %dir %_otplibdir/%bname-* %_otplibdir/%bname-*/include %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Fri Nov 01 2019 Led <ledest@gmail.com> 1.1.37-1 - 1.1.37 * Fri Nov 01 2019 Led <ledest@gmail.com> 1.1.36-2 - clean up .app * Fri Nov 01 2019 Led <ledest@gmail.com> 1.1.36-1 - 1.1.36 * Sat Mar 16 2019 Led <ledest@gmail.com> 1.1.34-1 - 1.1.34 * Sat Mar 16 2019 Led <ledest@gmail.com> 1.1.32-1 - 1.1.32 * Sat Mar 16 2019 Led <ledest@gmail.com> 1.1.28-1 - 1.1.28 * Sat Mar 16 2019 Led <ledest@gmail.com> 1.1.26-1 - 1.1.26 * Sun Nov 26 2017 Led <ledest@gmail.com> 1.1.25-3 - clean up rebar.config * Sun Nov 26 2017 Led <ledest@gmail.com> 1.1.25-2 - clean up spec * Sun Nov 26 2017 Led <ledest@gmail.com> 1.1.25-1 - 1.1.25 - move headers and docs to separate subpackages * Sun Jul 16 2017 Led <ledest@gmail.com> 1.1.23-1 - 1.1.23 * Sun Apr 02 2017 Led <ledest@gmail.com> 1.1.22-2 - add 'inline' option * Sun Mar 26 2017 Led <ledest@gmail.com> 1.1.22-1 - 1.1.22 * Sun Mar 19 2017 Led <ledest@gmail.com> 1.1.21-1 - 1.1.21 - git f82b026 * Sun Feb 12 2017 Led <ledest@gmail.com> 1.0.20-2 - enable %%check - remove 'inline' option * Tue Feb 07 2017 Led <ledest@gmail.com> 1.1.20-1 - 1.1.20 * Mon Jan 16 2017 Led <ledest@gmail.com> 1.1.19-1 - 1.1.19 * Mon Jan 02 2017 Led <ledest@gmail.com> 1.1.18-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