diff --git a/SOURCES/batik-javadoc-task-failonerror-and-oom.patch b/SOURCES/batik-javadoc-task-failonerror-and-oom.patch new file mode 100644 index 0000000..48c2f62 --- /dev/null +++ b/SOURCES/batik-javadoc-task-failonerror-and-oom.patch @@ -0,0 +1,14 @@ +Index: build.xml +=================================================================== +--- build.xml (revision 1558779) ++++ build.xml (working copy) +@@ -2093,7 +2093,8 @@ + org.w3c.css.*, + org.w3c.dom.*" + excludepackagenames="${javadoc-exclusions}" +- maxmemory="128m" ++ maxmemory="512m" ++ failonerror="yes" + destdir="${docs}/javadoc" + encoding="UTF-8" + docencoding="UTF-8" diff --git a/SOURCES/batik.slideshow.script b/SOURCES/batik.slideshow.script index 33b8748..25298e6 100644 --- a/SOURCES/batik.slideshow.script +++ b/SOURCES/batik.slideshow.script @@ -23,7 +23,7 @@ fi # Configuration MAIN_CLASS=org.apache.batik.apps.slideshow.Main -BASE_JARS="batik batik-slideshow" +BASE_JARS="batik batik-slideshow xml-commons-apis-ext" # Set parameters set_jvm diff --git a/SPECS/batik.spec b/SPECS/batik.spec index 53be738..1ede844 100644 --- a/SPECS/batik.spec +++ b/SPECS/batik.spec @@ -1,6 +1,6 @@ Name: batik Version: 1.8 -Release: 0.9.svn1230816%{?dist} +Release: 0.12.svn1230816%{?dist} Summary: Scalable Vector Graphics for Java License: ASL 2.0 and W3C URL: http://xml.apache.org/batik/ @@ -41,6 +41,11 @@ Patch2: %{name}-script-remove-js.patch Patch3: %{name}-1.6-nosmilInDOMSVGManifest.patch Requires: rhino >= 1.5 +# make sure we fail build if javadocs fail (run OOM) +# also make maxmem a bit higher. we seem to need more... +# https://issues.apache.org/jira/browse/BATIK-1065 +Patch4: %{name}-javadoc-task-failonerror-and-oom.patch + BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 @@ -169,6 +174,8 @@ for module in anim awt-util bridge codec css dom ext extension gui-util \ done %patch2 +%patch4 + %build export CLASSPATH=$(build-classpath xml-commons-apis xml-commons-apis-ext js rhino xalan-j2 xalan-j2-serializer xerces-j2) ant all-jar jars\ @@ -322,6 +329,17 @@ chmod +x $RPM_BUILD_ROOT%{_datadir}/%{name}/contrib/charts/convert.sh %changelog +* Fri Jan 17 2014 Stanislav Ochotnicky - 1.8-0.12.svn1230816 +- Change javadoc task maxmem to 512MB to avoid OOM +- Resolves: rhbz#1054202 + +* Wed Jan 15 2014 Stanislav Ochotnicky - 1.8-0.11.svn1230816 +- Fix classpath for slideshow script +- Resolves: rhbz#995472 + +* Fri Dec 27 2013 Daniel Mach - 1.8-0.10.svn1230816 +- Mass rebuild 2013-12-27 + * Thu Nov 07 2013 Stanislav Ochotnicky - 1.8-0.9.svn1230816 - Use add_maven_depmap instead of deprecated - Resolves: rhbz#1027847