First step to buildability with jdk9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=25
This commit is contained in:
2017-09-08 06:07:20 +00:00
committed by Git OBS Bridge
parent 569e43d086
commit c9664b1583
3 changed files with 16 additions and 3 deletions

View File

@@ -50,7 +50,8 @@ Patch3: %{name}-%{version}-javadoc.patch
Patch4: hamcrest-1.3-random-build-crash.patch
Patch5: hamcrest-1.3-fork-javac.patch
BuildRequires: ant >= 1.6.5
BuildRequires: java-devel >= 1.6.0
# Disable this one whenever the javadoc build is fixed for jdk9
BuildRequires: java-1_8_0-openjdk-devel
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: qdox
@@ -101,7 +102,7 @@ perl -pi -e 's/\r$//g' LICENSE.txt
%build
export CLASSPATH=$(build-classpath qdox)
ant -Dant.build.javac.source=1.5 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc
ant -Dant.build.javac.source=1.6 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc
# inject OSGi manifests
mkdir -p META-INF