File kdocker.spec of Package kdocker
#
# spec file for package [spectemplate]
#
# Copyright (c) 2013 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/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: kdocker
Version: 5.2
Release: 3
Summary: KDocker will help you dock any application into the system tray
License: GPL-3.0
Group: System/GUI/
Url: https://github.com/user-none/KDocker
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: libXpm-devel
BuildRequires: libXmu-devel
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 -n KDocker-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
qmake-qt5
%make_jobs
%install
make install INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
cp -a helpers/%{name}.1 %{buildroot}%{_mandir}/man1
%suse_update_desktop_file -c %{name} 'KDocker' 'Docking utility' 'kdocker' 'kdocker.png' 'Qt;Utility;DesktopUtility;'
%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS CREDITS ChangeLog README.md TODO VERSION
%{_mandir}/man*/%{name}*
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
%dir %{_datadir}/appdata
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%{_datadir}/appdata/kdocker.appdata.xml
%{_datadir}/icons/hicolor/128x128/apps/*.png
%{_datadir}/applications/%{name}.desktop
%changelog