Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
gun
gun.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gun.spec of Package gun
%define bname gun Name: %bname Version: 1.0.0 %define pre -pre.1 Release: 0.3 Summary: Erlang HTTP client with support for HTTP/1.1, SPDY and Websocket License: BSD-3-Clause Group: Development/Tools/Other URL: https://github.com/ninenines/%bname Source: %bname-%version%pre.tar.xz Patch: %bname-%version%pre-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: erlang >= R13 BuildRequires: rebar erl_interface BuildRequires: epmd erlang-ct_helper ct_run erlang-ranch erlang-cowlib %description Gun aims to provide an easy to use client compatible with HTTP, SPDY and Websocket. Gun is always connected. It will maintain a permanent connection to the server, reopening it as soon as the server closes it, saving time for the requests that come in. All connections are supervised automatically, allowing developers to focus on writing their code without worrying. %prep %setup -q -n %bname-%version%pre %patch -p1 sed -i -r 's/(ssl:negotiated_)next_(protocol)/\1\2/g' src/%bname.erl sed -i '/^ERLC_OPTS/s/+debug_info/+slim +inline/' erlang.mk 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().' %if 0 for c in compile doc; do rebar -C %bname.rebar.config $c -v done %else make %{?_smp_mflags} DEPS= all %endif %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%_docdir/%name install -p -m 0644 README* %buildroot%_docdir/%name/ %if 0 install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ ln -sf %_otplibdir/%name-%version/doc %buildroot%_docdir/%name/html %endif %check make DEPS= TEST_DEPS= CT_SUITES="ws" tests %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Sun Jan 31 2016 Led <ledest@gmail.com> 1.0.0-0.3 - add epmd to BuildRequires * Sun Jul 26 2015 Led <ledest@gmail.com> 1.0.0-0.2 - add patches: + gun-1.0.0-pre.1-git.patch - replcae deprecated functions - build with erlang.mk - add %%check - disable build docs - update BuildRequires * Sun Jul 26 2015 Led <ledest@gmail.com> 1.0.0-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