2005-01-12 15:34:15 -06:00
|
|
|
#
|
2006-02-20 16:02:37 -06:00
|
|
|
# Spec file for FC4
|
2005-01-12 15:34:15 -06:00
|
|
|
#
|
2003-02-02 23:47:33 -06:00
|
|
|
# Check whether GnuCash should build optional modules.
|
|
|
|
# To modify parameters, edit the .spec file, 0 is off, 1 is on
|
|
|
|
%define _with_postgres 0
|
|
|
|
%define _with_ofx 0
|
|
|
|
%define _with_hbci 0
|
|
|
|
|
2006-09-12 17:36:39 -05:00
|
|
|
# The --whatprovides redhat-release lets us work on RHEL as well as FC
|
|
|
|
# Granted, it will look weird, but at least it wont fail outright.
|
|
|
|
%define fc_rel %(rpm -q --queryformat='%{VERSION}' --whatprovides redhat-release)
|
2002-11-18 02:30:49 -06:00
|
|
|
%define version @-VERSION-@
|
2002-11-02 03:59:53 -06:00
|
|
|
%define __libtoolize /bin/true
|
2002-05-06 20:46:40 -05:00
|
|
|
|
2006-02-20 16:02:37 -06:00
|
|
|
%define libgnomeui_version 2.8.0
|
|
|
|
%define libgnomeprintui_version 2.8.0
|
|
|
|
%define guile_version 1.6.0
|
|
|
|
%define gwrap_version 1.3.4
|
|
|
|
%define gtkhtml3_version 3.1
|
|
|
|
%define libofx_version 0.8.0
|
|
|
|
%define aqbanking_version 1.3
|
|
|
|
%define postgresql_version 7.1.3
|
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
Name: gnucash
|
|
|
|
Summary: GnuCash is an application to keep track of your finances.
|
2002-10-28 05:56:12 -06:00
|
|
|
Version: %{version}
|
2006-02-20 16:02:37 -06:00
|
|
|
Release: 1.FC%{fc_rel}
|
|
|
|
License: GPL
|
2002-01-31 02:57:17 -06:00
|
|
|
Group: Applications/Finance
|
2002-05-06 20:46:40 -05:00
|
|
|
URL: http://www.gnucash.org
|
2002-10-28 05:56:12 -06:00
|
|
|
Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2006-02-20 16:02:37 -06:00
|
|
|
|
|
|
|
Prereq: GConf2
|
|
|
|
Prereq: /usr/bin/gconftool-2
|
|
|
|
Prereq: /sbin/ldconfig
|
|
|
|
PreReq: /sbin/install-info
|
|
|
|
|
|
|
|
Requires: libgnomeui >= %{libgnomeui_version}
|
|
|
|
Requires: libgnomeprintui22 >= %{libgnomeprintui22_version}
|
|
|
|
Requires: guile >= %{guile_version}
|
|
|
|
Requires: gtkhtml3 >= %{gtkhtml3_version}
|
|
|
|
Requires: g-wrap >= %{g-wrap_version}
|
|
|
|
|
|
|
|
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
|
|
|
|
BuildRequires: libgnomeprintui22-devel >= %{libgnomeprintui22_version}
|
|
|
|
BuildRequires: g-wrap-devel >= %{g-wrap_version}
|
|
|
|
BuildRequires: gtkhtml3-devel >= %{gtkhtml3_version}
|
|
|
|
BuildRequires: bzip2-devel, expat-devel, guile-devel
|
|
|
|
BuildRequires: libglade2-devel, libgsf-devel
|
|
|
|
BuildRequires: libjpeg-devel, openssl-devel
|
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
|
|
|
|
2003-02-02 23:47:33 -06:00
|
|
|
%package devel
|
|
|
|
Summary: Header files for GnuCash development.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: gnucash = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files for GnuCash development.
|
|
|
|
Install this package if you want to use GnuCash libraries
|
|
|
|
in C programs.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{_with_ofx}
|
|
|
|
%package ofx
|
|
|
|
Summary: Enables OFX importing in GnuCash
|
|
|
|
Group: Applications/Finance
|
2006-02-20 16:02:37 -06:00
|
|
|
Requires: gnucash = %{version}
|
|
|
|
Requires: libofx >= %{libofx_version}
|
|
|
|
BuildRequires: libofx
|
2003-02-02 23:47:33 -06:00
|
|
|
|
|
|
|
%description ofx
|
|
|
|
This package adds OFX file import support to the base
|
|
|
|
GnuCash package. Install this package if you want to
|
|
|
|
import OFX files.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{_with_hbci}
|
|
|
|
%package hbci
|
|
|
|
Summary: Enables HBCI importing in GnuCash
|
|
|
|
Group: Applications/Finance
|
2006-02-20 16:02:37 -06:00
|
|
|
Requires: gnucash = %{version}
|
|
|
|
Requires: aqbanking >= %{aqbanking_version}
|
|
|
|
BuildRequires: aqbanking-devel
|
2003-02-02 23:47:33 -06:00
|
|
|
|
|
|
|
%description hbci
|
|
|
|
This package adds HBCI file import support to the base
|
|
|
|
GnuCash package. Install this package if you want to
|
|
|
|
import HBCI files.
|
|
|
|
%endif
|
|
|
|
|
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
|
2002-10-28 05:56:12 -06:00
|
|
|
Requires: gnucash = %{version}
|
2006-02-20 16:02:37 -06:00
|
|
|
Requires: postgresql >= %{postgresql_version}
|
|
|
|
BuildRequires: postgresql-devel
|
2002-05-06 20:46:40 -05:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
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
|
2003-02-02 23:47:33 -06:00
|
|
|
%configure \
|
|
|
|
%if %{_with_ofx}
|
|
|
|
--enable-ofx \
|
|
|
|
%endif
|
|
|
|
%if %{_with_hbci}
|
|
|
|
--enable-hbci \
|
|
|
|
%endif
|
|
|
|
%if %{_with_postgres}
|
|
|
|
--enable-sql \
|
|
|
|
%endif
|
|
|
|
--enable-gui
|
|
|
|
|
2002-10-28 05:56:12 -06:00
|
|
|
|
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
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
|
2002-10-28 05:56:12 -06:00
|
|
|
|
2006-02-20 16:02:37 -06:00
|
|
|
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
2002-11-02 03:59:53 -06:00
|
|
|
LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$RPM_BUILD_ROOT%{_libdir}/gnucash make DESTDIR=$RPM_BUILD_ROOT install
|
2006-02-20 16:02:37 -06:00
|
|
|
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
2002-10-28 05:56:12 -06:00
|
|
|
|
2002-01-31 02:57:17 -06:00
|
|
|
%find_lang %name
|
1998-11-03 23:48:33 -06:00
|
|
|
|
2003-02-02 23:47:33 -06:00
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT/%{_infodir}/dir
|
|
|
|
|
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-10-14 00:33:14 -05:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/install-info %{_infodir}/gnucash-design.info.gz %{_infodir}/dir
|
|
|
|
|
2006-02-20 16:02:37 -06:00
|
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
|
SCHEMAS=%{_sysconfdir}/gconf/schemas/apps_gnucash*.schemas
|
|
|
|
for S in $SCHEMAS; do
|
|
|
|
gconftool-2 --makefile-install-rule $S > /dev/null
|
|
|
|
done
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" -eq 0 ]; then
|
|
|
|
#deleting the schema on package removal
|
|
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
|
SCHEMAS=%{_sysconfdir}/gconf/schemas/apps_gnucash*.schemas
|
|
|
|
for S in $SCHEMAS; do
|
|
|
|
gconftool-2 --makefile-uninstall-rule $S > /dev/null
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
2002-10-14 00:33:14 -05:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 = 0 ]; then
|
2002-11-02 03:59:53 -06:00
|
|
|
/sbin/install-info --delete %{_infodir}/gnucash-design.info.gz %{_infodir}/dir
|
2002-10-14 00:33:14 -05:00
|
|
|
fi
|
|
|
|
|
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
|
2003-02-02 23:47:33 -06:00
|
|
|
%{_mandir}/man*/*
|
2003-02-10 00:43:34 -06:00
|
|
|
%{_infodir}/gnucash*info*
|
2003-02-02 23:47:33 -06:00
|
|
|
%{_libdir}/*
|
|
|
|
%{_datadir}/gnucash
|
2006-02-20 16:02:37 -06:00
|
|
|
%{_datadir}/applications/*
|
2006-05-16 18:22:27 -05:00
|
|
|
%{_datadir}/xml/gnucash/xsl/*
|
2006-09-13 00:17:41 -05:00
|
|
|
%{_datadir}/pixmaps/*
|
2006-02-20 16:02:37 -06:00
|
|
|
%{_sysconfdir}/gconf/schemas/apps_gnucash*
|
2003-02-02 23:47:33 -06:00
|
|
|
%if %{_with_ofx}
|
|
|
|
%exclude %{_libdir}/gnucash/libgncmod-ofx*
|
|
|
|
%endif
|
|
|
|
%if %{_with_hbci}
|
|
|
|
%exclude %{_libdir}/gnucash/libgncmod-hbci*
|
|
|
|
%exclude %{_datadir}/gnucash/glade/hbci*
|
2006-02-20 16:02:37 -06:00
|
|
|
%exclude %{_sysconfdir}/gconf/schemas/apps_gnucash_dialog_hbci.schemas
|
2003-02-02 23:47:33 -06:00
|
|
|
%endif
|
|
|
|
%if %{_with_postgres}
|
2006-02-20 16:02:37 -06:00
|
|
|
%exclude %{_libdir}/libgnc-backend-postgres*
|
2003-02-02 23:47:33 -06:00
|
|
|
%endif
|
2002-01-31 02:57:17 -06:00
|
|
|
%config %{_sysconfdir}/gnucash
|
2006-02-20 16:02:37 -06:00
|
|
|
%doc AUTHORS COPYING ChangeLog* DOCUMENTERS HACKING LICENSE 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
|
|
|
|
2003-02-02 23:47:33 -06:00
|
|
|
%files devel
|
|
|
|
%defattr(444,root,root,755)
|
|
|
|
%{_includedir}/gnucash
|
|
|
|
%{_datadir}/aclocal/gnucash.m4
|
|
|
|
|
|
|
|
%if %{_with_ofx}
|
|
|
|
%files ofx
|
|
|
|
%defattr(444,root,root,755)
|
|
|
|
%{_libdir}/gnucash/libgncmod-ofx*
|
|
|
|
%doc doc/README.OFX
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{_with_hbci}
|
|
|
|
%files hbci
|
|
|
|
%defattr(444,root,root,755)
|
|
|
|
%{_libdir}/gnucash/libgncmod-hbci*
|
|
|
|
%{_datadir}/gnucash/glade/hbci*
|
2006-02-20 16:02:37 -06:00
|
|
|
%{_sysconfdir}/gconf/schemas/apps_gnucash_dialog_hbci.schemas
|
2003-02-02 23:47:33 -06:00
|
|
|
%doc doc/README.HBCI
|
|
|
|
%endif
|
2002-05-06 20:46:40 -05:00
|
|
|
|
|
|
|
%if %{_with_postgres}
|
|
|
|
%files backend-postgres
|
2003-02-02 23:47:33 -06:00
|
|
|
%defattr(444,root,root,755)
|
2006-02-20 16:02:37 -06:00
|
|
|
%{_libdir}/libgnc-backend-postgres*
|
2002-05-06 20:46:40 -05:00
|
|
|
%doc README.postgres
|
|
|
|
%endif
|