Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 5a44086494
commit 40419a6222

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: osgi-annotation
Version: 8.0.0
Release: 1%{?dist}
@ -14,7 +16,11 @@ Source1: https://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{versio
BuildArch: noarch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%endif
%description
Annotations for use in compiling OSGi bundles. This package is not normally