We've got some updates regarding OBS and GitHub/GitLab integration. Have a look and let us know what you think! 🧐

https://openbuildservice.org/2021/06/14/scm-integration-improvements/

File kmymoney.spec of Package kmymoney

#
# spec file for package kmymoney
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           kmymoney
Version:        4.7.1
Release:        0
Summary:        A Personal Finance Manager for KDE 4
License:        GPL-2.0 or GPL-3.0
Group:          Productivity/Office/Finance
Url:            http://www.kmymoney.org/
Source0:        http://download.kde.org/stable/kmymoney/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:  aqbanking-devel
BuildRequires:  boost-devel
BuildRequires:  fdupes
BuildRequires:  glibmm2-devel
BuildRequires:  gmp-devel
BuildRequires:  libalkimia-devel
BuildRequires:  libgpgme-devel
BuildRequires:  libkactivities-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libofx-devel
BuildRequires:  libxml++-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libical)
BuildRequires:  pkgconfig(libxml-2.0)
Recommends:     %{name}-doc = %{version}
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_akonadi_requires
%kde4_pimlibs_requires
%kde4_runtime_requires
Requires(post): shared-mime-info
Requires(postun): shared-mime-info

%description
KMyMoney is a Personal Finance Manager for KDE4. 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
Group:          Development/Languages/C and C++
Requires:       %{name} = %{version}

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

%package doc
Summary:        Documentation for KMyMoney
Group:          Documentation/HTML
Requires:       %{name} = %{version}

%description doc
Documentation and help files for KMyMoney.

%lang_package

%prep
%setup -q

%build
%cmake_kde4 -d build
%make_jobs

%install
%kde4_makeinstall -C build

%kde_post_install

%find_lang %{name}

%fdupes -s %{buildroot}

%post
/sbin/ldconfig
/usr/bin/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :

%postun
/sbin/ldconfig
/usr/bin/update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog ChangeLog.original README.Fileformats
%dir %{_datadir}/appdata
%attr(644, -, -) %{_datadir}/appdata/kmymoney.appdata.xml
%{_datadir}/mime/packages/x-kmymoney.xml
%{_kde4_applicationsdir}/kmymoney.desktop
%{_kde4_appsdir}/kconf_update/kmymoney.upd
%{_kde4_appsdir}/kmm_*/
%{_kde4_appsdir}/kmymoney/
%{_kde4_bindir}/kmymoney
%{_kde4_configdir}/csvimporterrc
%{_kde4_configkcfgdir}/
%{_kde4_iconsdir}/*/*/*/*kmymoney.png
%{_kde4_libdir}/libkmm_*.so.*
%{_kde4_modulesdir}/kcm_kmm_*.so
%{_kde4_modulesdir}/kmm_*.so
%{_kde4_servicesdir}/kcm_kmm_*.desktop
%{_kde4_servicesdir}/kmm_*.desktop
%{_kde4_servicetypesdir}/kmymoneyimporterplugin.desktop
%{_kde4_servicetypesdir}/kmymoneyplugin.desktop

%files devel
%defattr(-,root,root,-)
%{_kde4_includedir}/kmymoney/
%{_kde4_libdir}/libkmm_kdchart.so
%{_kde4_libdir}/libkmm_mymoney.so
%{_kde4_libdir}/libkmm_plugin.so
%{_kde4_libdir}/libkmm_widgets.so

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}

%files doc
%defattr(-,root,root,-)
%doc %{_kde4_htmldir}

%changelog
openSUSE Build Service is sponsored by