File applet-window-title.spec of Package applet-window-title
#
# spec file for package applet-window-title
#
# Copyright (c) 2021 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/
#
Name: applet-window-title
Version: 999.git
Release: 0
Summary: Plasma 5 applet that shows the application title and icon for active window
License: GPL-2.0-only
Group: System/GUI/KDE
URL: https://github.com/psifidotos/applet-window-title
Source: applet-window-title-%{version}.tar.gz
Source1: CMakeLists.txt
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: cmake(KF5Plasma)
Requires: plasma5-desktop
BuildArch: noarch
%description
Plasma 5 applet that shows the application title and icon for active window
%prep
%setup -q
%__cp %{SOURCE1} .
%build
%__mkdir package
%__mv {contents,metadata.desktop} package/
%cmake_kf5 -d build ..
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}
%files
%doc README.md
%license LICENSE
%{_kf5_plasmadir}/plasmoids/
%{_kf5_appstreamdir}/org.kde.windowtitle.appdata.xml
%if %{pkg_vcmp cmake(KF5Plasma) < 5.84} || %{pkg_vcmp cmake(KF5Plasma) > 5.89}
%{_kf5_servicesdir}/plasma-applet-org.kde.windowtitle.desktop
%endif
%changelog