2002-05-06 20:46:40 -05:00
|
|
|
# Check whether GnuCash should be build with or without the Postgres backend.
|
|
|
|
# When building GnuCash, pass "--with postgres" or "--without postgres"
|
|
|
|
# options, as in
|
|
|
|
# rpmbuild --with postgres -bb gnucash.spec
|
|
|
|
%if "%{_with_postgres}" == "--with-postgres"
|
|
|
|
%define _with_postgres 1
|
|
|
|
%define sql_config --enable-sql
|
|
|
|
%else
|
|
|
|
%define _with_postgres 0
|
|
|
|
%define sql_config --disable-sql
|
|
|
|
%endif
|
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
Name: gnucash
|
|
|
|
Summary: GnuCash is an application to keep track of your finances.
|
|
|
|
Version: @-VERSION-@
|
|
|
|
Release: 1
|
|
|
|
Copyright: Free Software Foundation
|
|
|
|
Group: Applications/Finance
|
2002-05-06 20:46:40 -05:00
|
|
|
URL: http://www.gnucash.org
|
2002-01-31 02:57:17 -06:00
|
|
|
Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{PACKAGE_VERSION}.tar.gz
|
|
|
|
BuildRoot: /var/tmp/gnucash-%version
|
|
|
|
Requires: gnome-libs >= 1.2.0
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: gnome-libs-devel >= 1.2.0
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: gdk-pixbuf >= 0.2.5
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: gdk-pixbuf-devel >= 0.2.5
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: gnome-print >= 0.21
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: gnome-print-devel >= 0.21
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: guile >= 1.3.4
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: guile-devel >= 1.3.4
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: gtkhtml >= 0.8
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: gtkhtml-devel >= 0.8
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: Guppi >= 0.35.3
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: Guppi-devel >= 0.35.3
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: g-wrap >= 1.3.1
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: g-wrap-devel >= 1.3.1
|
2002-01-31 02:57:17 -06:00
|
|
|
Requires: umb-scheme >= 3.2
|
|
|
|
Requires: gal >= 0.8
|
2002-05-06 20:46:40 -05:00
|
|
|
Buildrequires: gal-devel >= 0.8
|
|
|
|
Buildrequires: libglade-devel >= 0.16
|
1998-11-03 23:48:33 -06:00
|
|
|
|
|
|
|
%description
|
2000-02-28 00:11:54 -06:00
|
|
|
GnuCash is a personal finance manager. A check-book like
|
1998-11-03 23:48:33 -06:00
|
|
|
register GUI allows you to enter and track bank accounts,
|
2000-02-28 00:11:54 -06:00
|
|
|
stocks, income and even currency trades. The interface is
|
1998-11-03 23:48:33 -06:00
|
|
|
designed to be simple and easy to use, but is backed with
|
|
|
|
double-entry accounting principles to ensure balanced books.
|
|
|
|
|
2002-05-06 20:46:40 -05:00
|
|
|
|
|
|
|
%if %{_with_postgres}
|
|
|
|
%package backend-postgres
|
|
|
|
Summary: Backend for storing GnuCash data in a PostgreSQL database.
|
|
|
|
Group: Applications/Finance
|
|
|
|
Requires: gnucash = %{PACKAGE_VERSION}
|
|
|
|
Requires: postgres >= 7.1.3
|
|
|
|
|
|
|
|
%description backend-postgres
|
|
|
|
|
|
|
|
This package contains a backend for storing your GnuCash accounts and
|
|
|
|
transactions in a PostgreSQL database. Install this package if you
|
|
|
|
want to keep your financial data in a database instead of a flat file
|
|
|
|
(recommended for large volumes of data and commercial sites).
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
%package devel
|
|
|
|
Summary: Header files for GnuCash development.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: gnucash = %{PACKAGE_VERSION}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files for GnuCash development.
|
|
|
|
Install this package if you want to use GnuCash libraries
|
|
|
|
in C programs.
|
1998-11-03 23:48:33 -06:00
|
|
|
|
|
|
|
%prep
|
2000-02-28 00:11:54 -06:00
|
|
|
%setup -q
|
|
|
|
|
1998-11-03 23:48:33 -06:00
|
|
|
%build
|
2002-05-06 20:46:40 -05:00
|
|
|
%configure %{sql_config}
|
2000-06-05 01:59:34 -05:00
|
|
|
make
|
2002-05-06 20:46:40 -05:00
|
|
|
cp -p src/backend/postgres/README README.postgres
|
1998-11-03 23:48:33 -06:00
|
|
|
|
|
|
|
%install
|
2002-01-31 02:57:17 -06:00
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
%{makeinstall}
|
|
|
|
%find_lang %name
|
1998-11-03 23:48:33 -06:00
|
|
|
|
|
|
|
%clean
|
2002-01-31 02:57:17 -06:00
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
1998-11-03 23:48:33 -06:00
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
%files -f %{name}.lang
|
1998-11-03 23:48:33 -06:00
|
|
|
%defattr(444,root,root,755)
|
2002-01-31 02:57:17 -06:00
|
|
|
%attr(555,root,root) %{_bindir}/*
|
|
|
|
%attr(555,root,root) %{_libexecdir}/gnucash
|
|
|
|
%attr(555,root,root) %{_datadir}/gnucash/finance-quote-helper
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_infodir}/*.gz
|
2002-05-06 20:46:40 -05:00
|
|
|
%{_libdir}/gnucash/libgnc-*
|
|
|
|
%{_libdir}/gnucash/libgncmod-[a,c-z]*
|
|
|
|
%{_libdir}/gnucash/libgncmod-b[b-z]*
|
|
|
|
%{_libdir}/gnucash/libgncmod-backend-file*
|
|
|
|
%{_libdir}/gnucash/libgw*
|
|
|
|
%{_libdir}/lib*
|
2002-01-31 02:57:17 -06:00
|
|
|
%dir %{_datadir}/gnucash
|
|
|
|
%{_datadir}/gnucash/accounts
|
|
|
|
%{_datadir}/gnucash/doc
|
|
|
|
%{_datadir}/gnucash/glade
|
|
|
|
%{_datadir}/gnucash/guile-modules
|
|
|
|
%{_datadir}/gnucash/html
|
|
|
|
%{_datadir}/gnucash/scm
|
|
|
|
%{_datadir}/gnome/help/gnucash
|
|
|
|
%{_datadir}/gnome/apps/Applications/*
|
|
|
|
%{_datadir}/pixmaps/gnucash
|
|
|
|
%{_datadir}/mime-info/gnucash.*
|
|
|
|
%config %{_sysconfdir}/gnucash
|
2001-05-01 15:58:00 -05:00
|
|
|
%doc AUTHORS COPYING ChangeLog ChangeLog.1 HACKING NEWS README README.patches
|
2000-06-05 02:48:00 -05:00
|
|
|
%doc doc/README.german doc/README.francais doc/guile-hackers.txt
|
2002-01-31 02:57:17 -06:00
|
|
|
|
2002-05-06 20:46:40 -05:00
|
|
|
|
|
|
|
%if %{_with_postgres}
|
|
|
|
%files backend-postgres
|
|
|
|
%{_libdir}/gnucash/libgncmod-backend-postgres*
|
|
|
|
%doc README.postgres
|
|
|
|
%endif
|
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/gnucash
|
2002-03-03 04:33:03 -06:00
|
|
|
%{_datadir}/aclocal/gnucash.m4
|