diff --git a/Makefile.am b/Makefile.am index f16b02a..0a1a74a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -EXTRA_DIST = COPYING +EXTRA_DIST = COPYING psstop.spec bin_PROGRAMS = psstop diff --git a/README.md b/README.md index 78dc240..000ce85 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,18 @@ process running. autoreconf --install + ./configure + make make install +## Generating RPM packages + + make dist + + rpmbuild -ta psstop*.tar.gz + ## Usage psstop diff --git a/psstop.spec b/psstop.spec new file mode 100644 index 0000000..013cfac --- /dev/null +++ b/psstop.spec @@ -0,0 +1,42 @@ +Name: psstop +Version: 1 +Release: 1%{?dist} +Summary: Show processes' memory usage by looking into pss + +Group: Applications/System +License: GPLv3 +URL: https://github.com/clearlinux/psstop +Source0: psstop-%{version}.tar.gz + + +%description +PPSTOP tracks the amount of memory from the process' Pss, +as shown in /proc/PID/smaps + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +%make_install + +%clean +rm -rf %{buildroot} + +%files +%doc +%{_bindir}/* + + + + +%changelog +* Thu Jun 01 2017 Ignacio Hernandez - 1-1 +- Initial revision +