From 587c1aa30372092e40b46311d603fefebf78c3ac Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Thu, 25 Jun 2020 14:42:26 -0400 Subject: [PATCH] Use source/target of 1.6 to build against Java 11. Signed-off-by: Roland Grunberg --- java_cup.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/java_cup.spec b/java_cup.spec index 4829967..83dd02e 100644 --- a/java_cup.spec +++ b/java_cup.spec @@ -3,7 +3,7 @@ Name: java_cup Version: 0.11b -Release: 12%{?dist} +Release: 13%{?dist} Epoch: 1 Summary: LALR parser generator for Java License: MIT @@ -59,6 +59,10 @@ rm -rf java_cup-%{version}/bin/JFlex.jar rm -rf java_cup-%{version}/bin/java-cup-11.jar %endif +# Use source/target 1.6 for Java 11 +sed -i 's/source="1.5"/source="1.6"/' build.xml +sed -i 's/target="1.5"/target="1.6"/' build.xml + %build %if ! %{with_bootstrap} export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex) @@ -90,6 +94,9 @@ jar ufm dist/java-cup-%{pkg_version}-runtime.jar %{SOURCE4} %license licence.txt %changelog +* Thu Jun 25 2020 Roland Grunberg - 1:0.11b-13 +- Use source/target of 1.6 to build against Java 11. + * Wed Jan 29 2020 Fedora Release Engineering - 1:0.11b-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild