Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
neotoma
neotoma.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File neotoma.spec of Package neotoma
%define bname neotoma Name: %bname Version: 1.7.3 Release: 1 Summary: A packrat parser-generator for Erlang License: MIT Group: Development/Tools/Other URL: https://github.com/seancribbs/%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: erlang >= R13 BuildRequires: rebar erl_interface %description Neotoma is a packrat parser-generator for Erlang for Parsing Expression Grammars (PEGs). It consists of a parsing-combinator library with memoization routines, a parser for PEGs, and a utility to generate parsers from PEGs. %prep %setup -q -n %bname-%version #patch -p1 erl -noshell -eval ' A = "src/%bname.app.src", {ok, [{application, %bname, L}]} = file:consult(A), file:write_file(A, io_lib:format("{application, %bname, ~p}.~n", [lists:keystore(vsn, 1, L, {vsn, "%version"})])), halt().' %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, [lists:keystore(erl_opts, 1, proplists:delete(deps, L), {erl_opts, [no_debug_info,slim,inline|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]})])), 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/extra install -p -m 0644 extra/* %buildroot%_otplibdir/%bname-%version/extra/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv install -p -m 0644 priv/* %buildroot%_otplibdir/%bname-%version/priv/ 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 README* %buildroot%_docdir/%name/ %if 0 %check rebar -C %bname.rebar.config eunit %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Fri Aug 21 2015 Led <ledest@gmail.com> 1.7.3-1 - 1.7.3 - remove patches: + neotoma-1.7.2-git.patch * Sat Jul 25 2015 Led <ledest@gmail.com> 1.7.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