From da121b6c7a15966dd5b22b2bbc80b0cf3efc628b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 15 Nov 2020 17:34:02 +0100 Subject: [PATCH] Skip test for EL8 as it has no openldap-servers --- lua-ldap.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua-ldap.spec b/lua-ldap.spec index 7ede563..95e5ca7 100644 --- a/lua-ldap.spec +++ b/lua-ldap.spec @@ -47,8 +47,10 @@ BuildRequires: gcc BuildRequires: lua-devel BuildRequires: openldap-devel # for tests +%if 0%{?rhel} < 8 BuildRequires: lua BuildRequires: openldap-servers +%endif %description LuaLDAP is a simple interface from Lua to an LDAP client. It enables a Lua @@ -104,8 +106,11 @@ make %{?_smp_mflags} popd %endif +# RHEL 8 has no openldap-servers package, so skip tests +%if 0%{?rhel} < 8 %check make check +%endif %install make install DESTDIR=%{buildroot}