File kmymoney.spec of Package kmymoney

#
# spec file for package kmymoney
#
# 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/
#


%bcond_without released
Name:           kmymoney
Version:        5.1.2
Release:        0
Summary:        A Personal Finance Manager by KDE
License:        GPL-2.0-only OR GPL-3.0-only
URL:            https://www.kmymoney.org/
Source0:        https://download.kde.org/stable/kmymoney/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:  doxygen
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  kdiagram-devel
BuildRequires:  libofx-devel
BuildRequires:  libQt5Sql-private-headers-devel
BuildRequires:  pkgconfig
BuildRequires:  python3-devel
BuildRequires:  cmake(KF5Activities)
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5Completion)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5Contacts)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5Holidays)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5ItemModels)
BuildRequires:  cmake(KF5ItemViews)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5NewStuff)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KF5Service)
BuildRequires:  cmake(KF5TextWidgets)
BuildRequires:  cmake(KF5Wallet)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(LibAlkimia5) >= 8.1
BuildRequires:  cmake(QGpgme)
BuildRequires:  cmake(Qt5Concurrent)
BuildRequires:  cmake(Qt5Core) >= 5.15.2
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Keychain)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5QuickWidgets)
BuildRequires:  cmake(Qt5Sql)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5WebEngine)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
BuildRequires:  cmake(aqbanking) >= 6.2.5
BuildRequires:  cmake(gwengui-cpp) >= 5.4.1
BuildRequires:  cmake(gwengui-qt5) >= 5.4.1
BuildRequires:  cmake(gwenhywfar) >= 5.4.1
BuildRequires:  pkgconfig(libical)
BuildRequires:  pkgconfig(sqlcipher)
BuildRequires:  pkgconfig(sqlite3)
# For users of KDE:Unstable:Extra
Provides:       kmymoney5 = %{version}
Obsoletes:      kmymoney5 < %{version}
Provides:       kmymoney-doc = %{version}
Obsoletes:      kmymoney-doc < %{version}
# No QtWebEngine for other archs
ExclusiveArch:  %{arm} aarch64 %{ix86} x86_64 %{riscv}

%description
KMyMoney is a Personal Finance Manager by KDE. It operates
similar to Quicken, supports various account types, categorization
of expenses, multiple currencies, online banking support via QIF,
OFX and HBCI, budgeting and a rich set of reports.

%package devel
Summary:        Development Files for KMyMoney
Requires:       %{name} = %{version}

%description devel
Development files and headers need to build software using KMyMoney.

%lang_package

%prep
%autosetup -p1

%build
%cmake_kf5 -d build -- -DENABLE_WEBENGINE=ON

%cmake_build

%install
%kf5_makeinstall -C build

%fdupes -s %{buildroot}

%find_lang %{name} --with-man

%kf5_find_htmldocs

%ldconfig_scriptlets

%files
%license LICENSES/*
%doc %lang(en) %{_kf5_htmldir}/en/kmymoney/
%doc README.md
%dir %{_kf5_iconsdir}/hicolor/1024x1024
%dir %{_kf5_iconsdir}/hicolor/1024x1024/apps
%dir %{_kf5_iconsdir}/hicolor/1024x1024/mimetypes
%dir %{_kf5_iconsdir}/hicolor/20x20
%dir %{_kf5_iconsdir}/hicolor/20x20/apps
%{_datadir}/mime/packages/x-kmymoney.xml
%{_kf5_applicationsdir}/org.kde.kmymoney.desktop
%{_kf5_appsdir}/kmymoney/
%{_kf5_appstreamdir}/org.kde.kmymoney.appdata.xml
%{_kf5_bindir}/kmymoney
%{_kf5_configkcfgdir}/
%{_kf5_iconsdir}/hicolor/*/*/*
%{_kf5_libdir}/libkmm_base_dialogs.so.*
%{_kf5_libdir}/libkmm_base_widgets.so.*
%{_kf5_libdir}/libkmm_csvimportercore.so.*
%{_kf5_libdir}/libkmm_extended_dialogs.so.*
%{_kf5_libdir}/libkmm_gpgfile.so.*
%{_kf5_libdir}/libkmm_icons.so.*
%{_kf5_libdir}/libkmm_menus.so.*
%{_kf5_libdir}/libkmm_models.so.*
%{_kf5_libdir}/libkmm_mymoney.so.*
%{_kf5_libdir}/libkmm_payeeidentifier.so.*
%{_kf5_libdir}/libkmm_plugin.so.*
%{_kf5_libdir}/libkmm_printer.so.*
%{_kf5_libdir}/libkmm_selections.so.*
%{_kf5_libdir}/libkmm_settings.so.*
%{_kf5_libdir}/libkmm_templates.so.*
%{_kf5_libdir}/libkmm_webconnect.so.*
%{_kf5_libdir}/libkmm_widgets.so.*
%{_kf5_libdir}/libkmm_wizard.so.*
%{_kf5_libdir}/libkmm_keychain.so.*
%{_kf5_libdir}/libkmm_yesno.so.*
%{_kf5_libdir}/libonlinetask_interfaces.so.*
%{_kf5_plugindir}/
%{_kf5_sharedir}/checkprinting/
%{_kf5_sharedir}/kconf_update/
%{_mandir}/man1/kmymoney.1%{?ext_man}

%files devel
%{_includedir}/kmymoney/
%{_kf5_libdir}/libkmm_base_dialogs.so
%{_kf5_libdir}/libkmm_base_widgets.so
%{_kf5_libdir}/libkmm_csvimportercore.so
%{_kf5_libdir}/libkmm_extended_dialogs.so
%{_kf5_libdir}/libkmm_gpgfile.so
%{_kf5_libdir}/libkmm_icons.so
%{_kf5_libdir}/libkmm_keychain.so
%{_kf5_libdir}/libkmm_yesno.so
%{_kf5_libdir}/libkmm_menus.so
%{_kf5_libdir}/libkmm_models.so
%{_kf5_libdir}/libkmm_mymoney.so
%{_kf5_libdir}/libkmm_payeeidentifier.so
%{_kf5_libdir}/libkmm_plugin.so
%{_kf5_libdir}/libkmm_printer.so
%{_kf5_libdir}/libkmm_selections.so
%{_kf5_libdir}/libkmm_settings.so
%{_kf5_libdir}/libkmm_templates.so
%{_kf5_libdir}/libkmm_webconnect.so
%{_kf5_libdir}/libkmm_widgets.so
%{_kf5_libdir}/libkmm_wizard.so
%{_kf5_libdir}/libonlinetask_interfaces.so

%files lang -f %{name}.lang
%dir %{_kf5_sharedir}/locale/ko/
%dir %{_kf5_sharedir}/locale/ko/LC_SCRIPTS/
%lang (ko) %{_kf5_sharedir}/locale/ko/LC_SCRIPTS/kmymoney.js

%changelog
openSUSE Build Service is sponsored by