File qTop.spec of Package qTop

#
# spec file for package qTop
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _name Top
Name:           qTop
Version:        2.3.4
Release:        0
License:        GPL-2.0
Summary:        Running processes control
Url:            http://hugo.pereira.free.fr/software/index.php?page=software&full=1
Group:          System/X11/Utilities
Source:         %{_name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  update-desktop-files
BuildRequires:  xdg-utils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Top is a windowed version of the console top command, which provides a dynamic
real-time view of a running system. It has only a small fraction of the options
provided by its console counterparts, but hopefully the most used ones.

%prep
%setup -q -n %{_name}-%{version}

%build
%cmake \
    -DUSE_QT5=ON \
    -DCMAKE_INSTALL_PREFIX=%{_prefix}
%make_jobs

%install
%cmake_install
install -dm 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -Dm 0644 %{_name}.desktop %{buildroot}%{_datadir}/applications
install -Dm 0644 %{_name}.png %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file -r %{_name} Qt System Monitor

%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png

%changelog
openSUSE Build Service is sponsored by