Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
eper
eper.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eper.spec of Package eper
%define bname eper Name: %bname Version: 0.99.1 Release: 3 Summary: A loose collection of Erlang Performance related tools License: MIT Group: Development/Tools/Other URL: https://github.com/massemanet/%bname Source: %bname-%version.tar.xz Patch1: %bname-0.95.0-fix-bin.patch Patch2: %bname-0.99.1-try_with_stack.patch Patch3: %bname-0.97.5-map.patch Patch4: %bname-0.99.1-23.patch Patch5: %bname-0.99.1-match-float.patch Provides: erlang-%bname = %version-%release Provides: %bname-redis = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar erl_interface erlang-otp-base-devel BuildRequires: erlang-eunit %description %bname is a loose collection of Erlang Performance related tools: - dtop - similar to unix top - ntop - visualizes network traffic - atop - shows various aspects of the VM allocators - redbug - similar to the OTP dbg application, but safer, better etc. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.99.1-1 %description doc Documentation of %bname. %prep %setup -q -n %bname-%version %patch1 -p1 %patch2 -p1 #patch3 -p1 %patch4 -p1 %patch5 -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(O, A) -> lists:keydelete(O, 1, A) end, L, [deps, plugins])), [raw]), init:stop().' ln -sf rebar.config.script %bname.rebar.config.script ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v cat - ebin/%bname.beam > %bname.escript <<__EOF__ #!%_bindir/escript %%%% %%%%!-noinput __EOF__ 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(%bname, proplists:get_value(modules, L, []))})])), 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/%bname.beam 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 AUTHORS README* %buildroot%_docdir/%name/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv/bin install -p -m 0755 priv/bin/* %buildroot%_otplibdir/%bname-%version/priv/bin/ ln -sf dtop %buildroot%_otplibdir/%bname-%version/priv/bin/ntop install -d -m 0755 %buildroot%_otpdir/bin for i in %buildroot%_otplibdir/%bname-%version/priv/bin/*; do ln -s %_otplibdir/%bname-%version/priv/bin/$(basename $i) %buildroot%_otpdir/bin/ done install -d -m 0755 %buildroot%_bindir install -pD -m 0755 %bname.escript %buildroot%_bindir/%bname for i in d n; do ln -sf %_otpdir/bin/${i}top %buildroot%_bindir/%bname-${i}top done ln -sf %_otpdir/bin/redbug %buildroot%_bindir/ %files %defattr(-,root,root) %_otplibdir/* %_otpdir/bin/* %_bindir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sun Aug 27 2023 Led <ledest@gmail.com> 0.99.1-3 - add patches: + eper-0.99.1-match-float.patch * Tue May 19 2020 Led <ledest@gmail.com> 0.99.1-2 - add patches: + eper-0.99.1-23.patch * Mon Jan 16 2017 Led <ledest@gmail.com> 0.99.1-1 - 0.99.1 - add patches: + eper-0.99.1-try_with_stack.patch - move docs to separate subpackage - fix URL - disable eper-0.97.5-map.patch * Mon Jan 16 2017 Led <ledest@gmail.com> 0.97.6-3 - update script * Mon Jan 16 2017 Led <ledest@gmail.com> 0.97.6-2 - fix script * Thu Oct 27 2016 Led <ledest@gmail.com> 0.97.6-1 - 0.97.6 - add patches: + eper-0.97.5-map.patch * Tue Aug 30 2016 Led <ledest@gmail.com> 0.97.5-1 - 0.97.5 * Fri Mar 04 2016 Led <ledest@gmail.com> 0.97.3-1 - 0.97.3 * Mon Feb 15 2016 Led <ledest@gmail.com> 0.97.1-1 - 0.97.1 * Mon Nov 30 2015 Led <ledest@gmail.com> 0.96.4-1 - 0.96.4 - remove patches: + eper-0.95.0-fix-prfTrc-locals.patch * Sun Oct 11 2015 Led <ledest@gmail.com> 0.95.0-2 - fix BuildRequires * Fri Sep 18 2015 Led <ledest@gmail.com> 0.95.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