From 84b2f44b939e0a885d3fe541e7df8d632eacba8b 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-project.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/httpcomponents-project.spec b/httpcomponents-project.spec index 06c1ca9..857efbd 100644 --- a/httpcomponents-project.spec +++ b/httpcomponents-project.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: httpcomponents-project Summary: Common POM file for HttpComponents Version: 12 @@ -9,8 +11,12 @@ Source1: https://www.apache.org/licenses/LICENSE-2.0.txt BuildArch: noarch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif %description Common Maven POM file for HttpComponents. This project should be