Accepting request 522291 from Java:packages

Fix build with java 9

OBS-URL: https://build.opensuse.org/request/show/522291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreadline-java?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2017-09-13 20:21:27 +00:00 committed by Git OBS Bridge
commit 6a28c52db4
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- libreadline-java-0.8.0/Makefile 2003-01-07 11:14:35.000000000 +0100
+++ libreadline-java-0.8.0/Makefile 2017-09-08 14:06:15.300416250 +0200
@@ -101,7 +101,7 @@
apidoc: $(APIDIR)
javadoc -sourcepath src -d $(APIDIR) -windowtitle $(WTITLE) \
-doctitle $(DTITLE) -footer $(DFOOTER) -header $(DHEADER) \
- -bottom $(DBOTTOM) \
+ -bottom $(DBOTTOM) -Xdoclint:none \
-version -author org.gnu.readline test
install: jar build-native apidoc

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 8 12:09:01 UTC 2017 - fstrba@suse.com
- Added patch:
* libreadline-java-0.8.0-doclint.patch
- Fix build with jdk9 whose javadoc is more picky
-------------------------------------------------------------------
Fri Jun 9 11:06:12 UTC 2017 - tchvatal@suse.com

View File

@ -28,6 +28,7 @@ Source1: baselibs.conf
Patch0: libreadline-java-ncurses.patch
Patch1: libreadline-java-libdir.patch
Patch2: libreadline-java-0.8.0-missing-return-type.patch
Patch3: libreadline-java-0.8.0-doclint.patch
BuildRequires: java-devel >= 1.6.0
BuildRequires: javapackages-tools
BuildRequires: libedit-devel >= 2.9
@ -56,6 +57,7 @@ wrapper. This package contains the javadoc documentation for it.
%patch0
%patch1
%patch2 -p1
%patch3 -p1
find . -name "*.jar" -exec rm -f {} \;
sed -i 's|@LIBDIR@|%{_libdir}|' src/org/gnu/readline/Readline.java