+#
+# Conditional build:
+%bcond_without ldap # build without LDAP support
+#
Summary: Utilities to manage the passwd and shadow user information
Summary(pl): Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
Name: pwdutils
BuildRequires: gcc >= 5:3.2
BuildRequires: gettext-devel
BuildRequires: libselinux-devel
-BuildRequires: openldap-devel
+%{?with_ldap: BuildRequires: openldap-devel}
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: openslp-devel
BuildRequires: pam-devel
--enable-selinux \
--enable-slp \
--enable-ssl \
- --enable-ldap \
+ --%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
--enable-nls \
--disable-rpath
%{__make}