diff --git a/gnucash-no-gtk_html_print.patch b/gnucash-no-gtk_html_print.patch
new file mode 100644
index 0000000..cc047a0
--- /dev/null
+++ b/gnucash-no-gtk_html_print.patch
@@ -0,0 +1,13 @@
+Ugly hack. gtk_html_print() is no more implemented! Remove this patch ASAP!
+================================================================================
+--- src/gnome-utils/gnc-html.c
++++ src/gnome-utils/gnc-html.c
+@@ -1325,7 +1325,7 @@
+ return;
+ }
+
+- gtk_html_print(GTK_HTML(html->html), ps->context);
++ gtk_html_print_page(GTK_HTML(html->html), ps->context);
+ gnc_print_session_done(ps);
+ }
+
diff --git a/gnucash.changes b/gnucash.changes
index 5b3aae5..debf4b4 100644
--- a/gnucash.changes
+++ b/gnucash.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri Mar 2 16:14:36 CET 2007 - sbrabec@suse.cz
+
+- Fixed autoreconf.
+- Fixed missing symbol in gtkhtml2.
+
-------------------------------------------------------------------
Wed Feb 21 12:36:50 CET 2007 - sbrabec@suse.cz
diff --git a/gnucash.spec b/gnucash.spec
index 70972fa..b75fa22 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -12,13 +12,14 @@
Name: gnucash
Version: 2.0.5
-Release: 1
+Release: 2
URL: http://www.gnucash.org/
Group: Productivity/Office/Finance
License: GNU General Public License (GPL)
Summary: Personal Finance Manager
Source: %{name}-%{version}.tar.bz2
Patch: fix-desktop-file.diff
+Patch1: gnucash-no-gtk_html_print.patch
Requires: guile slib
BuildRequires: doxygen g-wrap-devel gconf2-devel glib2-devel goffice-devel graphviz gtk2-devel gtkhtml2-devel guile-devel indent intltool ktoblzcheck-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libgsf-devel libofx-devel libxml2-devel perl-XML-Parser popt-devel slib update-desktop-files
# Optional features:
@@ -410,11 +411,15 @@ Authors:
%if %suse_version > 1020
%patch
%endif
+%patch1
sed -i "s:^\(GNC_DOC_INSTALL_DIR=\).*$:\1'%{_docdir}/%{name}':" configure.in
%build
export GUILE_WARN_DEPRECATED=no
export CFLAGS="$RPM_OPT_FLAGS"
+# Conflicts with pkg-config:
+rm macros/pkg.m4
+#Â FIXME: invalid directory somewhere in the source:
mkdir m4
#intltoolize --force
ACLOCAL="aclocal -I macros" autoreconf -f -i
@@ -490,6 +495,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/gnucash
%changelog
+* Fri Mar 02 2007 - sbrabec@suse.cz
+- Fixed autoreconf.
+- Fixed missing symbol in gtkhtml2.
* Wed Feb 21 2007 - sbrabec@suse.cz
- Updated to 2.0.5:
* Use guiles native sort and record.