From 0136dda54e5bf0c45de0377791fd52f95c0ccdfe 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 --- velocity.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/velocity.spec b/velocity.spec index 64d26bf..cb50f38 100644 --- a/velocity.spec +++ b/velocity.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: velocity Version: 1.7 Release: 27%{?dist} @@ -17,9 +19,13 @@ Patch2: 0002-Force-use-of-JDK-log-chute.patch Patch3: 0003-CVE-2020-13936.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache:apache:pom:) +%endif %description Velocity is a Java-based template engine. It permits anyone to use the