From ddf46129786e0fabbe608ce9f750d045e134f315 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 15:33:13 +0200 Subject: [PATCH] Conditionalize buildrequires in bootstrap mode --- slf4j.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/slf4j.spec b/slf4j.spec index f584c52..c5185dc 100644 --- a/slf4j.spec +++ b/slf4j.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + # Copyright (c) 2000-2009, JPackage Project # All rights reserved. # @@ -40,10 +42,14 @@ Source1: https://www.apache.org/licenses/LICENSE-2.0.txt BuildArch: noarch BuildRequires: maven-local-openjdk8 +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +%endif %description The Simple Logging Facade for Java or (SLF4J) is intended to serve