Add groovy conditional
This commit is contained in:
parent
a7354e0e8d
commit
e03726c94a
@ -1,6 +1,8 @@
|
||||
%bcond_without groovy
|
||||
|
||||
Name: maven-script-interpreter
|
||||
Version: 1.1
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Maven Script Interpreter
|
||||
License: ASL 2.0
|
||||
URL: http://maven.apache.org/shared/maven-script-interpreter/
|
||||
@ -14,7 +16,9 @@ BuildRequires: mvn(org.apache.ant:ant)
|
||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
|
||||
BuildRequires: mvn(org.beanshell:bsh)
|
||||
%if %{with groovy}
|
||||
BuildRequires: mvn(org.codehaus.groovy:groovy)
|
||||
%endif
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
||||
@ -27,7 +31,7 @@ various implementations: Groovy or BeanShell.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
@ -35,6 +39,14 @@ API documentation for %{name}.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%if %{without groovy}
|
||||
%pom_remove_dep :groovy
|
||||
rm src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
|
||||
rm src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
|
||||
rm src/test/java/org/apache/maven/shared/scriptinterpreter/ScriptRunnerTest.java
|
||||
sed -i /GroovyScriptInterpreter/d src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
|
||||
%endif
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
@ -49,6 +61,9 @@ API documentation for %{name}.
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 1.1-9
|
||||
- Add groovy conditional
|
||||
|
||||
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-8
|
||||
- Add missing build-requires
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user