Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 3e9075954d
commit 3a53f1a83d

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: maven-surefire
Version: 3.0.0~M3
Release: 4%{?dist}
@ -18,6 +20,9 @@ Patch3: 0003-Disable-JUnit-4.8-test-grouping.patch
Patch4: 0004-Port-to-maven-shared-utils-3.3.3.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
@ -39,6 +44,7 @@ BuildRequires: mvn(org.fusesource.jansi:jansi)
BuildRequires: mvn(org.junit.platform:junit-platform-launcher)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(org.testng:testng::jdk15:)
%endif
# PpidChecker relies on /usr/bin/ps to check process uptime