Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent d9d518a0bc
commit 75cadd43f5

View File

@ -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