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