Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 50bc0f877200afba0678dba7a96e32e5 > files > 2

qps-1.10.8.4-1mdv2010.0.src.rpm

Name:         qps
Summary:      Visual process manager
Version:      1.10.8.4
Release:      %mkrel 1
URL:          http://qps.kldp.net
Source:       %{name}-%{version}.tar.bz2
License:      GPL
Group:        Monitoring
BuildRoot:  %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:  qt4-devel
BuildRequires:  desktop-file-utils
BuildRequires:  libx11-devel 
BuildRequires:  imagemagick

%description
Qps is a visual process manager, an X11 version of "top" or "ps" that 
displays processes in a window and lets you sort and manipulate them. 

Qps can: 
  o  Change nice value of a process.
  o  Alter the scheduling policy and soft realtime priority of a process.
  o  Display the TCP/UDP sockets used by a process, and names of the 
      connected hosts (Linux only).
  o  Display the memory mappings of the process (which files and shared 
  o  libraries are loaded   where).
  o  Display the open files of a process, and the state of unix domain sockets.
  o  Kill or send any other signal to selected processes.
  o  Display the load average as a graph, and use this as its icon when 
      iconified.
  o  Show (as graph or numbers) current CPU, memory and swap usage.
  o  Sort the process table on any attribute (size, cpu usage, owner etc).
  o  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.
  o  Display the environment variables of any process. 
  o  Show the process table in tree form, showing the parent-child 
      relationship. 
  o  Execute user-defined commands on selected processes. 
  o  Display MOSIX-specific fields and migrate processes to other nodes
      in a cluster. 

  Qps runs on Linux and Solaris.

%prep
%setup -q 
perl -pi -e 's/\.xpm$//' %{name}.desktop

%build
$QTDIR/bin/qmake
make

%install
rm -rf $RPM_BUILD_ROOT
##install missing
install -D -p -m 0755 -s qps %{buildroot}%{_bindir}/qps
install -D -p -m 0644 qps.1 %{buildroot}%{_mandir}/man1/qps.1
install -D -p -m 0644 icon/icon.xpm %{buildroot}%{_datadir}/pixmaps/qps.xpm

install -d $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
convert -size 48x48 icon/icon.xpm $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png 
convert -size 32x32 icon/icon.xpm $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png 
convert -size 16x16 icon/icon.xpm $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png

desktop-file-install --vendor="" \
--remove-category="Application" \
--add-category=Monitor \
--add-category=X-MandrivaLinux-System-Monitoring \
--dir $RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files 
%defattr(-,root,root)
%doc CHANGES COPYING README_INSTALL
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/qps.xpm
%{_mandir}/man1/qps.1*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png



%changelog
* Sat Jun 06 2009 Nicolas Lécureuil <neoclust@mandriva.org> 1.10.8.4-1mdv2010.0
+ Revision: 383174
- Update to 1.10.8.4 version ( Qt4 version  )

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Tue Mar 04 2008 Olivier Blin <oblin@mandriva.com> 1.9.20-1mdv2008.1
+ Revision: 178467
- 1.9.20
- fix build with qt3 by using qt3's qmake
- remove hardcoded icon extension in desktop file
- do not run broken make install
- create icon dirs
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - drop old menu
    - kill re-definition of %%buildroot on Pixel's request
    - import qps


* Thu Aug 24 2006 Charles A Edwards <eslrahc@mandriva.org> 1.9.18.2-2mdv2007.0
- BR
- don't use make marco....hpefully fixes build on x86_64

* Thu Aug 24 2006 Charles A Edwards <eslrahc@mandriva.org> 1.9.18.2-1mdv2007.0
- 1st Mdv release