43 lines
1.3 KiB
RPMSpec
43 lines
1.3 KiB
RPMSpec
Name: ps_mem
|
|
Version: 3.14
|
|
Release: 1
|
|
Summary: A utility to accurately report the in core memory usage for a program
|
|
License: LGPLv2
|
|
URL: https://github.com/pixelb/ps_mem
|
|
Source0: https://github.com/pixelb/ps_mem/archive/refs/tags/v3.14.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
%description
|
|
This package provides tools that reports how much core memory is used per
|
|
program. The details in it`s reports contains the private RAM for program
|
|
process and shared RAM for program processes.
|
|
|
|
%package help
|
|
Summary: Docs for use ps_mem
|
|
Requires: ps_mem = %{version}-%{release}
|
|
%description help
|
|
This package provides Documentation for use of ps_mem.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
sed -i "s|/usr/bin/env python|%{__python3}|" %{name}.py
|
|
|
|
%install
|
|
install -Dpm755 %{name}.py %{buildroot}%{_bindir}/%{name}
|
|
install -Dpm644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
|
%files
|
|
%doc LICENSE
|
|
%{_bindir}/%{name}
|
|
|
|
%files help
|
|
%doc LICENSE
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%changelog
|
|
* Wed Feb 8 2023 Weifeng Su <suweifeng1@huawei.com> 3.14-1
|
|
- Upgrade to version 3.14
|
|
|
|
* Thu Jun 11 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.6-9
|
|
- Package init
|