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

# norootforbuild

Name:           kmymoney
Version:        4.5.2
Release:        2
License:        GNU GPL v2 or v3
Group:          Productivity/Office/Finance
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

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.

%setup -q
%patch0 -p1

%cmake_kde4 -d build

pushd build
%__install -Dm 0644 kmymoney/hi32-app-kmymoney.png %{buildroot}%{_datadir}/pixmaps/kmymoney.png
%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
%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files -f %{name}.lang

%files devel

openSUSE Build Service is sponsored by