File alkimia.spec of Package alkimia-qt4

#
# 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 soname_qt4 libalkimia
%define sonum 8
%bcond_without released
Name:           alkimia-qt4
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/alkimia/%{version}/alkimia-%{version}.tar.xz
%if %{with released}
Source1:        https://download.kde.org/stable/alkimia/%{version}/alkimia-%{version}.tar.xz.sig
Source2:        alkimia.keyring
%endif
BuildRequires:  doxygen
BuildRequires:  extra-cmake-modules
BuildRequires:  gmp-devel
BuildRequires:  libkde4-devel
BuildRequires:  libQtWebKit-devel

%description
libalkimia is a library with common classes and functionality used by finance
applications.

%package -n %{soname_qt4}%{sonum}
Summary:        Library with common classes and functionality used by finance applications

%description -n %{soname_qt4}%{sonum}
%{soname_qt4} is a library for Qt4 with common classes and functionality used by finance
applications.

%package -n %{soname_qt4}-devel
Summary:        Development Files for %{soname_qt4}
Group:          Development/Languages/C and C++
Requires:       %{soname_qt4}%{sonum} = %{version}

%description -n %{soname_qt4}-devel
The development files for %{soname_qt4}.

%lang_package

%prep
%setup -q -n alkimia-%{version}

%build
%cmake_kde4 -d build -- -DBUILD_QT4=1 -DBUILD_APPLETS=0 -DENABLE_FINANCEQUOTE=1
%cmake_build

%install
%kde4_makeinstall -C build

%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 %{soname_qt4}%{sonum}

%files
%license COPYING.LIB
%{_datadir}/applications/org.kde.onlinequoteseditor.desktop
%{_datadir}/metainfo/org.kde.onlinequoteseditor.appdata.xml
%{_kde4_bindir}/onlinequoteseditor
%{_kde4_iconsdir}/hicolor/*/apps/onlinequoteseditor.*
%dir %{_libqt4_importsdir}/org/
%dir %{_libqt4_importsdir}/org/kde
%dir %{_libqt4_importsdir}/org/kde/alkimia
%{_libqt4_importsdir}/org/kde/alkimia/libqmlalkimia.so
%{_libqt4_importsdir}/org/kde/alkimia/qmldir
%{_kde4_appsdir}/alkimia/
%{_kde4_configdir}/alkimia-quotes.knsrc
%{_kde4_configdir}/kmymoney-quotes.knsrc
%{_kde4_configdir}/skrooge-quotes.knsrc
#{_kde4_modulesdir}/plasma_applet_onlinequote.so
#{_kde4_servicesdir}/plasma-applet-onlinequote.desktop

%files -n %{soname_qt4}-devel
%license COPYING.LIB
%dir %{_kde4_includedir}/alkimia/
%{_kde4_includedir}/alkimia/Qt4
%{_kde4_libdir}/cmake/LibAlkimia-*/
%{_kde4_libdir}/libalkimia.so
%{_libdir}/pkgconfig/libalkimia.pc

%files -n %{soname_qt4}%{sonum}
%license COPYING.LIB
%doc README.md
%{_kde4_libdir}/libalkimia.so.%{sonum}*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by