2 Summary: GnuCash is an application to keep track of your finances.
5 Copyright: Free Software Foundation
6 Group: Applications/Finance
7 Source0: http://www.gnucash.org/pub/gnucash/sources/stable/%{name}-%{PACKAGE_VERSION}.tar.gz
8 URL: Http://www.gnucash.org
9 Patch0: gnucash-makefile.patch
11 Requires: guile >= 1.3
12 BuildRequires: gnome-libs-devel
13 BuildRequires: esound-devel
14 BuildRequires: libxml-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 GnuCash is a personal finance manager. A check-book like register GUI
19 allows you to enter and track bank accounts, stocks, income and even
20 currency trades. The interface is designed to be simple and easy to use,
21 but is backed with double-entry accounting principles to ensure balanced
29 CFLAGS="$RPM_OPT_FLAGS" \
30 CXXFLAGS="$RPM_OPT_FLAGS" \
32 ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}
36 rm -rf $RPM_BUILD_ROOT
37 make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
38 mandir=$RPM_BUILD_ROOT%{_mandir} \
39 GNC_DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ install
41 strip --strip-unneed $RPM_BUILD_ROOT%{_libdir}/gnucash/gnucash.so
43 gzip -9nfr $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/* $RPM_BUILD_ROOT%{_mandir}/man1/*
48 rm -rf $RPM_BUILD_ROOT
50 %files -f %{name}.lang
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/gnucash.gnome
53 %attr(755,root,root) %{_bindir}/gnucash
54 %attr(755,root,root) %{_bindir}/gnc-prices
57 %{_datadir}/gnucash/html/C
58 %lang(fr) %{_datadir}/gnucash/html/fr
59 %{_datadir}/gnucash/html/logos
60 %{_datadir}/gnucash/html/gnucash.css
61 %{_datadir}/gnucash/scm
62 %{_sysconfdir}/gnucash/config
63 %{_datadir}/gnome/apps/Applications/gnucash.desktop
64 %doc %{_docdir}/%{name}-%{version}/