From 40419a62224a1d9c7ef5115d04c4db128d2b0560 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:12 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- osgi-annotation.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osgi-annotation.spec b/osgi-annotation.spec index f9e1d27..b2b56a0 100644 --- a/osgi-annotation.spec +++ b/osgi-annotation.spec @@ -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