ps_mem/ps_mem.spec

43 lines
1.3 KiB
RPMSpec
Raw Normal View History

2020-07-22 14:48:14 +08:00
Name: ps_mem
Version: 3.14
Release: 1
Summary: A utility to accurately report the in core memory usage for a program
2020-07-22 14:48:14 +08:00
License: LGPLv2
URL: https://github.com/pixelb/ps_mem
Source0: https://github.com/pixelb/ps_mem/archive/refs/tags/v3.14.tar.gz
2020-07-22 14:48:14 +08:00
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
2020-07-22 14:48:14 +08:00
%install
install -Dpm755 %{name}.py %{buildroot}%{_bindir}/%{name}
2020-07-22 14:48:14 +08:00
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
2020-07-22 14:48:14 +08:00
* Thu Jun 11 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.6-9
- Package init