Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 0d0e9dc490
commit 34e3cb417e

View File

@ -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