From 9566e6e0c7bfc5531980d68cf516a3d4ed9c1174 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 --- maven-parent.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maven-parent.spec b/maven-parent.spec index 1f65493..4adc170 100644 --- a/maven-parent.spec +++ b/maven-parent.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: maven-parent Version: 34 Release: 1%{?dist} @@ -8,12 +10,16 @@ Source0: https://repo1.maven.org/maven2/org/apache/maven/%{name}/%{versio BuildArch: noarch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin) BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata) +%endif %description Apache Maven parent POM file used by other Maven projects.