46 lines
1.3 KiB
RPMSpec
46 lines
1.3 KiB
RPMSpec
Name: ps_mem
|
|
Version: 3.6
|
|
Release: 9
|
|
Summary: profiling tool for memory
|
|
License: LGPLv2
|
|
URL: https://github.com/pixelb/ps_mem
|
|
Source0: https://raw.githubusercontent.com/pixelb/ps_mem/c80287d/ps_mem.py
|
|
Source1: http://www.gnu.org/licenses/lgpl-2.1.txt
|
|
Source2: ps_mem.1
|
|
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
|
|
%setup -q -T -c %{name}-%{version}
|
|
cp -p %{SOURCE0} %{name}
|
|
cp -p %{SOURCE1} LICENSE
|
|
cp -p %{SOURCE2} %{name}.1
|
|
sed -i "s|/usr/bin/env python|%{__python3}|" %{name}
|
|
touch -r %{SOURCE0} %{name}
|
|
|
|
%install
|
|
install -Dpm755 %{name} %{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
|
|
* Thu Jun 11 2020 Jeffery.Gao <gaojianxing@huawei.com> - 3.6-9
|
|
- Package init
|