%global short_name mpdnowplaying %global applet_name plasma_applet_org.kde.plasma.%{short_name} Name: plasma-applet-%{short_name} Version: 0.5.1 Release: 1 Summary: MPD plasmoid for KDE Plasma License: GPL-3.0-or-later URL: https://github.com/marcelh83/mpdnowplaying Source: %{short_name}-%{version}.tar.gz BuildRequires: cmake extra-cmake-modules gettext BuildRequires: libmpdclient-devel qt5-qtquickcontrols2-devel BuildRequires: kf5-plasma-devel kf5-kconfig-devel kf5-kcoreaddons-devel BuildRequires: kf5-ki18n-devel kf5-knotifications-devel Requires: libmpdclient qt5-qtquickcontrols2 Requires: kf5-plasma kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-knotifications %description MPD Now Playing is a simple client plasmoid for the Music Player Daemon. %prep %setup -q -n %{short_name}-%{version} %build %cmake %cmake_build %install %cmake_install %find_lang %{applet_name} %files -f %{applet_name}.lang %{_libdir}/qt5/qml/org/kde/plasma/private/mpdnowplaying/* %{_datadir}/metainfo/org.kde.plasma.mpdnowplaying.appdata.xml %{_datadir}/plasma/plasmoids/org.kde.plasma.mpdnowplaying/* %license COPYING %changelog %autochangelog