From 29f2b13e0009678f45689411aeae748e5a904e5c7ff6718200bbc9b345857f66 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 23 Sep 2019 07:30:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jzlib?expand=0&rev=30 --- jzlib-javadoc-fixes.patch | 21 +++++++++++++++++++++ jzlib.spec | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 jzlib-javadoc-fixes.patch diff --git a/jzlib-javadoc-fixes.patch b/jzlib-javadoc-fixes.patch new file mode 100644 index 0000000..fa8f030 --- /dev/null +++ b/jzlib-javadoc-fixes.patch @@ -0,0 +1,21 @@ +--- src/main/java/com/jcraft/jzlib/ZStream.java.orig 2014-05-09 12:35:05.241400959 +0100 ++++ src/main/java/com/jcraft/jzlib/ZStream.java 2014-05-09 12:35:35.093886286 +0100 +@@ -371,6 +371,7 @@ + /** + * Those methods are expected to be override by Inflater and Deflater. + * In the future, they will become abstract methods. ++ * @return an error code + */ + public int end(){ return Z_OK; } + public boolean finished(){ return false; } +--- src/main/java/com/jcraft/jzlib/GZIPHeader.java.orig 2014-05-09 12:37:35.358812069 +0100 ++++ src/main/java/com/jcraft/jzlib/GZIPHeader.java 2014-05-09 12:37:40.267727366 +0100 +@@ -37,7 +37,7 @@ + import java.io.UnsupportedEncodingException; + + /** +- * @see "http://www.ietf.org/rfc/rfc1952.txt" ++ * See "http://www.ietf.org/rfc/rfc1952.txt" + */ + public class GZIPHeader implements Cloneable { + diff --git a/jzlib.spec b/jzlib.spec index 2003923..f1bf143 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -25,6 +25,8 @@ Group: Development/Libraries/Java URL: http://www.jcraft.com/jzlib/ Source0: https://github.com/ymnk/jzlib/archive/%{version}.tar.gz Source1: %{name}_build.xml +# This patch is sent upstream: https://github.com/ymnk/jzlib/pull/15 +Patch0: jzlib-javadoc-fixes.patch BuildRequires: ant >= 1.6 BuildRequires: fdupes BuildRequires: java-devel @@ -55,6 +57,7 @@ Group: Documentation/HTML %prep %setup -q +%patch0 cp %{SOURCE1} build.xml # bnc#500524