From eedf3753b03d3a2d5065ac50ad26f4745d1ebfd7 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-file-management.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maven-file-management.spec b/maven-file-management.spec index c0a022a..0da1deb 100644 --- a/maven-file-management.spec +++ b/maven-file-management.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: maven-file-management Epoch: 1 Version: 3.0.0 @@ -10,6 +12,9 @@ BuildArch: noarch Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/%{version}/file-management-%{version}-source-release.zip BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:) @@ -17,6 +22,7 @@ BuildRequires: mvn(org.apache.maven.shared:maven-shared-io) BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils) BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) +%endif %description Provides a component for plugins to easily resolve project dependencies.