diff --git a/antlr3.spec b/antlr3.spec index ebe35c6..f905748 100644 --- a/antlr3.spec +++ b/antlr3.spec @@ -176,7 +176,9 @@ sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resour %if %{with bootstrap} -j \ %endif +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -- -Dmaven.compiler.release=6 +%endif %if %{without runtime} && %{without bootstrap}