some distros don't support %elif

OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant?expand=0&rev=215
This commit is contained in:
Fridrich Strba 2024-11-05 05:29:05 +00:00 committed by Git OBS Bridge
parent 2ce39da0e1
commit 43ab17a15f

View File

@ -25,36 +25,35 @@
%bcond_with junit5
%bcond_without antlr
Name: ant-antlr
%elif "%{flavor}" == "junit"
Summary: Antlr Task for ant
%else
%if "%{flavor}" == "junit"
%bcond_with bootstrap
%bcond_without junit
%bcond_with junit5
%bcond_with antlr
Name: ant-junit
%elif "%{flavor}" == "junit5"
Summary: Optional junit tasks for ant
%else
%if "%{flavor}" == "junit5"
%bcond_with bootstrap
%bcond_with junit
%bcond_without junit5
%bcond_with antlr
Name: ant-junit5
Summary: Optional junit tasks for ant
%else
%bcond_without bootstrap
%bcond_with junit
%bcond_with junit5
%bcond_with antlr
Name: ant
Summary: Java-based build tool
%endif
%endif
%endif
Version: 1.10.15
Release: 0
%if "%{flavor}" == "ant-antlr"
#Summary: Antlr Task for ant
%elif "%{flavor}" == "ant-junit"
#Summary: Optional junit tasks for ant
%elif "%{flavor}" == "ant-junit5"
#Summary: Optional junit tasks for ant
%else
Summary: Java-based build tool
%endif
License: Apache-2.0
Group: Development/Tools/Building
URL: https://ant.apache.org/