Name:           plasma6-applet-appgrid
Version:        1.8.5
Release:        2%{?dist}
Summary:        A modern fullscreen application launcher for KDE Plasma
# Main code: GPL-2.0-or-later
# dev.xarbit.appgrid.metainfo.xml: CC0-1.0
License:        GPL-2.0-or-later AND CC0-1.0
URL:            https://appgrid.xarbit.dev
Packager:       hilltty <49129010+hilltty@users.noreply.github.com>
Source0:        https://github.com/xarbit/plasma6-applet-appgrid/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  kf6-rpm-macros
BuildRequires:  cmake(Qt6Quick)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(KF6Service)
BuildRequires:  cmake(KF6I18n)
BuildRequires:  cmake(KF6CoreAddons)
BuildRequires:  cmake(KF6KIO)
BuildRequires:  cmake(KF6WindowSystem)
BuildRequires:  cmake(KF6Package)
BuildRequires:  cmake(KF6Runner)
BuildRequires:  cmake(Plasma)
BuildRequires:  cmake(PlasmaQuick)
BuildRequires:  cmake(LayerShellQt)
BuildRequires:  cmake(KF6IconThemes)
BuildRequires:  cmake(PlasmaActivities)
BuildRequires:  cmake(LibKWorkspace)

Requires:       plasma-workspace
Requires:       plasma-desktop
Requires:       kf6-kiconthemes

%description
A modern application launcher for KDE Plasma. It offers unified
search, favorites, categories, and both a panel and a centered popup
presentation.

%prep
%autosetup -n plasma6-applet-appgrid-%{version}

%conf
%cmake -DAPPGRID_VERSION_OVERRIDE=%{version}

%build
%cmake_build

%install
%cmake_install
%find_lang dev.xarbit.appgrid --with-kde

%files -f dev.xarbit.appgrid.lang
%license LICENSE
%doc README.md
%{_libdir}/qt6/plugins/plasma/applets/dev.xarbit.appgrid.so
%{_libdir}/qt6/plugins/plasma/applets/dev.xarbit.appgrid.panel.so
%{_datadir}/plasma/plasmoids/dev.xarbit.appgrid/
%{_datadir}/plasma/plasmoids/dev.xarbit.appgrid.panel/
%{_metainfodir}/dev.xarbit.appgrid.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/dev.xarbit.appgrid.svg

%changelog
* Fri May 29 2026 hilltty <49129010+hilltty@users.noreply.github.com> - 1.8.5-1
- pass version to cmake, update description

* Mon May 25 2026 hilltty <49129010+hilltty@users.noreply.github.com> - 1.8.0-1
- fix: add cmake(PlasmaActivities) BuildRequires, add icon to files

* Tue May 19 2026 hilltty <49129010+hilltty@users.noreply.github.com> - 1.7.10-1
- Sync with upstream: add icon to files, update Requires, update URL

* Sat Apr 25 2026 hilltty <49129010+hilltty@users.noreply.github.com> - 1.7.8-1
- Update to 1.7.8

* Thu Apr 24 2026 hilltty <49129010+hilltty@users.noreply.github.com> - 1.2.1-1
- Initial package
