Skip test for EL8 as it has no openldap-servers

This commit is contained in:
Daniel Berteaud 2020-11-15 17:34:02 +01:00
parent ae1bc30198
commit da121b6c7a
1 changed files with 5 additions and 0 deletions

View File

@ -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}