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)