From 9e7c20382c5348db5d2c37b43b7cc520e0428561 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 --- jdom2.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jdom2.spec b/jdom2.spec index 9b60df7..96cd5e5 100644 --- a/jdom2.spec +++ b/jdom2.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: jdom2 Version: 2.0.6 Release: 15%{?dist} @@ -16,8 +18,12 @@ Source4: generate-tarball.sh Patch0: 0001-Adapt-build.patch BuildRequires: javapackages-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: ant BuildRequires: ant-junit +%endif BuildArch: noarch