File plasmoid-active-window-control.spec of Package plasmoid-active-window-control

#
# spec file for package plasmoid-active-window-control
#
# Copyright (c) 2017 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/
#

Name:           plasmoid-active-window-control
Version:        1.7.3
Release:        0
Summary:        Plasma 5 applet for controlling currently active window
License:        GPL-2.0
Group:          System/GUI/KDE
Url:            https://github.com/kotelnik/plasma-applet-active-window-control
Source:         plasma-applet-active-window-control-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  extra-cmake-modules
BuildRequires:	kconfig-devel
BuildRequires:	kconfigwidgets-devel
BuildRequires:	kdeclarative-devel
BuildRequires:	kdoctools-devel
BuildRequires:	kglobalaccel-devel
BuildRequires:	ki18n-devel
BuildRequires:	kwindowsystem-devel
BuildRequires:	kxmlgui-devel
BuildRequires:	plasma-framework-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5Widgets)
BuildRequires:	cmake(Qt5Quick)
BuildRequires:	cmake(Qt5QuickWidgets)
BuildRequires:  cmake(Qt5X11Extras)
BuildRequires:  libSM-devel

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Plasma 5 applet for controlling currently active window

%prep
%setup -q -n plasma-applet-active-window-control-%{version}

%build
%cmake_kf5 -d build
%make_jobs

%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}
%find_lang plasma_applet_org.kde.activeWindowControl %{name}.lang

%files -f %{name}.lang
%defattr(-,root,root)
%doc README.md
%doc LICENSE
%{_libdir}/qt5/qml
%{_kf5_plugindir}/
%{_kf5_plasmadir}/
%{_kf5_servicesdir}/
%{_datadir}/metainfo
openSUSE Build Service is sponsored by