# # spec file for package alkimia # # 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 sonum 8 %bcond_without released Name: alkimia Version: 8.1.2 Release: 0 Summary: Library with common classes and functionality used by finance applications License: LGPL-2.1-or-later URL: https://kmymoney.org/ Source0: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz %if %{with released} Source1: https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz.sig Source2: alkimia.keyring %endif BuildRequires: doxygen BuildRequires: extra-cmake-modules BuildRequires: gmp-devel BuildRequires: cmake(KF5Completion) BuildRequires: cmake(KF5Config) BuildRequires: cmake(KF5CoreAddons) BuildRequires: cmake(KF5I18n) BuildRequires: cmake(KF5IconThemes) BuildRequires: cmake(KF5KIO) BuildRequires: cmake(KF5NewStuff) BuildRequires: cmake(KF5Package) BuildRequires: cmake(KF5TextWidgets) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Qml) BuildRequires: cmake(Qt5Test) BuildRequires: cmake(Qt5Widgets) %description libalkimia is a library with common classes and functionality used by finance applications. %package -n libalkimia5-%{sonum} Summary: Library with common classes and functionality used by finance applications %description -n libalkimia5-%{sonum} libalkimia is a library for Qt5 with common classes and functionality used by finance applications. %package -n libalkimia5-devel Summary: Development Files for libalkimia Requires: libalkimia5-%{sonum} = %{version} %description -n libalkimia5-devel The development files for libalkimia. %lang_package %prep %autosetup -p1 %build %cmake_kf5 -d build -- -DBUILD_WITH_WEBKIT=0 -DBUILD_APPLETS=0 -DENABLE_FINANCEQUOTE=1 %cmake_build %install %kf5_makeinstall -C build mkdir -p %{buildroot}%{_datadir}/alkimia5/misc mv %{buildroot}/alkimia5/misc/financequote.pl %{buildroot}%{_datadir}/alkimia5/misc/financequote.pl %find_lang alkimia %{name}.lang %find_lang onlinequoteseditor %{name}.lang %find_lang plasma_applet_onlinequote %{name}.lang %find_lang plasma_applet_org.wincak.foreigncurrencies2 %{name}.lang %ldconfig_scriptlets -n libalkimia5-%{sonum} %files %license COPYING.LIB %dir %{_kf5_qmldir}/org/ %dir %{_kf5_qmldir}/org/kde %dir %{_kf5_qmldir}/org/kde/alkimia %{_kf5_applicationsdir}/org.kde.onlinequoteseditor5.desktop %{_kf5_appstreamdir}/org.kde.onlinequoteseditor5.appdata.xml %{_kf5_bindir}/onlinequoteseditor5 %{_kf5_iconsdir}/hicolor/*/apps/onlinequoteseditor5.* %{_kf5_knsrcfilesdir}/alkimia-quotes.knsrc %{_kf5_knsrcfilesdir}/kmymoney-quotes.knsrc %{_kf5_knsrcfilesdir}/skrooge-quotes.knsrc %{_kf5_qmldir}/org/kde/alkimia/libqmlalkimia.so %{_kf5_qmldir}/org/kde/alkimia/qmldir %{_kf5_sharedir}/alkimia5/ %files -n libalkimia5-devel %license COPYING.LIB %dir %{_includedir}/alkimia/ %{_includedir}/alkimia/Qt5 %{_kf5_cmakedir}/LibAlkimia5-*/ %{_kf5_libdir}/libalkimia5.so %{_libdir}/pkgconfig/libalkimia5.pc %files -n libalkimia5-%{sonum} %license COPYING.LIB %doc README.md %{_kf5_libdir}/libalkimia5.so.%{sonum}* %files lang -f %{name}.lang %changelog