File plasma-mycroft.spec of Package plasma-mycroft
#
# spec file for package plasma-mycroft
#
# 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/
#
%define qt_version 5.9.0
%define kf5_version 5.0
Name: plasma-mycroft
Version: 0.1+git.1612158674.70f8463
Release: 0
Summary: Plasmoid for Mycroft AI
License: Apache-2.0 AND GPL-2.0-only AND LGPL-2.0-only
Group: System/GUI/KDE
URL: https://cgit.kde.org/plasma-mycroft.git
Source: mycroft-plasmoid-%{version}.tar.xz
Patch1: fix-config-install-dir.patch
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: libqt5-qtlottie
BuildRequires: mycroft-gui
BuildRequires: python3-dbus-python
BuildRequires: python3-msm
BuildRequires: python3-qt5
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5Notifications)
BuildRequires: cmake(KF5Plasma) >= %{kf5_version}
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5Core) >= %{qt_version}
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5WebSockets)
Requires: mycroft-core
Requires: mycroft-gui
Requires: plasma5-desktop
Requires: python3-dbus-python
Requires: python3-qt5
%description
Mycroft AI Plasmoid for KDE Plasma 5 Desktop
%prep
%setup -q -n mycroft-plasmoid-%{version}
%patch1 -p1
%build
%cmake_kf5
%make_jobs
%install
%kf5_makeinstall
%fdupes %{buildroot}
%files
%license COPYING COPYING.LGPL COPYING.APACHE2
%{_datadir}/plasma/plasmoids
%{_libdir}/qt5/qml/org/kde/private/mycroftplasmoid
%{_datadir}/icons/*
%{_datadir}/knotifications5/mycroftPlasmoid.notifyrc
%if %{pkg_vcmp plasma-framework-devel >= 5.84}
%{_datadir}/kservices5/plasma-applet-org.kde.plasma.mycroftplasmoid.desktop
%endif
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.kde.plasma.mycroftplasmoid.appdata.xml
%dir %{_docdir}/%{name}
%dir %{_docdir}/%{name}/mycroft
%{_docdir}/%{name}/mycroft/mycroft.conf
%changelog