diff --git a/easymock.spec b/easymock.spec index 3abcf0a..a0303ec 100644 --- a/easymock.spec +++ b/easymock.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: easymock Version: 4.2 Release: 1%{?dist} @@ -18,6 +20,9 @@ Patch4: 0004-Port-to-hamcrest-2.1.patch BuildArch: noarch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(cglib:cglib) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) @@ -30,8 +35,11 @@ BuildRequires: mvn(org.junit.vintage:junit-vintage-engine) BuildRequires: mvn(org.objenesis:objenesis) BuildRequires: mvn(org.ow2.asm:asm) BuildRequires: mvn(org.testng:testng) +%endif # xmvn-builddep misses this: +%if %{without bootstrap} BuildRequires: mvn(org.apache:apache-jar-resource-bundle) +%endif Provides: %{name}3 = %{version}-%{release}