Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang
exomler
exomler.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File exomler.spec of Package exomler
%define bname exomler Name: %bname Version: 0.5.2 Release: 1 Summary: Fast XML parser for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/erlangbureau/%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 >= 2.6.1-7 BuildRequires: erlang-parselib %description It is a very simple DOM XML parser that can work only with valid and well-formed XML. It is fast enough, convenient and has very low memory footprint due to binary usage. %prep %setup -q -n %bname-%version #patch -p1 sed -i 's/==/=:=/g;s/[[:blank:]]*$//' include/%bname.hrl 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, ~p}.~n", [lists:foldl(fun({K, _} = T, A) -> lists:keystore(K, 1, A, T) end, L, [{vsn, "%version"}, {description, "Fast XML parser"}])]), [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, proplists:delete(deps, L)), [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/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ 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 install -p -m 0644 *.md %buildroot%_docdir/%name/ ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html %check rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Wed Mar 23 2016 Led <ledest@gmail.com> 0.5.2-1 - 0.5.2 * Wed Mar 23 2016 Led <ledest@gmail.com> 0.4.2-2 - clean up BuildRequires * Tue Oct 13 2015 Led <ledest@gmail.com> 0.4.2-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