Projects
Eulaceura:Factory
codenarc
_service:obs_scm:codenarc.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:codenarc.spec of Package codenarc
Name: codenarc Version: 1.4 Release: 1 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}/CodeNarc-%{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) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) mvn(org.slf4j:slf4j-api) BuildArch: noarch %description CodeNarc analyzes Groovy code for defects,bad practices,inconsistencies,style issues and more. A flexible framework for rules,rulesets and custom rules means it is easy to configure CodeNarc to fit into your project. Build tool,framework support and report generation are all enterprise ready. %package help Summary: Help documents for codenarc Provides: %{name}-javadoc = %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release} %description help Help documents for codenarc. %prep %autosetup -n CodeNarc-%{version} find . -name '*.jar' -exec rm -f {} ';' find . -name '*.class' -exec rm -f {} ';' rm -rf docs/* cp -p site-pom.xml pom.xml install -d src/main/java/org/codenarc/analyzer cp -p src/main/groovy/org/codenarc/analyzer/SuppressionAnalyzer.java \ src/main/java/org/codenarc/analyzer/ %pom_xpath_inject pom:project/pom:properties ' <antVersion>1.9.6</antVersion> <gmetricsVersion>0.7</gmetricsVersion> <junitVersion>4.12</junitVersion> <log4jVersion>1.2.17</log4jVersion> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>' %pom_xpath_set pom:properties/pom:targetJdk 1.6 %pom_xpath_set pom:properties/pom:groovyVersion 2.4.5 %pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.5.1 . " <configuration> <source>\${targetJdk}</source> <target>\${targetJdk}</target> </configuration>" %pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 . " <executions> <execution> <goals> <goal>generateStubs</goal> <goal>generateTestStubs</goal> </goals> </execution> </executions>" %pom_add_dep org.apache.ant:ant:'${antVersion}' . "<optional>true</optional>" %pom_add_dep org.codehaus.groovy:groovy:'${groovyVersion}' %pom_add_dep org.codehaus.groovy:groovy-ant:'${groovyVersion}' %pom_add_dep org.codehaus.groovy:groovy-xml:'${groovyVersion}' %pom_add_dep org.gmetrics:GMetrics:'${gmetricsVersion}' %pom_add_dep junit:junit:'${junitVersion}' %pom_add_dep log4j:log4j:'${log4jVersion}' %pom_add_dep org.slf4j:slf4j-api:1.7.25 rm -rf src/test/groovy/org/codenarc/rule/AbstractEnhanceableAstVisitorRuleTest.groovy %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 %mvn_install %files -f .mfiles %doc CHANGELOG.md README.md %license LICENSE.txt NOTICE.txt %files help -f .mfiles-javadoc %changelog * Tue Jul 02 2024 Ge Wang <wang__ge@126.com> - 1.4-1 - Update to version 1.4 * Thu Jun 20 2024 Ge Wang <wang__ge@126.com> - 0.24.1-8 - Fix build failure for gmavenplus-plugin-2.1.0 * 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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2