From 83eb65d47690ff21bad24000e4b7e9e93ff0ed38 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:12 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- maven-antrun-plugin.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maven-antrun-plugin.spec b/maven-antrun-plugin.spec index 9ccae8f..c724ac8 100644 --- a/maven-antrun-plugin.spec +++ b/maven-antrun-plugin.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: maven-antrun-plugin Version: 3.0.0 Release: 1%{?dist} @@ -9,6 +11,9 @@ BuildArch: noarch Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) @@ -21,6 +26,7 @@ BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.xmlunit:xmlunit-core) BuildRequires: mvn(org.xmlunit:xmlunit-matchers) +%endif %description This plugin provides the ability to run Ant tasks from within Maven.