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/
#

# norootforbuild


Name:           kmymoney
Version:        4.5.2
Release:        2
License:        GNU GPL v2 or v3
Group:          Productivity/Office/Finance
Url:            http://kmymoney2.sourceforge.net/index2.html
Summary:        A Personal Finance Manager for KDE 4
Source:         kmymoney-%{version}.tar.bz2
Patch0:         0001-kbanking5-kmymoney-4.5.2.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  aqbanking-devel >= 5.0.0
BuildRequires:  cmake >= 2.6.4
BuildRequires:  fdupes
BuildRequires:  gwenhywfar-devel >= 4.0.0
BuildRequires:  libassuan-devel libgpgme-devel
BuildRequires:  libkde4-devel
BuildRequires:  libofx-devel
BuildRequires:  update-desktop-files
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libxml++-devel
BuildRequires:  glibmm2-devel
%kde4_pimlibs_requires
%kde4_runtime_requires

%description
KMyMoney is a personal finance manager.

KMyMoney is the 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:        GNU GPL v2 or v3
Group:          Development/Languages/C and C++
Requires:       %{name} = %{version}
Summary:        Development Files for KMyMoney

%description devel
The development files for KMyMoney.


%prep
%setup -q
%patch0 -p1

%build
%cmake_kde4 -d build
%make_jobs  

%install
pushd build
%kde4_makeinstall
popd
%__install -Dm 0644 kmymoney/hi32-app-kmymoney.png %{buildroot}%{_datadir}/pixmaps/kmymoney.png
%kde_post_install
%find_lang %{name}
%if %suse_version < 1120  
  # work-around bnc#457908
  for i in es it pt pt_BR sv uk; do mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
%endif
%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS
%{_kde4_bindir}/kmymoney
%{_kde4_modulesdir}/kcm_kmm_icalendarexport.so
%{_kde4_modulesdir}/kcm_kmm_printcheck.so
%{_kde4_modulesdir}/kmm_icalendarexport.so
%{_kde4_modulesdir}/kmm_kbanking.so
%{_kde4_modulesdir}/kmm_ofximport.so
%{_kde4_modulesdir}/kmm_printcheck.so
%{_kde4_modulesdir}/kmm_reconciliationreport.so
%{_kde4_libdir}/libkmm_kdchart.so.*
%{_kde4_libdir}/libkmm_mymoney.so.*
%{_kde4_libdir}/libkmm_plugin.so.*
%{_kde4_libdir}/libkmm_widgets.so.*
%{_kde4_applicationsdir}/kmymoney.desktop
%{_kde4_htmldir}/*/kmymoney
%{_kde4_iconsdir}/*/*/*/kmy.png
%{_kde4_iconsdir}/*/*/*/kmymoney.png
%{_kde4_appsdir}/kmm_icalendarexport
%{_kde4_appsdir}/kmm_kbanking
%{_kde4_appsdir}/kmm_ofximport
%{_kde4_appsdir}/kmm_printcheck
%{_kde4_appsdir}/kmymoney
%{_kde4_sharedir}/config.kcfg/kmymoney.kcfg
%{_kde4_servicesdir}/kcm_kmm_icalendarexport.desktop
%{_kde4_servicesdir}/kcm_kmm_printcheck.desktop
%{_kde4_servicesdir}/kmm_icalendarexport.desktop
%{_kde4_servicesdir}/kmm_kbanking.desktop
%{_kde4_servicesdir}/kmm_ofximport.desktop
%{_kde4_servicesdir}/kmm_printcheck.desktop
%{_kde4_servicesdir}/kmm_reconciliationreport.desktop
%{_kde4_servicetypesdir}/kmymoneyimporterplugin.desktop
%{_kde4_servicetypesdir}/kmymoneyplugin.desktop
%{_kde4_mandir}/man1/kmymoney.1.*
%{_datadir}/mime/packages/x-kmymoney.xml
%{_datadir}/pixmaps/kmymoney.png

%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

%changelog
openSUSE Build Service is sponsored by