diff --git a/jflex.spec b/jflex.spec index 8c8f242..6204fe6 100644 --- a/jflex.spec +++ b/jflex.spec @@ -1,3 +1,5 @@ +%bcond_without bootstrap + Summary: Fast Scanner Generator Name: jflex Version: 1.7.0 @@ -14,11 +16,17 @@ Source4: %{name}.1 Source5: create-tarball.sh BuildRequires: maven-local +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else BuildRequires: mvn(java_cup:java_cup) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) +%endif +%if %{without bootstrap} BuildRequires: jflex +%endif # Explicit javapackages-tools requires since scripts use # /usr/share/java-utils/java-functions