Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:13 +02:00
parent 2a37621c4e
commit 2ff0069abf

View File

@ -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