cvsdist e288449
%define docver 1.8.3
cvsdist e288449
%define hbciver 0.9.13
cvsdist e288449
%define ofxver 0.6.4
cvsdist fa7a79d
cvsdist fa7a79d
Name: gnucash
cvsdist fa7a79d
Summary: GnuCash is an application to keep track of your finances.
cvsdist ff06399
Version: 1.8.8
cvsdist f64fc61
Release: 2
cvsdist fa7a79d
License: GPL/LGPL/GFDL
cvsdist fa7a79d
Group: Applications/Productivity
cvsdist fa7a79d
Source: http://www.gnucash.org/pub/gnucash/sources/unstable/%{name}-%{version}.tar.gz
cvsdist fa7a79d
Source1: http://www.gnucash.org/pub/gnucash/sources/unstable/%{name}-docs-%{docver}.tar.gz
cvsdist fa7a79d
Source2: http://prdownloads.sourceforge.net/libofx/libofx-%{ofxver}.tar.gz
cvsdist e288449
Source3: http://prdownloads.sourceforge.net/openhbci/openhbci-%{hbciver}.tar.gz
cvsdist fa7a79d
Patch2: gnucash-1.6.0-info.patch
cvsdist e288449
Patch3: gnucash-1.8.5-db.patch
cvsdist fa7a79d
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist fa7a79d
BuildPrereq: g-wrap-devel >= 1.3.2, gtkhtml-devel >= 1.1.4,
cvsdist fa7a79d
BuildPrereq: Guppi-devel, gal-devel, libxml-devel, db4-devel
cvsdist fa7a79d
BuildPrereq: libglade-devel, libghttp-devel, python-devel, libtermcap-devel
cvsdist fa7a79d
BuildPrereq: readline-devel postgresql-devel /usr/bin/autoconf-2.13
cvsdist e288449
BuildPrereq: openssl-devel, openjade-devel, docbook-style-xsl
cvsdist fa7a79d
BuildRequires: desktop-file-utils
cvsdist fa7a79d
Prereq: /sbin/ldconfig, /sbin/install-info, scrollkeeper >= 0.3.4
cvsdist fa7a79d
%define __perl_requires  %{nil}
cvsdist fa7a79d
cvsdist fa7a79d
%description
cvsdist fa7a79d
GnuCash is a personal finance manager. A check-book like register GUI
cvsdist fa7a79d
allows you to enter and track bank accounts, stocks, income and even
cvsdist fa7a79d
currency trades. The interface is designed to be simple and easy to
cvsdist fa7a79d
use, but is backed with double-entry accounting principles to ensure
cvsdist fa7a79d
balanced books.
cvsdist fa7a79d
cvsdist fa7a79d
%package backend-postgres
cvsdist fa7a79d
Summary: Backend for storing GnuCash data in a PostgreSQL database.
cvsdist fa7a79d
Group: Applications/Productivity
cvsdist fa7a79d
Requires: gnucash = %{version}
cvsdist fa7a79d
cvsdist fa7a79d
%description backend-postgres
cvsdist fa7a79d
cvsdist fa7a79d
This package contains a backend for storing your GnuCash accounts and
cvsdist fa7a79d
transactions in a PostgreSQL database.  Install this package if you
cvsdist fa7a79d
want to keep your financial data in a database instead of a flat file
cvsdist fa7a79d
(recommended for large volumes of data and commercial sites).
cvsdist fa7a79d
cvsdist fa7a79d
%prep
cvsdist fa7a79d
%setup -q -a 1 -a 2 -a 3
cvsdist fa7a79d
%patch2 -p1 -b .dir
cvsdist e288449
%patch3 -p0 -b .db
cvsdist fa7a79d
cvsdist fa7a79d
%build
cvsdist fa7a79d
cvsdist fa7a79d
# libofx
cvsdist fa7a79d
cd libofx-%{ofxver}
cvsdist fa7a79d
%configure --with-opensp-libs=%{_libdir}
cvsdist fa7a79d
make %{?_smp_mflags}
cvsdist fa7a79d
rm -rf $RPM_BUILD_ROOT
cvsdist fa7a79d
%makeinstall
cvsdist fa7a79d
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc 
cvsdist fa7a79d
cvsdist fa7a79d
# openhbci
cvsdist fa7a79d
cd ../openhbci-%{hbciver}
cvsdist fa7a79d
%configure --with-openssl-libs=%{_libdir}
cvsdist fa7a79d
make %{?_smp_mflags}
cvsdist e288449
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist e288449
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
cvsdist e288449
mv  $RPM_BUILD_ROOT/usr/lib/openhbci $RPM_BUILD_ROOT/%{_libdir} || :
cvsdist e288449
cvsdist fa7a79d
perl -pi -e "s|dir=\"/usr\"|dir=\"$RPM_BUILD_ROOT/usr\"|g" \
cvsdist fa7a79d
   $RPM_BUILD_ROOT/usr/bin/openhbci-config
cvsdist fa7a79d
perl -pi -e 's|$dir/lib|$dir/%{_lib}|g' \
cvsdist fa7a79d
   $RPM_BUILD_ROOT/usr/bin/openhbci-config
cvsdist fa7a79d
cvsdist fa7a79d
cd ..
cvsdist fa7a79d
cvsdist fa7a79d
cvsdist fa7a79d
autoconf-2.13
cvsdist e288449
cp %{_datadir}/libtool/config.{sub,guess} .
cvsdist fa7a79d
export LIBOFX_LIBS=-L$RPM_BUILD_ROOT/%{_libdir}
cvsdist fa7a79d
export LIBOFX_CFLAGS=-I$RPM_BUILD_ROOT/%{_includedir}
cvsdist fa7a79d
%configure --enable-sql --enable-error-on-warning=no \
cvsdist fa7a79d
	--enable-ofx \
cvsdist fa7a79d
	--enable-hbci --with-openhbci-prefix=$RPM_BUILD_ROOT/usr \
cvsdist fa7a79d
	--disable-openhbcitest
cvsdist fa7a79d
unset LIBOFX_LIBS LIBOFX_CFLAGS
cvsdist fa7a79d
cvsdist fa7a79d
make LIBTOOL=/usr/bin/libtool
cvsdist fa7a79d
cvsdist fa7a79d
# Blah. Again.
cvsdist fa7a79d
cd src
cvsdist fa7a79d
for foo in `find . -name "*.la"` ; do
cvsdist fa7a79d
   sed "s|relink_command|#relink_command|g" $foo > $foo.new
cvsdist fa7a79d
   mv -f $foo.new $foo
cvsdist fa7a79d
done
cvsdist fa7a79d
cd ..
cvsdist fa7a79d
cvsdist fa7a79d
cd gnucash-docs-%{docver}
cvsdist fa7a79d
autoconf-2.13
cvsdist fa7a79d
%configure
cvsdist e288449
make
cvsdist fa7a79d
cvsdist fa7a79d
%install
cvsdist fa7a79d
make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool
cvsdist fa7a79d
cvsdist fa7a79d
%find_lang %{name}
cvsdist fa7a79d
cvsdist fa7a79d
cd gnucash-docs-%{docver}
cvsdist fa7a79d
make install DESTDIR=$RPM_BUILD_ROOT || :
cvsdist fa7a79d
cvsdist fa7a79d
# vfolder desktop file install stuff
cvsdist fa7a79d
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
cvsdist fa7a79d
desktop-file-install --vendor gnome --delete-original \
cvsdist fa7a79d
  --dir $RPM_BUILD_ROOT%{_datadir}/applications       \
cvsdist fa7a79d
  --add-category X-Red-Hat-Extra                      \
cvsdist fa7a79d
  --add-category Application                         \
cvsdist fa7a79d
  --add-category Office                               \
cvsdist fa7a79d
  $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Applications/gnucash.desktop
cvsdist fa7a79d
echo "StartupWMClass=GnuCash" >> $RPM_BUILD_ROOT%{_datadir}/applications/gnome-gnucash.desktop
cvsdist fa7a79d
cvsdist fa7a79d
rm -rf $RPM_BUILD_ROOT/%{_infodir}/dir \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_includedir} \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_datadir}/aclocal \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/var/scrollkeeper \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_datadir}/doc/libofx \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_libdir}/lib{ofx,openhbci}.{la,so} \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_libdir}/lib*.a \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_libdir}/gnucash/lib*.a \
cvsdist fa7a79d
      $RPM_BUILD_ROOT/%{_bindir}/openhbci-config
cvsdist fa7a79d
      
cvsdist fa7a79d
%clean
cvsdist fa7a79d
rm -rf $RPM_BUILD_ROOT
cvsdist fa7a79d
cvsdist fa7a79d
%post
cvsdist fa7a79d
/sbin/ldconfig
cvsdist fa7a79d
/usr/bin/scrollkeeper-update -o %{_datadir}/omf/gnucash-docs
cvsdist fa7a79d
/sbin/install-info %{_infodir}/gnucash-design.info.gz %{_infodir}/dir
cvsdist fa7a79d
cvsdist fa7a79d
%postun
cvsdist fa7a79d
/sbin/ldconfig
cvsdist fa7a79d
/usr/bin/scrollkeeper-update
cvsdist fa7a79d
if [ $1 = 0 ]; then
cvsdist fa7a79d
   /sbin/install-info --delete %{_infodir}/gnucash-design.info.gz %{_infodir}/dir
cvsdist fa7a79d
fi
cvsdist fa7a79d
cvsdist fa7a79d
%files -f %{name}.lang
cvsdist fa7a79d
%defattr(-,root,root,755)
cvsdist fa7a79d
%{_bindir}/*
cvsdist fa7a79d
%{_infodir}/gnucash*info*
cvsdist fa7a79d
%{_libexecdir}/gnucash
cvsdist fa7a79d
%{_libdir}/*
cvsdist fa7a79d
%exclude /usr/lib/debug
cvsdist fa7a79d
%exclude %{_libdir}/gnucash/libgncmod-backend-postgres*
cvsdist fa7a79d
%{_datadir}/gnucash
cvsdist fa7a79d
%{_datadir}/gnome/help/gnucash
cvsdist fa7a79d
%{_datadir}/mime-info/gnucash.*
cvsdist fa7a79d
%{_datadir}/libofx
cvsdist fa7a79d
%{_datadir}/omf/gnucash-docs
cvsdist fa7a79d
%{_datadir}/pixmaps/gnucash
cvsdist fa7a79d
%{_datadir}/applications/*
cvsdist fa7a79d
%{_mandir}/man*/*
cvsdist fa7a79d
%config %{_sysconfdir}/gnucash
cvsdist fa7a79d
%doc AUTHORS COPYING ChangeLog ChangeLog.1 HACKING NEWS README README.patches
cvsdist fa7a79d
%doc doc/README.german doc/README.francais doc/guile-hackers.txt
cvsdist fa7a79d
cvsdist fa7a79d
%files backend-postgres
cvsdist fa7a79d
%defattr(-,root,root)
cvsdist e288449
%doc src/backend/postgres/README
cvsdist fa7a79d
%{_libdir}/gnucash/libgncmod-backend-postgres*
cvsdist fa7a79d
cvsdist fa7a79d
%changelog
cvsdist f64fc61
* Wed Dec  3 2003 Bill Nottingham <notting@redhat.com> 1.8.8-2
cvsdist f64fc61
- rebuild
cvsdist f64fc61
cvsdist ff06399
* Tue Dec  2 2003 Bill Nottingham <notting@redhat.com> 1.8.8-1
cvsdist ff06399
- update to 1.8.8
cvsdist ff06399
cvsdist e288449
* Tue Sep 23 2003 Bill Nottingham <notting@redhat.com> 1.8.7-1
cvsdist e288449
- update to 1.8.7
cvsdist e288449
- fix docs build
cvsdist e288449
cvsdist e288449
* Wed Aug 20 2003 Bill Nottingham <notting@redhat.com> 1.8.5-1
cvsdist e288449
- update to 1.8.5
cvsdist e288449
cvsdist e288449
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist e288449
- rebuilt
cvsdist e288449
cvsdist e288449
* Wed May 28 2003 Bill Nottingham <notting@redhat.com> 1.8.4-1
cvsdist e288449
- update to 1.8.4
cvsdist e288449
cvsdist e288449
* Mon May 19 2003 Bill Nottingham <notting@redhat.com> 1.8.3-1
cvsdist e288449
- update to 1.8.3
cvsdist e288449
cvsdist e288449
* Mon Mar 24 2003 Bill Nottingham <notting@redhat.com> 1.8.2-1
cvsdist e288449
- update to 1.8.2
cvsdist e288449
cvsdist e288449
* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com> 1.8.1-4
cvsdist e288449
- Build requires openjade-devel (new openjade sub-package).
cvsdist e288449
- Rebuild against new OpenSP.
cvsdist e288449
cvsdist fa7a79d
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
cvsdist fa7a79d
- debuginfo rebuild
cvsdist fa7a79d
cvsdist fa7a79d
* Sun Feb 23 2003 Bill Nottingham <notting@redhat.com> 1.8.1-2
cvsdist fa7a79d
- fix crash on hiding accounts (#84931, patch from upstream)
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 1.8.1-1
cvsdist fa7a79d
- update to 1.8.1
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Feb  5 2003 Bill Nottingham <notting@redhat.com> 1.8.0-3
cvsdist fa7a79d
- fix desktop entry (#82804)
cvsdist fa7a79d
- add startup-notification
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Feb  4 2003 Bill Nottingham <notting@redhat.com> 1.8.0-1
cvsdist fa7a79d
- 1.8.0
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Jan 28 2003 Bill Nottingham <notting@redhat.com> 1.7.8-3
cvsdist fa7a79d
- rebuild everywhere
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- rebuilt
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Jan 21 2003 Bill Nottingham <notting@redhat.com> 1.7.8-1
cvsdist fa7a79d
- 1.7.8
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Jan 14 2003 Bill Nottingham <notting@redhat.com> 1.7.7-1
cvsdist fa7a79d
- update to 1.7.7
cvsdist fa7a79d
- add libofx, openhbci support
cvsdist fa7a79d
cvsdist fa7a79d
* Fri Dec  6 2002 Tim Waugh <twaugh@redhat.com> 1.7.5-3
cvsdist fa7a79d
- Fix desktop file (bug #69422).
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Dec  4 2002 Bill Nottingham <notting@redhat.com> 1.7.5-2
cvsdist fa7a79d
- fix omf file ref to buildroot
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Dec  3 2002 Bill Nottingham <notting@redhat.com> 1.7.5-1
cvsdist fa7a79d
- update to 1.7.5-1, split off postgres backend
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Nov 18 2002 Bill Nottingham <notting@redhat.com> 1.6.8-3
cvsdist fa7a79d
- guile is everywhere, build everywhere
cvsdist fa7a79d
- except hammer (postgres)
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Nov 11 2002 Tim Powers <timp@redhat.com> 1.6.8-2
cvsdist fa7a79d
- rebuild against guile-1.4
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Nov  7 2002 Bill Nottingham <notting@redhat.com> 1.6.8-1
cvsdist fa7a79d
- update to 1.6.8-1
cvsdist fa7a79d
- stop using db1
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Oct 24 2002 Jeremy Katz <katzj@redhat.com>
cvsdist fa7a79d
- build against new gtkhtml
cvsdist fa7a79d
cvsdist fa7a79d
* Sat Aug 10 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist fa7a79d
- bzip2 source
cvsdist fa7a79d
cvsdist fa7a79d
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- automated rebuild
cvsdist fa7a79d
cvsdist fa7a79d
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- automated rebuild
cvsdist fa7a79d
cvsdist fa7a79d
* Thu May 16 2002 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- autoconf fun
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Apr  8 2002 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- rebuild in new environment against fixed guile, g-wrap
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Mar 14 2002 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- rebuild in new environment
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Mar 11 2002 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.6
cvsdist fa7a79d
cvsdist fa7a79d
* Fri Feb 22 2002 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- rebuild
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Dec 17 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.5
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Oct  1 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.4
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Sep 24 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.3
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Aug 13 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.2
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Aug  9 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- add patch to fix triple imports of prices from 1.4 files
cvsdist fa7a79d
  (<dave@krondo.com>)
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Jul 19 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- tweak buildprereqs
cvsdist fa7a79d
cvsdist fa7a79d
* Sun Jul  8 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.1
cvsdist fa7a79d
- fix info dir (#47646)
cvsdist fa7a79d
- fix library dependencies
cvsdist fa7a79d
cvsdist fa7a79d
* Fri Jun 29 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- don't own %%{_infodir}/dir
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Jun 27 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- add info dir entry
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Jun 18 2001 Bill Nottingham <notting@redhat.com>
cvsdist fa7a79d
- update to 1.6.0, merge in stuff from included spec file
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Feb  5 2001 Adrian Havill <havill@redhat.com>
cvsdist fa7a79d
- added Japanese locale
cvsdist fa7a79d
cvsdist fa7a79d
* Thu Jan 11 2001 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- exclude ia64
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Dec  6 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- updated to 1.4.9
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Oct 23 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- update to 1.4.8
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Sep 13 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- update to 1.4.6
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Aug 2 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- rebuilt against libpng-1.0.8
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Jul 31 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- updated to 1.4.3, bugfix release
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Jul 25 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- ExcludeArch alpha
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
cvsdist fa7a79d
- rebuilt
cvsdist fa7a79d
cvsdist fa7a79d
* Mon Jul 17 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- fixed defattr for the stuff in /usr/bin
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Jul 12 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- update to 1.4.2
cvsdist fa7a79d
cvsdist fa7a79d
* Tue Jul 11 2000 Tim Powers <timp@redhat.com>
cvsdist fa7a79d
- rebuilt 
cvsdist fa7a79d
cvsdist fa7a79d
* Wed Jul 05 2000 Preston Brown <pbrown@redhat.com>
cvsdist fa7a79d
- adopted for Powertools 7.0