Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
protobuffs
protobuffs.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File protobuffs.spec of Package protobuffs
%define bname protobuffs Name: %bname Version: 0.9.0 Release: 3 Summary: An implementation of Google's Protocol Buffers for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/basho/erlang_%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Provides: erlang_%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-parsetools-devel %description An implementation of Google's Protocol Buffers for Erlang, based on ngerakines/erlang_protobuffs. This module is a composite of other open source modules and original code to facilitate interfacing with Protocol Buffers. %prep %setup -q -n %bname-%version #patch -p1 erl -noshell -eval ' {ok, [{application, Name, L}]} = file:consult("src/%bname.app.src"), file:write_file("src/%bname.app.src", io_lib:format("{application, ~s, ~p}.~n", [Name, lists:keystore(vsn, 1, L, {vsn, "%version"})]), [raw]), init:stop().' %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="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v erl -noshell -eval ' lists:foreach(fun(F) -> {ok, _, Cs} = beam_lib:all_chunks(F), {ok, B} = beam_lib:build_module(lists:map(fun({"Abst", _}) -> {"Abst", <<>>}; (C) -> C end, Cs)), file:write_file(F, B, [raw]) end, filelib:wildcard("ebin/%{bname}*.beam")), init:stop().' %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/%name-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 *.md %buildroot%_docdir/%name/ %disable_strip_erlang_beam %if 0 %check rebar -C %bname.rebar.config eunit %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Fri Nov 03 2017 Led <ledest@gmail.com> 0.9.0-3 - disable_strip_erlang_beam * Tue Jan 03 2017 Led <ledest@gmail.com> 0.9.0-2 - don't strip abstract code in pokemon_pb.beam * Tue Jan 03 2017 Led <ledest@gmail.com> 0.9.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