forked from pool/applet-window-buttons
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=37
80 lines
2.8 KiB
RPMSpec
80 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package applet-window-buttons
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define kf5_version 5.81
|
|
%define qt5_version 5.15
|
|
|
|
Name: applet-window-buttons
|
|
Version: 0.11.1
|
|
Release: 0
|
|
Summary: Plasma 5 applet to show window buttons in panels
|
|
License: GPL-2.0-or-later
|
|
Group: System/GUI/KDE
|
|
URL: https://github.com/psifidotos/applet-window-buttons
|
|
Source: https://github.com/psifidotos/applet-window-buttons/archive/%{version}/%{name}-%{version}.tar.gz
|
|
# Fix for building with 5.27, taken from: ;https://github.com/psifidotos/applet-window-buttons/pull/191
|
|
Patch0: kdecoration-5.27.patch
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: fdupes
|
|
BuildRequires: kconfig-devel >= %{kf5_version}
|
|
BuildRequires: kconfigwidgets-devel >= %{kf5_version}
|
|
BuildRequires: kdeclarative-devel >= %{kf5_version}
|
|
BuildRequires: kdoctools-devel >= %{kf5_version}
|
|
BuildRequires: kglobalaccel-devel >= %{kf5_version}
|
|
BuildRequires: ki18n-devel >= %{kf5_version}
|
|
BuildRequires: kwindowsystem-devel >= %{kf5_version}
|
|
BuildRequires: kxmlgui-devel >= %{kf5_version}
|
|
BuildRequires: libSM-devel
|
|
BuildRequires: plasma-framework-devel >= %{kf5_version}
|
|
BuildRequires: plasma5-workspace-devel >= 5.27
|
|
BuildRequires: cmake(KDecoration2) >= 5.27
|
|
BuildRequires: cmake(Qt5Core) >= %{qt5_version}
|
|
BuildRequires: cmake(Qt5DBus) >= %{qt5_version}
|
|
BuildRequires: cmake(Qt5Quick) >= %{qt5_version}
|
|
BuildRequires: cmake(Qt5QuickWidgets) >= %{qt5_version}
|
|
BuildRequires: cmake(Qt5Widgets) >= %{qt5_version}
|
|
BuildRequires: cmake(Qt5X11Extras) >= %{qt5_version}
|
|
|
|
%description
|
|
This is a Plasma 5 applet that shows the current window appmenu in
|
|
one's panels. This plasmoid is coming from Latte land, but it can also
|
|
support Plasma panels.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf5 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%fdupes %{buildroot}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_kf5_qmldir}/org/kde/appletdecoration
|
|
%dir %{_kf5_plasmadir}/plasmoids
|
|
%{_kf5_plasmadir}/plasmoids/org.kde.windowbuttons
|
|
%if %{pkg_vcmp cmake(KF5Plasma) < 5.84} || %{pkg_vcmp cmake(KF5Plasma) >= 5.89}
|
|
%{_kf5_servicesdir}/plasma-applet-org.kde.windowbuttons.desktop
|
|
%endif
|
|
%{_kf5_appstreamdir}/org.kde.windowbuttons.appdata.xml
|
|
|
|
%changelog
|