Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
libvirt-java.spec.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt-java.spec.in b/libvirt-java.spec.in
index 034d511..1d7fa43 100644
--- a/libvirt-java.spec.in
+++ b/libvirt-java.spec.in
@@ -20,7 +20,9 @@ Requires: java >= @java.required@
Requires: jpackage-utils
BuildRequires: ant
BuildRequires: jna
+%if 0%{?rhel} != 8
BuildRequires: ant-junit
+%endif
BuildRequires: java-devel >= @java.required@
BuildRequires: jpackage-utils
@@ -68,7 +70,9 @@ cp -r target/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{_javadocdir}/%{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%check
+%if 0%{?rhel} != 8
ant test
+%endif
%clean
rm -rf %{buildroot}
--
2.26.2