From 03dd62ce7876cef60d50edb4078114b74e817eab 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 --- apache-commons-collections.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-commons-collections.spec b/apache-commons-collections.spec index ea1f22b..d7ca5f2 100644 --- a/apache-commons-collections.spec +++ b/apache-commons-collections.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-collections Version: 3.2.2 Release: 13%{?dist} @@ -12,9 +14,13 @@ Patch0: 0001-Port-to-Java-8.patch Patch1: 0002-Port-to-OpenJDK-11.patch BuildRequires: maven-local +%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 introduction of the Collections API by Sun in JDK 1.2 has been a