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

#
# spec file for package plasmoid-active-window-control
#
# Copyright (c) 2018 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:           plasmoid-active-window-control
Version:        1.7.3
Release:        0
Summary:        Plasma 5 applet for controlling currently active window
License:        GPL-2.0-only
Group:          System/GUI/KDE
Url:            https://github.com/kotelnik/plasma-applet-active-window-control
Source:         plasma-applet-active-window-control-%{version}.tar.gz
# FIX-UPSTREAM_PATCH: make it work with Plasma 5.11.95
Patch0:         plasma-512.patch
# FIX-UPSTREAM_PATCH:: Fix inconsistent space between title and appmenu
Patch1:         fix-space-title-appmenu.patch
# FIX-UPSTREAM_PATCH: Fix proper enabling & diabling appmenu
Patch2:         fix-activating-appmenu.patch
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
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:  libSM-devel
BuildRequires:  plasma-framework-devel
BuildRequires:  plasma5-workspace-devel
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickWidgets)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5X11Extras)

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

%description
Plasma 5 applet for controlling currently active window. It can integrate the
window titlebar in the panel and has support for a global menu.

%prep
%setup -q -n plasma-applet-active-window-control-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%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

%changelog
openSUSE Build Service is sponsored by