[libvirt-java PATCH 4/6] rpm: skip junit tests in RHEL-8 build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux