File qps.spec of Package qps
#
# spec file for package qps (Version 1.10.12.1)
#
# Copyright (c) 2009, 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: qps
Version: 1.10.12.1
Release: 1
URL: http://qps.kldp.net/
License: GPLv2
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE qps-1.10.12.1-nostrip.patch lazy.kent.suse@gmail.com
# -- don't strip binary, OBS does itself
Patch0: qps-1.10.12.1-nostrip.patch
# PATCH-FIX-UPSTREAM qps-1.10.12.1-buffer_overflow.patch bnc#613864 bernhard.rotter@gmail.com
# -- fix buffer overflow
Patch1: qps-1.10.12.1-buffer_overflow.patch
Group: System/Monitoring
Summary: Visual Process Manager
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libqt4-devel update-desktop-files
%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. It displays some
general system information, and many details about current processes.
Authors:
--------
<fasthyun@magicn.com>
%prep
%setup -q
%patch0
%patch1
%build
qmake
%{__make} %{?jobs:-j %jobs}
%install
%{__install} -Dm 755 %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -Dm 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%{__install} -Dm 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%{__install} -Dm 644 icon/icon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
%suse_update_desktop_file -r %{name} System Monitor
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CHANGES README_INSTALL
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%changelog
# kate: space-indent on; indent-width 4;