File kmymoney.spec of Package kmymoney

#
# spec file for package kmymoney
#
# Copyright (c) 2013 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.3
Release:        0
Summary:        A Personal Finance Manager for KDE 4
License:        GPL-2.0 or GPL-3.0
Group:          Productivity/Office/Finance
Url:            http://kmymoney2.sourceforge.net/
Source0:        http://downloads.sourceforge.net/kmymoney2/%{name}-%{version}.tar.bz2
BuildRequires:  aqbanking-devel
BuildRequires:  boost-devel
BuildRequires:  fdupes
BuildRequires:  glibmm2-devel
BuildRequires:  gmp-devel
BuildRequires:  libalkimia-devel
BuildRequires:  libgpgme-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_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
pushd build
%kde4_makeinstall
popd

%kde_post_install

%find_lang %{name}

%fdupes -s %{buildroot}

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

%postun
/sbin/ldconfig
/usr/bin/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
%{_kde4_configdir}/csvimporterrc
%{_kde4_configkcfgdir}/
%{_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