From f64eb123befe4512fbbef5e84d7407064eb2e562 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/apache-commons-cli.spec b/apache-commons-cli.spec index 28e30fe..b616228 100644 --- a/apache-commons-cli.spec +++ b/apache-commons-cli.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-cli Version: 1.4 Release: 7%{?dist} @@ -12,9 +14,13 @@ Source0: http://www.apache.org/dist/commons/cli/source/commons-cli-%{vers Patch0: CLI-253-workaround.patch BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) +%endif %description The CLI library provides a simple and easy to use API for working with the