File kmymoney.spec of Package kmymoney

# spec file for package kmymoney
# Copyright (c) 2011 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

Name:           kmymoney
Version:        4.6.0
Release:        1
License:        GPLv2 or GPLv3
Summary:        A Personal Finance Manager for KDE 4
Group:          Productivity/Office/Finance
# Source0:{name}-%{version}.tar.bz2
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM bnc723728_fix_gnucash_import.diff [bnc#723728]
Patch0:         bnc723728_fix_gnucash_import.diff
BuildRequires:  aqbanking-devel
BuildRequires:  boost-devel
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  glibmm2-devel
BuildRequires:  gmp-devel
BuildRequires:  libalkimia-devel
BuildRequires:  libgpgme-devel
BuildRequires:  libical-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libofx-devel
BuildRequires:  libxml2-devel
BuildRequires:  libpth-devel
BuildRequires:  libxml++-devel
Recommends:     %{name}-lang = %{version}
Recommends:     %{name}-doc = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(post): shared-mime-info
Requires(postun): shared-mime-info

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
License:        GPLv2 or GPLv3
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
License:        GPLv2 or GPLv3
Summary:        Documentation for KMyMoney
Group:          Productivity/Office/Finance
Requires:       %{name} = %{version}

%description doc
Documentation and help files for KMyMoney.

%setup -q

%cmake_kde4 -d build -- -DUSE_HTML_HANDBOOK=YES

pushd build

%find_lang %{name}
%fdupes -s %{buildroot}

%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

%{_kde4_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :

rm -rf %{buildroot}

%doc AUTHORS COPYING ChangeLog ChangeLog.original README.Fileformats
%config %{_kde4_configkcfgdir}/kmymoney.kcfg
%doc %{_kde4_mandir}/man1/kmymoney.1%{ext_man}

%files devel

%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}

%files doc
%doc %{_kde4_htmldir}

openSUSE Build Service is sponsored by