Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent 596441bbfe
commit 9ed7aeb2de

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: apache-parent
Version: 23
Release: 1%{?dist}
@ -8,11 +10,17 @@ Source0: https://repo1.maven.org/maven2/org/apache/apache/%{version}/apac
BuildArch: noarch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
%endif
# Not generated automatically
%if %{without bootstrap}
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
%endif
Requires: mvn(org.apache:apache-jar-resource-bundle)
%description