2013-05-31 19:35:25 +00:00
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
Name: ps_mem
|
|
|
|
Version: 3.1
|
2013-08-14 13:55:42 +00:00
|
|
|
Release: 4%{?dist}
|
2013-07-25 12:04:07 +00:00
|
|
|
Summary: Memory profiling tool
|
|
|
|
Group: Applications/System
|
|
|
|
License: LGPLv2
|
|
|
|
URL: https://github.com/pixelb/scripts
|
2013-05-31 19:35:25 +00:00
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
Source0: https://raw.github.com/pixelb/scripts/961ff24c805a474080520403409872b04e18f4d9/scripts/ps_mem.py
|
|
|
|
Source1: http://www.gnu.org/licenses/lgpl-2.1.txt
|
2013-08-14 13:55:42 +00:00
|
|
|
Source2: ps_mem.1
|
|
|
|
|
|
|
|
Patch0: ps_mem-ennobling-the-s-switch.patch
|
2013-05-31 19:35:25 +00:00
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
BuildArch: noarch
|
2013-05-31 19:35:25 +00:00
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
Requires: python3
|
|
|
|
BuildRequires: python3-devel
|
2013-05-31 19:35:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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
|
2013-08-14 13:55:42 +00:00
|
|
|
%setup -q -T -c %{name}-%{version}
|
|
|
|
|
2013-05-31 19:35:25 +00:00
|
|
|
cp -p %{SOURCE0} %{name}
|
|
|
|
cp -p %{SOURCE1} LICENSE
|
2013-08-14 13:55:42 +00:00
|
|
|
cp -p %{SOURCE2} %{name}.1
|
2013-05-31 19:35:25 +00:00
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
# force python3
|
|
|
|
sed -i "s|/usr/bin/env python|%{__python3}|" %{name}
|
2013-05-31 19:35:25 +00:00
|
|
|
|
2013-08-14 13:55:42 +00:00
|
|
|
%patch0 -p2
|
|
|
|
|
|
|
|
|
2013-05-31 19:35:25 +00:00
|
|
|
%install
|
2013-08-14 13:55:42 +00:00
|
|
|
install -Dpm755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
install -Dpm644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
2013-05-31 19:35:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE
|
|
|
|
%{_bindir}/%{name}
|
2013-08-14 13:55:42 +00:00
|
|
|
%{_mandir}/man1/%{name}.1*
|
2013-05-31 19:35:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-08-14 13:55:42 +00:00
|
|
|
* Wed Aug 14 2013 Jaromir Capik <jcapik@redhat.com> - 3.1-4
|
|
|
|
- RH man page scan (#989490)
|
|
|
|
|
2013-07-25 12:04:07 +00:00
|
|
|
* Thu Jul 25 2013 Jaromir Capik <jcapik@redhat.com> - 3.1-3
|
|
|
|
- Patching shebang to force python3 (#987036)
|
|
|
|
|
2013-05-31 19:35:25 +00:00
|
|
|
* 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
|