Name: qps
License: GPLv2
Group: Monitoring
Version: 1.10.11
Release: alt1
Packager: Motsyo Gennadi <drool@altlinux.ru>
Source0: http://kldp.net/frs/download.php/4524/%name-%version.tar.bz2
Source1: %name.desktop
URL: http://qps.kldp.net
Summary: Visual process status monitor
BuildRequires: ImageMagick gcc-c++ libqt4-devel
%description
Qps is a perfect visual process manager, an X11 version of "top" or "ps" that displays processes in a window and lets you sort and manipulate them easily
Qps can
* change nice value of a process
* alter the scheduling policy and soft realtime priority of a process
* display the TCP/UDP sockets used by a process, and names of the connected hosts (Linux only)
* display the memory mappings of the process (which files and shared libraries are loaded where)
* display the open files of a process, and the state of unix domain sockets
* kill or send any other signal to selected processes
* display the load average as a graph, and use this as its icon when iconified
* show (as graph or numbers) current CPU, memory and swap usage
* sort the process table on any attribute (size, cpu usage, owner etc)
* on SMP systems running Linux 2.1 or later (or Solaris), display cpu usage for each processor, and which CPU a process is running on
* display the environment variables of any process
* show the process table in tree form, showing the parent-child relationship
* execute user-defined commands on selected processes
* display MOSIX-specific fields and migrate processes to other nodes in a cluster
%prep
%setup -q
%build
export PATH=$PATH:%_qt4dir/bin
qmake "QMAKE_CFLAGS+=%optflags" "QMAKE_CXXFLAGS+=%optflags" %name.pro
%make_build
%install
%__install -Dp -m 0755 %name %buildroot%_bindir/%name
%__install -Dp -m 644 %name.1 %buildroot%_man1dir/%name.1
%__install -pD -m 644 %SOURCE1 %buildroot%_desktopdir/%name.desktop
# Icons
%__mkdir -p %buildroot/{%_miconsdir,%_niconsdir,%_liconsdir}
convert -resize 48x48 icon/icon.xpm %buildroot%_liconsdir/%name.png
convert -resize 32x32 icon/icon.xpm %buildroot%_niconsdir/%name.png
convert -resize 16x16 icon/icon.xpm %buildroot%_miconsdir/%name.png
%files
%doc CHANGES README_INSTALL COPYING
%_man1dir/*
%_bindir/*
%_desktopdir/%name.desktop
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%changelog
* Wed Sep 02 2009 Motsyo Gennadi <drool@altlinux.ru> 1.10.11-alt1
- 1.10.11 release
* Tue May 12 2009 Motsyo Gennadi <drool@altlinux.ru> 1.10.8.3-alt1
- 1.10.8.3 release
* Sat May 09 2009 Motsyo Gennadi <drool@altlinux.ru> 1.10.8.1-alt1
- 1.10.8.1 release
* Thu Nov 20 2008 Motsyo Gennadi <drool@altlinux.ru> 1.10.5.1-alt1
- 1.10.5.1 release
- delete post/postun scripts (new rpm)
* Sat Sep 06 2008 Motsyo Gennadi <drool@altlinux.ru> 1.10.2-alt1
- 1.10.2 release
* Tue Feb 26 2008 Motsyo Gennadi <drool@altlinux.ru> 1.10.1-alt0.a8
- aplha version (only Qt4)
* Sun Dec 09 2007 Motsyo Gennadi <drool@altlinux.ru> 1.9.20-alt2
- add Url for Source
* Tue Nov 20 2007 Motsyo Gennadi <drool@altlinux.ru> 1.9.20-alt1
- new version
- add optflags support for building
- cleanup spec-file
- add icons
- fix and enable desktop-file
- remove old menu-file
- run buildreq -bi script
- fix license
* Fri May 13 2005 Nick S. Grechukh <gns@altlinux.ru> 1.9.9.4-alt1
- initial Sisyphus build