From 2a189d51b7d5141b1cea931e9206182ea2a50044 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 --- easymock.spec | 8 ++++++++ 1 file changed, 8 insertions(+) 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}