From 148916688adc8bdf91f4de772d9c647d1810c46c Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Apr 16 2021 13:33:12 +0000 Subject: Conditionalize buildrequires in bootstrap mode --- 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