diff --git a/diveintopython-build_common.xml.patch b/diveintopython-build_common.xml.patch
new file mode 100644
index 0000000..57ee0db
--- /dev/null
+++ b/diveintopython-build_common.xml.patch
@@ -0,0 +1,13 @@
+--- diveintopython-5.4/common/build_common.xml 2004-05-05 17:42:24.000000000 +0800
++++ diveintopython-build_common.xml 2008-02-05 23:22:48.000000000 +0900
+@@ -16,8 +16,8 @@
+
+
+
+-
+-
++
++
+
+
+
diff --git a/diveintopython.spec b/diveintopython.spec
index 9d62ced..18c9d53 100644
--- a/diveintopython.spec
+++ b/diveintopython.spec
@@ -1,6 +1,6 @@
Name: diveintopython
Version: 5.4
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Dive into Python - a python book
@@ -15,14 +15,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: diveintopython-pdf, xdg-utils
Patch0: diveintopython-build.xml.patch
+Patch1: diveintopython-build_common.xml.patch
-BuildRequires: desktop-file-utils, htmldoc,
-BuildRequires: python, w3m
-%if 0%{?fedora} >= 8
-BuildRequires: java-1.7.0-icedtea
-%else
-BuildRequires: java-1.5.0-gcj
-%endif
+BuildRequires: desktop-file-utils, htmldoc, ant, jakarta-commons-net, ant-commons-net, xerces-j2, xml-commons-apis
+BuildRequires: python, w3m, java, saxon, ant-nodeps
%description
Dive Into Python is a Python book for experienced programmers.
@@ -58,12 +54,16 @@ The text version
%prep
%setup -q -b 1
%patch0 -p1 -b .build-all
+%patch1 -p1
mkdir build
mv xml make.sh build.xml build/
+find ./ -name '*.jar' -exec rm -f {} ';'
+
%build
pushd build
-/bin/sh make.sh
+#/bin/sh make.sh
+ant
popd
%install
@@ -115,7 +115,16 @@ rm -rf $RPM_BUILD_ROOT
%changelog
-* Sat Feb 2 2008 Marc Wiriadisastra - 5.4-12
+- Removed specific java package's and just use java in BR (overholt)
+- Added build_patch to not use downloaded jars and....
+- use Fedora packages listed in build requires see next changelog entry (bz#431364)
+- Added build requires ant, jakarta-commons-net, ant-commons-net and...
+- xerces-j2, xml-commons-apis, java
+- Removed upstream jars but maintained build-xml files just patched
+- Fixed changelog
+
+* Sat Feb 2 2008 Marc Wiriadisastra - 5.4-11
- Added xdg-utils Requires to open pdf and other files
* Wed Jan 23 2008 Mohd Izhar Firdaus Ismail - 5.4-10