Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
turtle
turtle.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File turtle.spec of Package turtle
%define bname turtle Name: %bname Version: 1.9.0 Release: 2 Summary: A wrapper on the RabbitMQ Erlang Client License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/shopgun/%bname Source: %bname-%version.tar.xz Patch1: remove-turtle_time.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-lager-devel >= 2 BuildRequires: erlang-amqp_client-devel >= 3.6.10 %if 0 # check BuildRequires: epmd erlang-common_test %endif %description The turtle application is built to be a wrapper around the RabbitMQ standard Erlang driver. The purpose is to enable faster implementation and use of RabbitMQ by factoring out common tasks into a specific application targeted toward ease of use. The secondary purpose is to make the Erlang client better behaving toward an OTP setup. The official client makes lots of assumptions which are not always true in an OTP setting. %prep %setup -q -n %bname-%version %patch1 -p1 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, ~101p}.~n", [lists:keystore(applications, 1, L, {applications, lists:delete(uuid, proplists:get_value(applications, 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: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 %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/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %if 0 %check rebar -C %bname.rebar.config ct %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Sun Sep 17 2017 Led <ledest@gmail.com> 1.9.0-2 - add patches: + remove-turtle_time.patch * Fri Sep 15 2017 Led <ledest@gmail.com> 1.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