Name: gnucash
Summary: GnuCash is an application to keep track of your finances.
Version: @-VERSION-@
Release: 1
Copyright: Free Software Foundation
Group: Applications/Finance
Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{PACKAGE_VERSION}.tar.gz
Packager: Dave Peticolas <dave@krondo.com>
BuildRoot: /var/tmp/gnucash-%version
Requires: gnome-libs >= 1.0.40


%description
GnuCash is a personal finance manager. A check-book like
register GUI allows you to enter and track bank accounts,
stocks, income and even currency trades. The interface is
designed to be simple and easy to use, but is backed with
double-entry accounting principles to ensure balanced books.


%prep
%setup -q


%build
./configure --prefix=/usr --sysconfdir=/etc --enable-sql
make


%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(444,root,root,755)
%attr(555,-,-) /usr/bin/gnucash
%attr(555,-,-) /usr/bin/gnucash-make-guids
%attr(555,-,-) /usr/bin/gnc-prices
%attr(555,-,-) /usr/bin/update-finance-quote
%attr(555,-,-) /usr/share/gnucash/finance-quote-helper
/usr/info/*.gz
/usr/lib/libgnc*
/usr/share/gnucash/accounts
/usr/share/gnucash/doc
/usr/share/gnucash/glade
/usr/share/gnucash/guile-modules
/usr/share/gnucash/html
/usr/share/gnucash/scm
/usr/share/gnome/help/gnucash
/usr/share/gnome/apps/Applications/gnucash.desktop
/usr/share/locale/*/LC_MESSAGES/gnucash.*mo
/usr/share/pixmaps/gnucash
/usr/man/*
%config /etc/gnucash
%doc AUTHORS COPYING ChangeLog ChangeLog.1 HACKING NEWS README README.patches
%doc doc/README.german doc/README.francais doc/guile-hackers.txt
