File tokodon.spec of Package tokodon

#
# spec file for package tokodon
#
# Copyright (c) 2022 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 __builder ninja
Name:           tokodon
Version:        22.06
Release:        0
Summary:        Is a Mastodon client
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        BSD-2-Clause AND CC0-1.0 AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
URL:            https://invent.kde.org/network/tokodon
Source:         %{url}/-/archive/v22.06/%{name}-v%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  ninja
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Kirigami2)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5QQC2DesktopStyle)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(Qt5)
BuildRequires:  cmake(Qt5Keychain)
BuildRequires:  cmake(Qt5Multimedia)
BuildRequires:  cmake(Qt5Quick)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5WebSockets)
Requires:       kirigami

%description
Tokodon is a Mastodon client for Plasma and Plasma Mobile.

%lang_package

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

%build
%cmake
%cmake_build

%install
%cmake_install

%find_lang %{name}

%files
%license LICENSES/*
%doc README.md
%{_bindir}/tokodon
%{_datadir}/knotifications5/tokodon.notifyrc
%{_datadir}/qlogging-categories5/tokodon.categories
%{_datadir}/applications/org.kde.tokodon.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.kde.tokodon.svg
%{_datadir}/metainfo/org.kde.tokodon.appdata.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by