File kdocker.spec of Package kdocker

#
# spec file for package kdocker
#
# Copyright (c) 2016 SUSE LINUX 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/
#


Name:           kdocker
Version:        @service@
Release:        0
Summary:        Dock any application to the system tray
License:        GPL-2.0
Group:          System/X11/Utilities
Url:            https://github.com/user-none/KDocker
Source:         %{name}-%{version}.tar.xz
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KDocker will help you dock any application in the system tray. This means you can
dock openoffice, firefox, thunderbolt, eclipse, anything!
Just point and click. Works for both KDE and GNOME (In fact it should work for
most modern window managers that support NET WM Specification.
I believe it works for XFCE, for instance)

All you need to do is start KDocker and select an application using the mouse and
lo! the application gets docked into the system tray.
The application can also be made to dissappear from the task bar.

%prep
%setup -q

%build
%qmake5
%make_jobs

%install
%qmake5_install
install -Dm 0644 helpers/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%suse_update_desktop_file -r %{name} Qt Utility DesktopUtility

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog COPYING CREDITS README.md TODO VERSION
%config %{_sysconfdir}/bash_completion.d/%{name}
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_mandir}/man?/%{name}.?%{ext_man}

%changelog

openSUSE Build Service is sponsored by