From f0e495d8900071fac6ef5ed2f229a7277a549065 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:13 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- plexus-interpolation.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plexus-interpolation.spec b/plexus-interpolation.spec index da41568..fb0d3a6 100644 --- a/plexus-interpolation.spec +++ b/plexus-interpolation.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: plexus-interpolation Version: 1.26 Release: 3%{?dist} @@ -12,9 +14,13 @@ Source0: https://github.com/codehaus-plexus/plexus-interpolation/archive/ Patch0: 0001-Use-PATH-env-variable-instead-of-JAVA_HOME.patch BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.codehaus.plexus:plexus-components:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +%endif %description Plexus interpolator is the outgrowth of multiple iterations of development