public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Simacek <msimacek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/maven-script-interpreter] epel10: Add groovy conditional
Date: Sun, 01 Nov 2026 13:18:12 GMT	[thread overview]
Message-ID: <179353909272.1.3851937787183514060.rpms-maven-script-interpreter-e03726c94a68@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-01 13:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179353909272.1.3851937787183514060.rpms-maven-script-interpreter-e03726c94a68@fedoraproject.org \
    --to=msimacek@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox