Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 1cbd2ed481
commit 2acfa2397b

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: osgi-core
Version: 8.0.0
Release: 1%{?dist}
@ -11,8 +13,12 @@ Source0: https://docs.osgi.org/download/r8/osgi.core-%{version}.jar
BuildArch: noarch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.osgi:osgi.annotation)
%endif
%description
OSGi Core, Interfaces and Classes for use in compiling bundles.