Conditionalize buildrequires in bootstrap mode

This commit is contained in:
Mikolaj Izdebski 2021-04-16 15:33:13 +02:00
parent 7a2c7629ef
commit 9c28b81038

View File

@ -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