Hi!
As Cooker does not have yet upgraded gnucash, I did it myself,
merged with the (redhat ?) rpm spec and added it as attachment
to this mail so you (mandrake team :-) can create your binaries
for cooker.
It seems that it is not possible to use %patch after %configure
is it ? I always get the message "No job control" when I try
to do that. Maybe there is a better way for applying the patch
than that one with some pipes. Comments are welcome.
Best regards,
Reinhard Katzmann
--
E-Mail: [EMAIL PROTECTED]
Current Projects: Linux-Installation Mandrake 7.1 (95% finished)
Java-DB and -Interface for Pincity (93 % finished)
GnuPG Public Key available on request.
Name: gnucash
Summary: GnuCash is an application to keep track of your finances.
Version: 1.5.0
Release: 2mdk
Copyright: Free Software Foundation
Group: Office
Source:
http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{PACKAGE_VERSION}.tar.gz
Source1: gnome-money.xpm
# %%patch does not seem to work after %%configure :-(
#Patch: gnucash-swig.patch.bz2
Source2: gnucash-swig.patch.bz2
URL: http:/www.gnucash.org
BuildRoot: /var/tmp/gnucash-%version
Requires: gnome-libs >= 1.0.40 swig eperl g-wrap
BuildRequires: eperl swig g-wrap
%define mypatch $RPM_SOURCE_DIR/gnucash-swig.patch
%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=$RPM_BUILD_ROOT/usr --exec_prefix=$RPM_BUILD_ROOT/usr
# %%patch does not seem to work after %%configure :-(
#patch -p1 -b .swig
%__bzip2 -d %{SOURCE2}
%__patch -p1 < %{mypatch}
#./configure --prefix=/usr --sysconfdir=/etc
make
%install
rm -rf $RPM_BUILD_ROOT
#make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install
make install DESTDIR=$RPM_BUILD_ROOT
# (fg) The icon
mkdir -p $RPM_BUILD_ROOT/etc
cd $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/mini
cd $RPM_BUILD_ROOT/usr/share/icons
cp %{SOURCE1} .
/usr/bin/convert gnome-money.xpm -geometry 16x16 mini/gnome-money.xpm
# (fg) Menu entry
mkdir -p $RPM_BUILD_ROOT/usr/lib/menu
cat >$RPM_BUILD_ROOT/usr/lib/menu/gnucash <<EOF
?package(gnucash): command="/usr/bin/gnucash" icon="gnome-money.xpm" needs="X11" \
section="Office" title="GNUCash" longtitle="Personal finance manager"
EOF
%__bzip2 %{mypatch}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%doc doc/README.german doc/README.francais doc/guile-hackers.txt
%doc %{_datadir}/gnucash/html/*
%doc %{_datadir}/gnucash/doc/*
%defattr(444,root,root,755)
%attr(555,-,-) %{_bindir}/gnucash
%attr(555,-,-) %{_bindir}/gnc-prices
%{_libdir}/libgncengine.*
%{_libdir}/gnucash
%{_libdir}/menu/*
%{_datadir}/gnucash/perl
%{_datadir}/gnucash/scm
# (fg) Not this file, we now use the menu system of Debian
# (rk) Added again, as I currently don't use gnome with menu ;-)
%{_datadir}/gnome/apps/Applications/gnucash.desktop
%{_datadir}/icons/*
%{_datadir}/locale/*/LC_MESSAGES/gnucash.*mo
%{_mandir}/man1/*
%config /etc/gnucash
%changelog
* Tue Jul 15 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 1.5.0-2mdk
- Update to 1.5.0
- cleaned up spec file (removed mess of patches)
- added missing docs
- macroifized %files section
- removed unecessary etc link
* Tue Jul 11 2000 Christopher Molnar <[EMAIL PROTECTED]> 1.4.2-3mdk
- Repaired missing libs
* Mon Jul 10 2000 Christopher Molnar <[EMAIL PROTECTED]> 1.4.2-1mdk
- Updated version / release 2 hours ago.
* Sat Jul 08 2000 Christopher Molnar <[EMAIL PROTECTED]> 1.4.1-1mdk
- Updated version
* Wed May 24 2000 Chmouel Boudjnah <[EMAIL PROTECTED]> 1.3.1-5mdk
- Give full path when using convert.
- BuildPrereq: /usr/bin/convert.
- Regenerate libtoolize everywhere there is a configure.
- BuildRequires: eperl swig.
* Mon Apr 10 2000 Francis Galiegue <[EMAIL PROTECTED]> 1.3.1-4mdk
- Patched to compile with perl 5.6.0
* Wed Mar 22 2000 Francis Galiegue <[EMAIL PROTECTED]> 1.3.1-3mdk
- Icon for menu entry
- Rebuilt on kenobi
PGP signature