Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent f547b7eccf
commit b23c066031

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: apache-commons-codec Name: apache-commons-codec
Version: 1.15 Version: 1.15
Release: 1%{?dist} Release: 1%{?dist}
@ -12,9 +14,13 @@ Source0: https://archive.apache.org/dist/commons/codec/source/commons-cod
Source1: aspell-mail.txt Source1: aspell-mail.txt
BuildRequires: maven-local-openjdk8 BuildRequires: maven-local-openjdk8
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
%endif
%description %description
Commons Codec is an attempt to provide definitive implementations of Commons Codec is an attempt to provide definitive implementations of