Accepting request 750517 from Java:packages

fix build with new maven-javadoc-plugin

OBS-URL: https://build.opensuse.org/request/show/750517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr3?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-11-26 15:54:59 +00:00 committed by Git OBS Bridge
commit b605ea9e95
2 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Nov 24 11:36:43 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Specify maven.compiler.release to fix build with jdk9+ and newer
maven-javadoc-plugin
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 12 07:57:47 UTC 2019 - Fridrich Strba <fstrba@suse.com> Thu Sep 12 07:57:47 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package antlr3 # spec file for package antlr3
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -32,8 +32,6 @@
%endif %endif
Version: %{antlr_version} Version: %{antlr_version}
Release: 0 Release: 0
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: https://www.antlr3.org/ URL: https://www.antlr3.org/
Source0: https://github.com/antlr/antlr3/archive/%{antlr_version}.tar.gz Source0: https://github.com/antlr/antlr3/archive/%{antlr_version}.tar.gz
Patch0: 0001-java8-fix.patch Patch0: 0001-java8-fix.patch
@ -42,15 +40,17 @@ Patch1: osgi-manifest.patch
Patch100: antlr3-generated_sources.patch Patch100: antlr3-generated_sources.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: unzip
BuildRequires: mvn(antlr:antlr) BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(org.antlr:stringtemplate) BuildRequires: mvn(org.antlr:stringtemplate)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: unzip
BuildArch: noarch BuildArch: noarch
%if %{with runtime} %if %{with runtime}
Name: antlr3-java Name: antlr3-java
Summary: Java run-time support for ANTLR-generated parsers Summary: Java run-time support for ANTLR-generated parsers
License: BSD-3-Clause
Group: Development/Libraries/Java
%description %description
Java run-time support for ANTLR-generated parsers Java run-time support for ANTLR-generated parsers
@ -58,6 +58,9 @@ Java run-time support for ANTLR-generated parsers
%else %else
Summary: ANother Tool for Language Recognition Summary: ANother Tool for Language Recognition
License: BSD-3-Clause
Group: Development/Libraries/Java
BuildRequires: unzip
BuildRequires: mvn(org.antlr:ST4) BuildRequires: mvn(org.antlr:ST4)
BuildRequires: mvn(org.antlr:antlr-runtime) BuildRequires: mvn(org.antlr:antlr-runtime)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
@ -65,7 +68,6 @@ BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires: mvn(xerces:dom3-xml-apis) BuildRequires: mvn(xerces:dom3-xml-apis)
BuildRequires: unzip
%if %{with bootstrap} %if %{with bootstrap}
Name: antlr3-bootstrap Name: antlr3-bootstrap
@ -170,10 +172,12 @@ sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resour
%{mvn_file} :antlr-maven-plugin antlr3-maven-plugin %{mvn_file} :antlr-maven-plugin antlr3-maven-plugin
%build %build
%{mvn_build} -f \
%if %{with bootstrap} %if %{with bootstrap}
%{mvn_build} -f -j -j \
%else %endif
%{mvn_build} -f %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6
%endif %endif
%if %{without runtime} && %{without bootstrap} %if %{without runtime} && %{without bootstrap}