Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:13 +02:00
parent a22a8f84a4
commit 0136dda54e

View File

@ -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