From 985b4838d0d18570c9c6764d305a24fc10a7711e Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Apr 16 2021 13:46:23 +0000 Subject: Conditionalize buildrequires in bootstrap mode --- diff --git a/objectweb-asm.spec b/objectweb-asm.spec index d493c4c..51111ca 100644 --- a/objectweb-asm.spec +++ b/objectweb-asm.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Name: objectweb-asm Version: 9.0 Release: 1%{?dist} @@ -19,6 +21,9 @@ Source7: https://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/a Source9: generate-tarball.sh BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%endif # Explicit javapackages-tools requires since asm-processor script uses # /usr/share/java-utils/java-functions