Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
revolver
revolver.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File revolver.spec of Package revolver
%def_disable check %define bname revolver Name: %bname Version: 1.8.1 Release: 5 Summary: Round-robin load balancer for Erlang processes License: MIT Group: Development/Tools/Other URL: https://github.com/odo/%bname Source: %bname-%version.tar.xz Patch0: %bname-%version-git.patch Patch1: %bname-1.8.1-stacktrace.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-otpbp-devel >= 0.37.0 # check BuildRequires: erlang-meck %description %bname is a round-robin load balancer for Erlang processes. %bname is very simple and small with no concept of a lease and no assumptions about the workers. The idea is that you have an existing OTP supervisor with children (your pool) and to balance across those. This design makes it perfect for the fast paralellization of many equally sized tasks. In addition, %bname has the notion of being disconnected. So when parts of your application are temporarily unavailable (think database connections), %bname acts as a fuse and lets the unaffected parts run while trying to reconnect. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release %description doc %bname is a round-robin load balancer for Erlang processes. %bname is very simple and small with no concept of a lease and no assumptions about the workers. This package contains documentation of %bname. %prep %setup -q -n %bname-%version %patch0 -p1 %patch1 -p1 %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().' %if %_otp_release >= 21 ERL_COMPILER_OPTIONS="[inline,verbose]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %endif 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_enabled check %check %if %_otp_release >= 21 ERL_COMPILER_OPTIONS="[inline,verbose]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %endif rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sat Jun 11 2022 Led <ledest@gmail.com> 1.8.1-5 - disable %%check * Sun Aug 22 2021 Led <ledest@gmail.com> 1.8.1-4 - add patches: + revolver-1.8.1-stacktrace.patch - fix build on Erlang/OTP >= 21 * Sun Mar 14 2021 Led <ledest@gmail.com> 1.8.1-3 - update License * Fri Sep 28 2018 Led <ledest@gmail.com> 1.8.1-2 - git f9378f3 * Sat Dec 02 2017 Led <ledest@gmail.com> 1.8.1-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