Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
stun
stun.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stun.spec of Package stun
%define bname stun Name: %bname Version: 1.0.47 Release: 2 Summary: STUN and TURN library for Erlang / Elixir License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/processone/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface # check BuildRequires: erlang-p1_utils >= 1.0.23 BuildRequires: erlang-fast_tls >= 1.1.13 %description STUN and TURN library for Erlang / Elixir. Both STUN (Session Traversal Utilities for NAT) and TURN (Traversal Using Relays around NAT) standards are used as technics to establish media connection between peers for VoIP (for example using SIP (Session Initiation Protocol) or Jingle and WebRTC. They are part of a more general negotiation technique know as ICE (Interactive Connectivity Establishment). To summarize: - A STUN server is used to get an external network address. It does not serve as a relay for the mediat raffic. - TURN servers are used to relay traffic if direct (peer to peer) connection fails. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %bname < 1.0.16 %description devel Headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %bname < 1.0.16 %description doc Documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), LN = lists:keydelete(deps, 1, L), M = fun(O) -> P = lists:concat([erlang:system_info(otp_release), "-", erlang:system_info(system_architecture), "-", 8 * erlang:system_info({wordsize, external})]), [{D, true} || {platform_define, R, D} <- O, re:run(P, R, [{capture, none}]) =/= nomatch] end, file:write_file("%bname.rebar.config", lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, case lists:keyfind(erl_opts, 1, L) of {_, [_|_] = O} -> DO = case lists:keyfind(edoc_opts, 1, L) of {_, [_|_] = EO} -> EO; _ -> [] end, lists:keystore(edoc_opts, 1, LN, {edoc_opts, [{macros, M(O)}|DO]}); _ -> LN end), [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/include install -p -m 0644 include/%bname.hrl %buildroot%_otplibdir/%bname-%version/include/ 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/ %check ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/include %exclude %_otplibdir/%bname-*/doc %files devel %defattr(-,root,root) %dir %_otplibdir/%bname-* %_otplibdir/%bname-*/include %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Tue Aug 09 2022 Led <ledest@gmail.com> 1.0.47-2 - remove stun_logger.hrl - fix build docs * Sun Jun 12 2022 Led <ledest@gmail.com> 1.0.47-1 - 1.0.47 * Sat Feb 29 2020 Led <ledest@gmail.com> 1.0.31-1 - 1.0.31 * Sun Nov 26 2017 Led <ledest@gmail.com> 1.0.16-1 - 1.0.16 - git 564d571 - move headers and docs to separate subpackages * Sun Jul 16 2017 Led <ledest@gmail.com> 1.0.13-1 - 1.0.13 - remove patches: + stun-1.0.10-crypto.patch * Sun May 21 2017 Led <ledest@gmail.com> 1.0.10-2 - add patches: + stun-1.0.10-crypto.patch - add nowarn_deprecated_function option * Thu Mar 30 2017 Led <ledest@gmail.com> 1.0.10-1 - 1.0.10 * Sun Jan 01 2017 Led <ledest@gmail.com> 1.0.9-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