Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:13 +02:00
parent d106ba8ee4
commit 5fd6ef3e15

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: plexus-classworlds
Version: 2.6.0
Release: 4%{?dist}
@ -9,8 +11,12 @@ BuildArch: noarch
Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: maven-local-openjdk8
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
%endif
%description
Classworlds is a framework for container developers