update codenarc.spec.
Signed-off-by: zke_012020 <keer.oerv@isrc.iscas.ac.cn>
This commit is contained in:
parent
5f8e25849d
commit
cccea9e1bb
@ -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 <keer.oerv@isrc.iscas.ac.cn> - 0.24.1-7
|
||||
- Update JDK version to 11
|
||||
|
||||
* Thu Mar 5 2020 tangjing <tangjing30@huawei.com> - 0.24.1-6
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user