From 7f5162820c3e91faee939834e9bfeaec4716ffbc 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-compress.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-commons-compress.spec b/apache-commons-compress.spec index 659afbe..439963d 100644 --- a/apache-commons-compress.spec +++ b/apache-commons-compress.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-compress Version: 1.20 Release: 1%{?dist} @@ -13,6 +15,9 @@ Patch1: 0002-Remove-ZSTD-compressor.patch Patch2: 0003-Avoid-use-of-internal-Mockito-API.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) @@ -20,6 +25,7 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.osgi:org.osgi.core) BuildRequires: mvn(org.tukaani:xz) +%endif %description The Apache Commons Compress library defines an API for working with