Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 01c1a918c7
commit 352d527390

View File

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