File qtaskbar.spec of Package qtaskbar
#
# spec file for package qtaskbar
#
# 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 taskbar
Name: qtaskbar
Version: 2.6.1
Release: 0
License: GPL-2.0
Summary: Transparent taskbar for quick access to applications
Url: http://hugo.pereira.free.fr/software/index.php?page=software&full=1
Group: System/X11/Utilities
Source: %{_name}-%{version}.tar.gz
BuildRequires: aspell-devel
BuildRequires: cmake
BuildRequires: extra-cmake-modules
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(x11-xcb)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: update-desktop-files
BuildRequires: xdg-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Taskbar is a transparent taskbar to collect users favorite applications and run
them in a simple click. It is inspired both from Kde 3.4 taskbar and OsX kicker.
%prep
%setup -q -n %{_name}-%{version}
%build
%cmake \
-DUSE_QT5=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
%__make %{?_smp_mflags}
%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 Utility DesktopUtility
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png