1
0

Accepting request 963928 from Java:packages

Build with source/target levels 8

OBS-URL: https://build.opensuse.org/request/show/963928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/javacc-maven-plugin?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2022-03-22 18:40:33 +00:00 committed by Git OBS Bridge
commit 47d97773a8
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 22 12:22:49 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with java source and target levels 8
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Apr 6 12:08:41 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Sat Apr 6 12:08:41 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package javacc-maven-plugin # spec file for package javacc-maven-plugin
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2022 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
@ -29,6 +29,7 @@ Source0: javacc-maven-plugin-2.6.tar.bz2
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
Patch0: javacc-maven-plugin-pom.patch Patch0: javacc-maven-plugin-pom.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(net.java.dev.javacc:javacc) BuildRequires: mvn(net.java.dev.javacc:javacc)
BuildRequires: mvn(org.apache.maven.doxia:doxia-sink-api) BuildRequires: mvn(org.apache.maven.doxia:doxia-sink-api)
@ -59,7 +60,11 @@ API documentation for %{name}.
cp -p %{SOURCE1} . cp -p %{SOURCE1} .
%build %build
%{mvn_build} -f -- -Dsource=6 %{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install %install
%mvn_install %mvn_install