From bde0dd1fc3968835a24903199e38b73d466521b0 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 --- apache-commons-parent.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apache-commons-parent.spec b/apache-commons-parent.spec index fd420f7..a98fed6 100644 --- a/apache-commons-parent.spec +++ b/apache-commons-parent.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-parent Version: 52 Release: 1%{?dist} @@ -9,13 +11,19 @@ BuildArch: noarch Source0: https://github.com/apache/commons-parent/archive/rel/commons-parent-%{version}.tar.gz BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif # Not generated automatically +%if %{without bootstrap} BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) +%endif Requires: mvn(org.codehaus.mojo:build-helper-maven-plugin) %description