From 83869c8dab391dfb1c0c7fc1d701234d7ea6f5ad 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-logging.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache-commons-logging.spec b/apache-commons-logging.spec index 8f12ce5..e7e0434 100644 --- a/apache-commons-logging.spec +++ b/apache-commons-logging.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: apache-commons-logging Version: 1.2 Release: 15%{?dist} @@ -13,12 +15,16 @@ Patch0: 0001-Generate-different-Bundle-SymbolicName-for-different.patch Patch1: 0002-Port-to-maven-jar-plugin-3.0.0.patch BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(javax.servlet:servlet-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif %description The commons-logging package provides a simple, component oriented