Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:12 +02:00
parent ae0d10d16f
commit 6b46ae68a2
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
%bcond_without bootstrap
Name: beust-jcommander Name: beust-jcommander
Version: 1.78 Version: 1.78
Release: 2%{?dist} Release: 2%{?dist}
@ -16,9 +18,13 @@ Source2: generate-tarball.sh
Patch0: 0001-ParseValues-NullPointerException-patch.patch Patch0: 0001-ParseValues-NullPointerException-patch.patch
BuildRequires: maven-local BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.testng:testng) BuildRequires: mvn(org.testng:testng)
%endif
%description %description
JCommander is a very small Java framework that makes it trivial to JCommander is a very small Java framework that makes it trivial to