|
|
97dd6f4 |
Name: smem
|
|
|
97dd6f4 |
Version: 0.1
|
|
|
97dd6f4 |
Release: 4%{?dist}
|
|
|
97dd6f4 |
Summary: Report application memory usage in a meaningful way
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
Group: Applications/System
|
|
|
97dd6f4 |
License: GPLv2+
|
|
|
97dd6f4 |
URL: http://www.selenic.com/smem/
|
|
|
97dd6f4 |
Source0: http://www.selenic.com/smem/download/smem-0.1.tar.gz
|
|
|
97dd6f4 |
Source1: http://www.selenic.com/smem/index.html
|
|
|
97dd6f4 |
# http://selenic.com/repo/index.cgi/smem/raw-rev/741bd2646ebf
|
|
|
97dd6f4 |
# Add GPLv2+ license and copyright notice
|
|
|
97dd6f4 |
Patch0: smem-0.1-741bd2646ebf-gplv2+.patch
|
|
|
97dd6f4 |
# http://selenic.com/repo/index.cgi/smem/raw-rev/4320ad746bcc
|
|
|
97dd6f4 |
# Kernel version >= 2.6.27 check
|
|
|
97dd6f4 |
Patch1: smem-0.1-4320ad746bcc-kervercheck.patch
|
|
|
97dd6f4 |
Requires: kernel >= 2.6.27
|
|
|
97dd6f4 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
97dd6f4 |
BuildArch: noarch
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%description
|
|
|
97dd6f4 |
smem is a tool that can give numerous reports on memory usage on Linux
|
|
|
97dd6f4 |
systems. Unlike existing tools, smem can report proportional set size (PSS),
|
|
|
97dd6f4 |
which is a more meaningful representation of the amount of memory used by
|
|
|
97dd6f4 |
libraries and applications in a virtual memory system.
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
Because large portions of physical memory are typically shared among
|
|
|
97dd6f4 |
multiple applications, the standard measure of memory usage known as
|
|
|
97dd6f4 |
resident set size (RSS) will significantly overestimate memory usage. PSS
|
|
|
97dd6f4 |
instead measures each application's "fair share" of each shared area to give
|
|
|
97dd6f4 |
a realistic measure.
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%prep
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%setup -q
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%patch0 -p1 -b .gpl
|
|
|
97dd6f4 |
%patch1 -p1 -b .kerver
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
cp -a %{SOURCE1} smem.html
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
# sample script, installed as documentation
|
|
|
97dd6f4 |
chmod -x capture
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%build
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%install
|
|
|
97dd6f4 |
rm -rf $RPM_BUILD_ROOT
|
|
|
97dd6f4 |
install -D -p -m 755 smem $RPM_BUILD_ROOT/%{_bindir}/smem
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%clean
|
|
|
97dd6f4 |
rm -rf $RPM_BUILD_ROOT
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%files
|
|
|
97dd6f4 |
%defattr(-,root,root,-)
|
|
|
97dd6f4 |
%doc smem.html capture COPYING
|
|
|
97dd6f4 |
%{_bindir}/smem
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
%changelog
|
|
|
97dd6f4 |
* Wed May 7 2009 Matthew Miller <mattdm@mattdm.org> - 0.1-4
|
|
|
97dd6f4 |
- remove smem.pdf at request of upstream
|
|
|
97dd6f4 |
- patch0: 741bd2646ebf -- add GPLv2+ and copyright notice
|
|
|
97dd6f4 |
- patch1: 4320ad746bcc -- check that kernel release >= 2.6.27
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
* Thu Apr 30 2009 Matthew Miller <mattdm@mattdm.org> - 0.1-3
|
|
|
97dd6f4 |
- fix minor rpmlint concerns raised in review (bz #498490)
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
* Thu Apr 30 2009 Matthew Miller <mattdm@mattdm.org> - 0.1-2
|
|
|
97dd6f4 |
- whoops -- fixed group
|
|
|
97dd6f4 |
|
|
|
97dd6f4 |
* Thu Apr 30 2009 Matthew Miller <mattdm@mattdm.org> - 0.1-1
|
|
|
97dd6f4 |
- initial specfile
|
|
|
97dd6f4 |
- note gplv2+ license -- added in svn and will be in next code release
|