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 http://bugs.opensuse.org/
#



Name:           kmymoney
Version:        4.6.0
Release:        1
License:        GPLv2 or GPLv3
Summary:        A Personal Finance Manager for KDE 4
Url:            http://kmymoney2.sourceforge.net/
Group:          Productivity/Office/Finance
# Source0:      http://prdownloads.sourceforge.net/kmymoney2/%{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
%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
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.

%lang_package
%prep
%setup -q
%patch0

%build
%cmake_kde4 -d build -- -DUSE_HTML_HANDBOOK=YES
%make_jobs

%install
pushd build
%kde4_makeinstall
popd

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

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

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

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog ChangeLog.original README.Fileformats
%{_datadir}/mime/packages/x-kmymoney.xml
%{_kde4_applicationsdir}/kmymoney.desktop
%{_kde4_appsdir}/kmm_*/
%{_kde4_appsdir}/kmymoney/
%{_kde4_bindir}/kmymoney
%config %{_kde4_configkcfgdir}/kmymoney.kcfg
%{_kde4_iconsdir}/*/*/*/kmy.png
%{_kde4_iconsdir}/*/*/*/kmymoney.png
%{_kde4_libdir}/libkmm_*.so.*
%doc %{_kde4_mandir}/man1/kmymoney.1%{ext_man}
%{_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