From c6a67957bc41c94d6c1b5188c7f5206183a993c8 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 --- opentest4j.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opentest4j.spec b/opentest4j.spec index 00ee081..270082f 100644 --- a/opentest4j.spec +++ b/opentest4j.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: opentest4j Version: 1.2.0 Release: 2%{?dist} @@ -11,7 +13,11 @@ Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) +%endif %description Open Test Alliance for the JVM is a minimal common foundation for