ps_mem/ps_mem.spec
2013-07-25 14:04:07 +02:00

52 lines
1.3 KiB
RPMSpec

Name: ps_mem
Version: 3.1
Release: 3%{?dist}
Summary: Memory profiling tool
Group: Applications/System
License: LGPLv2
URL: https://github.com/pixelb/scripts
Source0: https://raw.github.com/pixelb/scripts/961ff24c805a474080520403409872b04e18f4d9/scripts/ps_mem.py
Source1: http://www.gnu.org/licenses/lgpl-2.1.txt
BuildArch: noarch
Requires: python3
BuildRequires: python3-devel
%description
The ps_mem tool can determine how much RAM is used per program
(not per process). In detail it reports:
sum(private RAM for program processes) + sum(Shared RAM for program processes)
The shared RAM is problematic to calculate, and the tool automatically
selects the most accurate method available for the running kernel.
%prep
cp -p %{SOURCE0} %{name}
cp -p %{SOURCE1} LICENSE
# force python3
sed -i "s|/usr/bin/env python|%{__python3}|" %{name}
%install
install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%doc LICENSE
%{_bindir}/%{name}
%changelog
* Thu Jul 25 2013 Jaromir Capik <jcapik@redhat.com> - 3.1-3
- Patching shebang to force python3 (#987036)
* Thu May 30 2013 Jaromir Capik <jcapik@redhat.com> - 3.1-2
- Preserving file timestamps
* Wed May 29 2013 Jaromir Capik <jcapik@redhat.com> - 3.1-1
- Initial package