File psinfo.spec of Package psinfo

# vim: set sw=4 ts=4 et nu:
# norootforbuild

Name:               psinfo
Version:            0.12
Release:            0
Summary:            Process Information and Statistics
Source:   {version}.tar.gz
Patch1:             psinfo-makefile.patch
Group:              System/Monitoring
License:            GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      gcc make glibc-devel

psinfo shows process information and statistics using the kernel /proc
interface. This information includes: process state, environment, arguments and
flags; CPU usage; scheduling; I/O usage; virtual memory status; pagefaults;
capabilities; and signals. psinfo is useful for providing a detailed view of
the current state of an application when diagnosing issues or performance

%setup -q

%__make %{?jobs:-j%{jobs}} \
    CC="%__cc" \
    OPTFLAGS="%{optflags}" \
    INSTALL="%__install" \

%__make \
    INSTALL="%__install -D" \
    TARGETDIR="%{buildroot}%{_bindir}" \

%{?buildroot:%__rm -rf "%{buildroot}"}