From 9c28b8103801c0e2ad1a231fa25cc35655d0a5ec 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 --- qdox.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qdox.spec b/qdox.spec index 12ac045..2d11af1 100644 --- a/qdox.spec +++ b/qdox.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + %global upstream_version %(echo %{version} | tr '~' '-') Name: qdox @@ -17,10 +19,13 @@ Source2: generate-tarball.sh Patch0: 0001-Port-to-JFlex-1.7.0.patch BuildRequires: maven-local -BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) - BuildRequires: byaccj +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: jflex +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +%endif %description QDox is a high speed, small footprint parser