- 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
This commit is contained in:
Marc Wiriadisastra 2008-02-06 09:56:17 +00:00
commit dc06bf4ce0
2 changed files with 32 additions and 10 deletions

View file

@ -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 @@
<property name="pdf" value="${dist}/pdf"/>
<property name="text" value="${dist}/txt"/>
<property name="images" value="&common;/images"/>
-<property name="crimson" value="&common;/lib/crimson.jar"/>
-<property name="saxon" value="&common;/lib/saxon.jar;${crimson}"/>
+<property name="crimson" value="/usr/share/java/xerces-j2.jar"/>
+<property name="saxon" value="/usr/share/java/saxon.jar:${crimson}"/>
<property name="encoding" value="iso-8859-1"/>
<property name="standardargs" value=""/>

View file

@ -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 <marc@mwiriadi.id.au - 5.4-11
* Tue Feb 5 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 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 <marc@mwiriadi.id.au> - 5.4-11
- Added xdg-utils Requires to open pdf and other files
* Wed Jan 23 2008 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> - 5.4-10