From 5767be9f45b43e635cd2fc452ed2fe7c45ef9bba 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-jxpath.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-commons-jxpath.spec b/apache-commons-jxpath.spec index f98509f..0d620c6 100644 --- a/apache-commons-jxpath.spec +++ b/apache-commons-jxpath.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-jxpath Version: 1.3 Release: 31%{?dist} @@ -11,11 +13,15 @@ Source0: http://www.apache.org/dist/commons/jxpath/source/commons-jxpath- Patch0: commons-jxpath-mockrunner.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(commons-beanutils:commons-beanutils) BuildRequires: mvn(jdom:jdom) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) +%endif %description Defines a simple interpreter of an expression language called XPath.