File kmymoney.spec of Package kmymoney
#
# spec file for package kmymoney (Version 1.0.2)
#
# Copyright (c) 2009 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
BuildRequires: cppunit-devel kdelibs3-devel opensp-devel
BuildRequires: kdebase3-devel libofx-devel qt3-devel
BuildRequires: fdupes update-desktop-files
Url: http://kmymoney2.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Office/Finance
Summary: A Personal Finance Manager
Version: 1.0.2
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}2-%{version}.tar.bz2
Patch1: %name.diff
Patch2: build-fix.diff
%description
KMyMoney is a personal finance manager. It does not support online
banking, but it can import and export QIF (Quicken) files.
Authors:
--------
Michael Edwardes <mte@users.sourceforge.net>.
Javier Campos Morales <javi_c@users.sourceforge.net>
Felix Rodriguez <frodriguez@users.sourceforge.net>
John C <thetacoturtle@users.sourceforge.net>
Thomas Baumgart <ipwizard@users.sourceforge.net>
%package devel
License: GPL v2 or later
Summary: A Personal Finance Manager
Group: Productivity/Office/Finance
Requires: %{name} = %{version}
%description devel
KMyMoney is a personal finance manager. It does not support online
banking, but it can import and export QIF (Quicken) files.
Authors:
--------
Michael Edwardes <mte@users.sourceforge.net>.
Javier Campos Morales <javi_c@users.sourceforge.net>
Felix Rodriguez <frodriguez@users.sourceforge.net>
John C <thetacoturtle@users.sourceforge.net>
Thomas Baumgart <ipwizard@users.sourceforge.net>
%prep
%setup -q -n %{name}2-%{version}
%patch1
%if %suse_version < 1120
%patch2
%endif
%build
./configure
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -G "Personal Finance Manager" kmymoney2 Finance
%find_lang kmymoney2
rm -rf $RPM_BUILD_ROOT/opt/kde3/%_lib/*.la
rm -rf $RPM_BUILD_ROOT/opt/kde3/%_lib/kde3/*.la
%fdupes $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f kmymoney2.lang
%defattr(-,root,root)
%dir /opt/kde3/share/man
%dir /opt/kde3/share/man/man1
/opt/kde3/bin/*
/opt/kde3/%_lib/libkmm_mymoney.so.*
/opt/kde3/%_lib/libkmm_plugin.so.*
/opt/kde3/%_lib/libkmm_kdchart.so.*
/opt/kde3/share/config.kcfg/kmymoney2.kcfg
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/*
/opt/kde3/share/icons/*
/opt/kde3/share/mimelnk/*/*.desktop
/opt/kde3/share/servicetypes/*.desktop
/opt/kde3/share/man/man1/*
/opt/kde3/%_lib/kde3/kmm_ofximport.*
/opt/kde3/share/services/kmm_ofximport.desktop
%files devel
%defattr(-,root,root)
/opt/kde3/include/kmymoney
/opt/kde3/%_lib/libkmm_mymoney.so
/opt/kde3/%_lib/libkmm_plugin.so
/opt/kde3/%_lib/libkmm_kdchart.so
%changelog