%global realname eper %global debug_package %{nil} %global commit 2a946220dd78bee759b39bce8194d8ae4d7912f8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Summary: Erlang Performance and Debugging Tools Name: erlang-%{realname} Version: 0.90.0 Release: 1%{?dist} Group: Development/Libraries License: MIT URL: https://github.com/massemanet/eper Source0: https://github.com/massemanet/eper/archive/%{commit}/%{realname}-%{commit}.tar.gz BuildRequires: erlang-kernel BuildRequires: erlang-stdlib BuildRequires: erlang-sasl BuildRequires: erlang-erts BuildRequires: erlang-rebar BuildRequires: erlang-rpm-macros >= 0.1.4 Requires: erlang-kernel Requires: erlang-stdlib Requires: erlang-sasl Requires: erlang-erts Requires: erlang-gtknode %description eper is a loose collection of Erlang performance related tools. sherk - a profiler, similar to Linux oprofile or Mac OS X shark gperf - a graphical performance monitor; shows CPU, memory and network usage 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. %prep %setup -qn %{realname}-%{commit} %build %rebar_compile %install mkdir -p $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/{ebin,src,priv/bin,priv/glade} install -m 755 priv/bin/{dtop,gperf,ntop,redbug,sherk} $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/priv/bin/ install -m 644 src/*.erl $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/src/ install -m 644 src/*.glade $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/priv/glade install -m 644 ebin/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/ %files %{_libdir}/erlang/lib/%{realname}-%{version}/ %license COPYING %changelog * Tue Jun 30 2015 Filip Andres - 0.90.0-1 - Initial import