From cccea9e1bb41c20147a2f294510b5ca56611f642 Mon Sep 17 00:00:00 2001 From: zke_012020 Date: Mon, 26 Feb 2024 14:20:17 +0000 Subject: [PATCH] update codenarc.spec. Signed-off-by: zke_012020 --- codenarc.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/codenarc.spec b/codenarc.spec index 7e52967..9f4ea39 100644 --- a/codenarc.spec +++ b/codenarc.spec @@ -1,11 +1,12 @@ Name: codenarc Version: 0.24.1 -Release: 6 +Release: 7 Summary: A static analysis tool for Groovy source code License: ASL 2.0 Url: http://codenarc.github.io/CodeNarc/ Source0: https://github.com/CodeNarc/CodeNarc/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: java-devel >= 1:11.0.0 BuildRequires: maven-local mvn(junit:junit) mvn(log4j:log4j:1.2.17) mvn(org.apache.ant:ant) BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin) mvn(org.codehaus.groovy:groovy) BuildRequires: mvn(org.codehaus.groovy:groovy-ant) mvn(org.codehaus.groovy:groovy-xml) mvn(org.gmetrics:GMetrics) @@ -77,6 +78,11 @@ cp -p src/main/groovy/org/codenarc/analyzer/SuppressionAnalyzer.java \ %mvn_file org.%{name}:CodeNarc %{name} CodeNarc %build +pushd /usr/lib/jvm +dirname=`ls | grep java-11-openjdk-` +javapath=/usr/lib/jvm/$dirname +popd +export JAVA_HOME=$javapath %mvn_build %install @@ -89,5 +95,8 @@ cp -p src/main/groovy/org/codenarc/analyzer/SuppressionAnalyzer.java \ %files help -f .mfiles-javadoc %changelog +* Mon Feb 26 2024 zke_012020 - 0.24.1-7 +- Update JDK version to 11 + * Thu Mar 5 2020 tangjing - 0.24.1-6 - Package init \ No newline at end of file