Blame kaidan.spec

d8d425
#
d8d425
# spec file for package kaidan
d8d425
#
Bernhard M. Wiedemann c92ca0
# Copyright (c) 2023 SUSE LLC
d8d425
#
d8d425
# All modifications and additions to the file contributed by third parties
d8d425
# remain the property of their copyright owners, unless otherwise agreed
d8d425
# upon. The license for this file, and modifications and additions to the
d8d425
# file, is the same license as for the pristine package itself (unless the
d8d425
# license for the pristine package is not an Open Source License, in which
d8d425
# case the license is the MIT License). An "Open Source License" is a
d8d425
# license that conforms to the Open Source Definition (Version 1.9)
d8d425
# published by the Open Source Initiative.
d8d425
d8d425
# Please submit bugfixes or comments via https://bugs.opensuse.org/
d8d425
#
d8d425
d8d425
d8d425
Name:           kaidan
be549c
Version:        0.9.1
d8d425
Release:        0
d8d425
Summary:        A XMPP client based on KDE Framework
be549c
License:        AML AND GPL-3.0-or-later AND SUSE-GPL-3.0+-with-openssl-exception AND MIT AND CC-BY-SA-4.0
d8d425
URL:            https://www.kaidan.im
be549c
Source0:        https://download.kde.org/unstable/%{name}/%{name}-%{version}.tar.xz
be549c
Source1:        https://download.kde.org/unstable/%{name}/%{name}-%{version}.tar.xz.sig
d8d425
Source2:        kaidan.keyring
d8d425
BuildRequires:  cmake >= 3.3
d8d425
BuildRequires:  extra-cmake-modules >= 5.40.0
511fe8
%if 0%{?suse_version} == 1500
511fe8
BuildRequires:  gcc13-c++
511fe8
BuildRequires:  gcc13-PIE
511fe8
%endif
511fe8
# Both Qt 5 and Qt 6 flavors use the same cmake config name, use the -devel package name
511fe8
# BuildRequires:  cmake(KQuickImageEditor)
511fe8
BuildRequires:  kquickimageeditor-devel
d8d425
BuildRequires:  update-desktop-files
be549c
BuildRequires:  cmake(KF5CoreAddons) >= 5.67.0
be549c
BuildRequires:  cmake(KF5KIO) >= 5.67.0
d8d425
BuildRequires:  cmake(KF5Kirigami2) >= 5.67.0
be549c
BuildRequires:  cmake(KF5KirigamiAddons) >= 0.7.0
d8d425
BuildRequires:  cmake(KF5Notifications)
d8d425
BuildRequires:  cmake(KF5QQC2DeskopStyle)
be549c
BuildRequires:  cmake(QXmpp) >= 1.5.0
d8d425
BuildRequires:  cmake(Qt5Concurrent)
d8d425
BuildRequires:  cmake(Qt5Core) >= 5.14.0
d8d425
BuildRequires:  cmake(Qt5LinguistTools)
d8d425
BuildRequires:  cmake(Qt5Location)
d8d425
BuildRequires:  cmake(Qt5Multimedia)
d8d425
BuildRequires:  cmake(Qt5Positioning)
d8d425
BuildRequires:  cmake(Qt5Qml)
d8d425
BuildRequires:  cmake(Qt5Quick)
d8d425
BuildRequires:  cmake(Qt5QuickCompiler)
d8d425
BuildRequires:  cmake(Qt5QuickControls2)
d8d425
BuildRequires:  cmake(Qt5Sql)
d8d425
BuildRequires:  cmake(Qt5Svg)
d8d425
BuildRequires:  cmake(Qt5Widgets)
d8d425
BuildRequires:  cmake(Qt5Xml)
d8d425
BuildRequires:  cmake(ZXing) >= 1.0.8
be549c
Requires:       kirigami-addons >= 0.7.0
d8d425
Requires:       kirigami2 >= 5.67.0
be549c
Requires:       kquickimageeditor-imports
d8d425
Requires:       libqt5-qtquickcontrols2
d8d425
d8d425
%description
d8d425
Kaidan is a simple Jabber/XMPP client providing a user-interface using
d8d425
Kirigami and QtQuick. The back-end of Kaidan is entirely written in C++
d8d425
using the qxmpp XMPP client library and Qt 5.
d8d425
be549c
%lang_package
be549c
d8d425
%prep
d8d425
%autosetup -p1
d8d425
d8d425
%build
511fe8
%if 0%{?suse_version} == 1500
511fe8
export CXX=g++-13
511fe8
%endif
d8d425
%cmake_kf5 -d build '-DI18N:BOOL=ON' '-DQUICK_COMPILER:BOOL=ON'
d8d425
%cmake_build
d8d425
d8d425
%install
d8d425
%kf5_makeinstall -C build
d8d425
%suse_update_desktop_file im.kaidan.kaidan
d8d425
be549c
%find_lang %{name} --with-qt
be549c
d8d425
%files
d8d425
%license LICENSE
d8d425
%doc README.md NEWS
d8d425
%dir %{_kf5_sharedir}/%{name}
d8d425
%{_kf5_applicationsdir}/im.kaidan.kaidan.desktop
d8d425
%{_kf5_appstreamdir}/im.kaidan.kaidan.appdata.xml
d8d425
%{_kf5_bindir}/%{name}
d8d425
%{_kf5_iconsdir}/hicolor/*/apps/%{name}.*
d8d425
%{_kf5_notifydir}/kaidan.notifyrc
d8d425
%{_kf5_sharedir}/%{name}/images
be549c
%{_kf5_sharedir}/%{name}/providers.json
be549c
be549c
%files lang -f %{name}.lang
d8d425
d8d425
%changelog