Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
observer_cli
observer_cli.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File observer_cli.spec of Package observer_cli
%define bname observer_cli Name: %bname Version: 1.3.4 Release: 1 Summary: Visualize Erlang/Elixir nodes on the command line License: MIT Group: Development/Tools/Other URL: https://github.com/zhongwencool/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Provides: %bname-devel = %version-%release Provides: erlang-%bname-devel = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 %description Visualize Erlang/Elixir nodes on the command line by using recon. %package devel Summary: Headers of %bname Group: Development/Tools/Other Provides: erlang-%bname-devel = %version-%release Conflicts: %name < 1.2.1-1 %description devel Visualize Erlang/Elixir nodes on the command line by using recon. This package contains headers of %bname. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 1.2.1-1 %description doc Visualize Erlang/Elixir nodes on the command line by using recon. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch -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().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v cat > %bname.escript <<__EOF__ #!%_bindir/escript %%%% %%%%! -name observer_cli@127.0.0.1 -escript main observer_cli_escriptize +sbtu +A0 -elixir ansi_enabled true __EOF__ cat ebin/observer_cli_escriptize.beam >> %bname.escript erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("ebin/%bname.app"), file:write_file("ebin/%bname.app", io_lib:format("{application, %bname, ~81p}.~n", [lists:keystore(modules, 1, L, {modules, lists:delete(observer_cli_escriptize, proplists:get_value(modules, L, []))})]), [raw]), init:stop().' %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ rm -f %buildroot%_otplibdir/%bname-%version/ebin/observer_cli_escriptize.beam install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ install -pD -m 0755 %bname.escript %buildroot%_otpdir/bin/%bname install -d -m 0755 %buildroot%_bindir ln -sf %_otpdir/bin/%bname %buildroot%_bindir/%bname 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/ %files %defattr(-,root,root) %_otpdir/bin/* %_otplibdir/* %_bindir/* %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 * Mon Feb 06 2023 Led <ledest@gmail.com> 1.3.4-1 - 1.3.4 * Mon Aug 27 2018 Led <ledest@gmail.com> 1.3.3-2 - git d1fd992 * Mon Aug 27 2018 Led <ledest@gmail.com> 1.3.3-1 - 1.3.3 * Thu Jan 04 2018 Led <ledest@gmail.com> 1.2.1-1 - 1.2.1 - move docs and headers to separate subpackages * Mon Jan 16 2017 Led <ledest@gmail.com> 1.1.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