File kdoubanfm.spec of Package kdoubanfm
#
# spec file for package kdoubanfm
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define app_id 151477
Name: kdoubanfm
Version: 0.91.3
Release: 0
Summary: Douban FM service in Systray
License: GPL-3.0+
Group: Productivity/Multimedia/Sound/Players
Url: https://www.linux-apps.com/content/show.php/KDoubanFM?content=%{app_id}
Source: https://dl.opendesktop.org/api/files/download/id/1466626715/%{app_id}-%{name}-%{version}.tar.bz2
Source1: %{name}.svgz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: extra-cmake-modules
BuildRequires: hicolor-icon-theme
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kglobalaccel-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: knotifications-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtmultimedia-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KDoubanFM is a small music application for Douban FM service.
It has no main window, but only a system tray icon. All the functions are provided through tray icon context menu.
You can use like/unlike/ban and red heart HMz after setting up your account info.
Global shortcuts are your media keys on the keyboard, pause/play and media-next.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake ..
make %{?_smp_mflags}
%install
%cmake_install
%suse_update_desktop_file org.kde.%{name}
%find_lang %{name}
%post
/sbin/ldconfig
kbuildsycoca5
%postun
/sbin/ldconfig
kbuildsycoca5
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/org.kde.%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog