From 2ff0069abf86f83e3607446ebcd72ce2ea32dd52 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Apr 16 2021 14:30:31 +0000 Subject: Conditionalize buildrequires in bootstrap mode --- diff --git a/xbean.spec b/xbean.spec index e1f63f9..cf8e18c 100644 --- a/xbean.spec +++ b/xbean.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: xbean Version: 4.18 Release: 1%{?dist} @@ -13,10 +15,14 @@ Patch2: 0002-Unbundle-ASM.patch Patch3: 0003-Remove-dependency-on-log4j-and-commons-logging.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.ow2.asm:asm) BuildRequires: mvn(org.ow2.asm:asm-commons) +%endif %description The goal of XBean project is to create a plugin based server