Fix build with java 9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=26
This commit is contained in:
Fridrich Strba 2017-09-08 07:35:02 +00:00 committed by Git OBS Bridge
parent c9664b1583
commit 644316f566
3 changed files with 1150 additions and 4 deletions

1144
hamcrest-1.3-javadoc9.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,9 @@ Fri Sep 8 06:05:24 UTC 2017 - fstrba@suse.com
with jdk9
- Specify java source level 1.6 in order to allow building with
jdk9
- Require java-1_8_0-openjdk-devel since javadoc errors are fatal
in jdk9
- Added patch:
* hamcrest-1.3-javadoc9.patch
+ fix javadoc errors that are fatal in jdk9
-------------------------------------------------------------------
Mon May 29 16:05:25 UTC 2017 - tchvatal@suse.com

View File

@ -49,9 +49,9 @@ Patch3: %{name}-%{version}-javadoc.patch
#PATCH-FIX-UPSTREAM: random build crash fix
Patch4: hamcrest-1.3-random-build-crash.patch
Patch5: hamcrest-1.3-fork-javac.patch
Patch6: hamcrest-1.3-javadoc9.patch
BuildRequires: ant >= 1.6.5
# Disable this one whenever the javadoc build is fixed for jdk9
BuildRequires: java-1_8_0-openjdk-devel
BuildRequires: java-devel >= 1.6.0
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: qdox
@ -97,6 +97,7 @@ ln -sf $(build-classpath qdox) lib/generator/
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
perl -pi -e 's/\r$//g' LICENSE.txt