From 75cadd43f54fba7c80d5a68cb286c1fcbcd05665 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 --- cdi-api.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cdi-api.spec b/cdi-api.spec index b4713c7..bbe4714 100644 --- a/cdi-api.spec +++ b/cdi-api.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: cdi-api Version: 2.0.2 Release: 1%{?dist} @@ -11,8 +13,12 @@ Source0: https://github.com/eclipse-ee4j/cdi/archive/%{version}.tar.gz Patch1: 0001-Remove-dependency-on-glassfish-el.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: %{?module_prefix}mvn(jakarta.inject:jakarta.inject-api) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +%endif %description APIs for JSR-299: Contexts and Dependency Injection for Java EE