From 34e3cb417e0cf368690f7e7e566e13f245bfe1bd 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-lang3.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec index b4b5b30..f1d2a45 100644 --- a/apache-commons-lang3.spec +++ b/apache-commons-lang3.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-lang3 Version: 3.12.0 Release: 1%{?dist} @@ -10,6 +12,9 @@ Source0: https://archive.apache.org/dist/commons/lang/source/commons-lang Patch1: 0001-Remove-test-dependency-on-JUnit-Pioneer.patch BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(biz.aQute.bnd:biz.aQute.bndlib) BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) @@ -18,6 +23,7 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.hamcrest:hamcrest) BuildRequires: mvn(org.junit.jupiter:junit-jupiter) +%endif %description The standard Java libraries fail to provide enough methods for