Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang-dnssd
erlang-dnssd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlang-dnssd.spec of Package erlang-dnssd
%define bname dnssd Name: erlang-%bname Version: 0.9 Release: 5 Summary: Apple Bonjour DNS Service Discovery interface for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/benoitc/%{bname}_erlang Source: %{bname}_erlang-%version.tar.xz Patch0: %{bname}_erlang-%version-git.patch Patch1: %{bname}_erlang-0.9-ei.patch Provides: %{bname}_erlang = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erts-devel BuildRequires: pkg-config pkgconfig(avahi-compat-libdns_sd) %description dnssd_erlang is an interface to Apple's Bonjour DNS Service Discovery implementation. Bonjour allows applications to browse, resolve and register network services via link-local multicast DNS on the local network and via unicast DNS over the internet. In the later case if the service is running behind a NAT gateway Bonjour will only advertise it if a port forward can be negotiated via NAT-PMP or uPNP (which is attempted automatically). %package doc Summary: Documentation of %name Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Provides: %{bname}_erlang-doc = %version-%release %description doc Documentation of %name. %prep %setup -q -n %{bname}_erlang-%version %patch0 -p1 %patch1 -p1 %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:foldl(fun(K, A) -> lists:keydelete(K, 1, A) end, L, [deps, port_env, pre_hooks])), [raw]), init:stop().' LIBS="$(pkg-config --libs avahi-compat-libdns_sd)" \ CFLAGS="%optflags -flto $(pkg-config --cflags avahi-compat-libdns_sd)" \ CC="%__cc" \ ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config compile -v rebar -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/priv install -p -m 0755 priv/* %buildroot%_otplibdir/%bname-%version/priv/ 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 *.md %buildroot%_docdir/%name/ %if 0 %check ERL_COMPILER_OPTIONS="[inline,verbose]" 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 * Sun Aug 07 2022 Led <ledest@gmail.com> 0.9-5 - add patches: + dnssd_erlang-0.9-ei.patch * Fri Jul 02 2021 Led <ledest@gmail.com> 0.9-4 - build with system gcc * Mon Mar 15 2021 Led <ledest@gmail.com> 0.9-3 - update rebar.config generation * Mon Mar 15 2021 Led <ledest@gmail.com> 0.9-2 - fix build * Sun Mar 12 2017 Led <ledest@gmail.com> 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