From 352d52739038324cf7d6341f47af81ba562f1803 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 --- hamcrest.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hamcrest.spec b/hamcrest.spec index 197fca1..95292a1 100644 --- a/hamcrest.spec +++ b/hamcrest.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + %global upstream_version %(echo %{version} | tr '~' '-') Name: hamcrest @@ -14,7 +16,11 @@ Source1: https://repo1.maven.org/maven2/org/hamcrest/hamcrest/%{upstream_ Patch0: 0001-Fix-build-with-OpenJDK-11.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) +%endif %description Provides a library of matcher objects (also known as constraints or predicates)