public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/maven-script-interpreter] epel10: Add groovy conditional
@ 2026-11-01 13:18 Michael Simacek
  0 siblings, 0 replies; only message in thread
From: Michael Simacek @ 2026-11-01 13:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/maven-script-interpreter
Branch : epel10
Commit : e03726c94a68ad711c6e5cc108d9bcf526058f24
Author : Michael Simacek <msimacek@redhat.com>
Date   : 2017-02-06T13:20:06+01:00
Stats  : +17/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/maven-script-interpreter/c/e03726c94a68ad711c6e5cc108d9bcf526058f24?branch=epel10

Log:
Add groovy conditional

---
diff --git a/maven-script-interpreter.spec b/maven-script-interpreter.spec
index f66b3e3..e715f01 100644
--- a/maven-script-interpreter.spec
+++ b/maven-script-interpreter.spec
@@ -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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-01 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 13:18 [rpms/maven-script-interpreter] epel10: Add groovy conditional Michael Simacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox