From 2e0c6df22b10d065be4b08c2b532b558c7407867 Mon Sep 17 00:00:00 2001 From: Ignacio Hernandez Date: Wed, 31 May 2017 19:13:26 -0700 Subject: [PATCH 1/2] Added missing step to installation instructions Signed-off-by: Ignacio Hernandez --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 78dc240..503c13d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ process running. autoreconf --install + ./configure + make make install From 0d7c23716565fcf998609dcf931e7ac34f6bb757 Mon Sep 17 00:00:00 2001 From: Ignacio Hernandez Date: Wed, 31 May 2017 20:36:45 -0700 Subject: [PATCH 2/2] Added basic rpm generation capabilities Signed-off-by: Ignacio Hernandez --- Makefile.am | 2 +- README.md | 6 ++++++ psstop.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 psstop.spec 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 503c13d..000ce85 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ process running. 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 +