File nheko-krunner.spec of Package nheko-krunner

# nheko-krunner spec

Name:           nheko-krunner
Version:        0.2.0
Release:        0
Summary:        A KRunner plugin for nheko
License:        GPL-3.0-or-later AND LGPL-2.1-or-later
URL:            https://github.com/LorenDB/%{name}
Source0:        %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires:	libQt5Core-devel
BuildRequires:	libQt5Widgets-devel
BuildRequires:	libQt5DBus-devel
BuildRequires:	krunner-devel
BuildRequires:	ki18n-devel
BuildRequires:  cmake(KF5KCMUtils)
Requires:		nheko

%description
nheko-krunner is a KRunner plugin that allows you to quickly jump to rooms or direct chats in the nheko matrix client. You can also use it to create rooms and direct chats.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake -DKDE_INSTALL_PLUGINDIR=`kf5-config --qt-plugins`
%cmake_build

%install
%cmake_install

%files
%doc README.md
%license LICENSE
%dir %_kf5_plugindir/kf5/krunner
%_kf5_plugindir/kf5/krunner/nheko-krunner.so
%dir %_kf5_plugindir/kf5/krunner/kcms
%_kf5_plugindir/kf5/krunner/kcms/kcm_nheko-krunner.so
%_datadir/kservices5/plasma-runner-nheko-krunner.desktop

%changelog
openSUSE Build Service is sponsored by