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: http://www.ward.nu/computer/psinfo/psinfo-%{version}.tar.gz
Patch1: psinfo-makefile.patch
URL: http://www.ward.nu/computer/psinfo/
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
%description
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
problems.
%prep
%setup -q
%patch1
%build
%__make %{?jobs:-j%{jobs}} \
CC="%__cc" \
OPTFLAGS="%{optflags}" \
INSTALL="%__install" \
TARGETDIR="%{_bindir}"
%install
%__make \
INSTALL="%__install -D" \
TARGETDIR="%{buildroot}%{_bindir}" \
install
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README
%{_bindir}/psinfo