From b9ed835d78e74a6bc1c767b8fb5d55c27a96864a Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Apr 16 2021 13:33:12 +0000 Subject: Conditionalize buildrequires in bootstrap mode --- diff --git a/maven-resources-plugin.spec b/maven-resources-plugin.spec index 41cc60d..3420eb3 100644 --- a/maven-resources-plugin.spec +++ b/maven-resources-plugin.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: maven-resources-plugin Version: 3.2.0 Release: 1%{?dist} @@ -9,6 +11,9 @@ Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/ BuildArch: noarch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-lang3) @@ -26,6 +31,7 @@ BuildRequires: mvn(org.codehaus.plexus:plexus-interpolation) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.eclipse.aether:aether-api) BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus) +%endif %description The Resources Plugin handles the copying of project resources