From c8c1c93eee4c25f705249e3a7b717f5c50b58a4d 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 --- httpcomponents-core.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httpcomponents-core.spec b/httpcomponents-core.spec index e8d9d77..123ab3f 100644 --- a/httpcomponents-core.spec +++ b/httpcomponents-core.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: httpcomponents-core Summary: Set of low level Java HTTP transport components for HTTP services Version: 4.4.13 @@ -10,12 +12,16 @@ Patch0: 0001-Port-to-mockito-2.patch BuildArch: noarch BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.mockito:mockito-core) +%endif %description HttpCore is a set of low level HTTP transport components that can be