diff --git a/junit.spec b/junit.spec index 236af75..2703dc2 100644 --- a/junit.spec +++ b/junit.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: junit Version: 4.13.1 Release: 1%{?dist} @@ -13,14 +15,20 @@ Source1: generate-tarball.sh Patch1: 0001-Port-to-hamcrest-2.2.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.hamcrest:hamcrest-core) +%endif # For other packages, surefire-junit4 is normally pulled as transitive # runtime dependency of junit, but junit doesn't build-depend on # itself, so explicit BR on surefire-junit4 is needed. +%if %{without bootstrap} BuildRequires: mvn(org.apache.maven.surefire:surefire-junit4) +%endif %description JUnit is a regression testing framework written by Erich Gamma and Kent Beck.