From 5b6e22e633a1712a84c378058737bc0488866c9d2cec51d44241c5c7c242c2b8 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 22 Mar 2022 12:23:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/javacc-maven-plugin?expand=0&rev=5 --- javacc-maven-plugin.changes | 5 +++++ javacc-maven-plugin.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/javacc-maven-plugin.changes b/javacc-maven-plugin.changes index bd6224d..63a1997 100644 --- a/javacc-maven-plugin.changes +++ b/javacc-maven-plugin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 22 12:22:49 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + ------------------------------------------------------------------- Sat Apr 6 12:08:41 UTC 2019 - Jan Engelhardt diff --git a/javacc-maven-plugin.spec b/javacc-maven-plugin.spec index 12f441a..84a8628 100644 --- a/javacc-maven-plugin.spec +++ b/javacc-maven-plugin.spec @@ -1,7 +1,7 @@ # # 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 # 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 Patch0: javacc-maven-plugin-pom.patch BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(net.java.dev.javacc:javacc) BuildRequires: mvn(org.apache.maven.doxia:doxia-sink-api) @@ -59,7 +60,11 @@ API documentation for %{name}. cp -p %{SOURCE1} . %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 %mvn_install