From 4af2ad42c385a1ccd1d225cf0f502fbace8286fe Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:13 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- xmlunit.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmlunit.spec b/xmlunit.spec index 6c2a244..62abe73 100644 --- a/xmlunit.spec +++ b/xmlunit.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: xmlunit Version: 2.8.2 Release: 1%{?dist} @@ -12,6 +14,9 @@ Patch2: 0002-Port-to-hamcrest-2.1.patch Patch3: 0003-Drop-support-for-JAXB.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.bytebuddy:byte-buddy) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) @@ -19,6 +24,7 @@ BuildRequires: mvn(org.assertj:assertj-core) BuildRequires: mvn(org.hamcrest:hamcrest-core) BuildRequires: mvn(org.hamcrest:hamcrest-library) BuildRequires: mvn(org.mockito:mockito-core) +%endif BuildArch: noarch