diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec index 313b1c7..2fda30c 100644 --- a/bind-dyndb-ldap.spec +++ b/bind-dyndb-ldap.spec @@ -12,7 +12,7 @@ Name: bind-dyndb-ldap Version: 11.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: LDAP back-end plug-in for BIND License: GPLv2+ @@ -31,10 +31,12 @@ BuildRequires: automake, autoconf, libtool %if %{with bind_pkcs11} BuildRequires: bind-pkcs11-devel >= %{bind_version} BuildRequires: make -Requires: bind-pkcs11 >= %{bind_version}, bind-pkcs11-utils >= %{bind_version} +Requires(pre): bind-pkcs11 >= %{bind_version} +Requires: bind-pkcs11-utils >= %{bind_version} %else Requires: softhsm >= %{softhsm_version} Requires: openssl-pkcs11 >= %{openssl_pkcs11_version} +Requires(pre): bind >= %{bind_version} %endif %description @@ -64,6 +66,8 @@ rm -r %{buildroot}%{_datadir}/doc/%{name} %post +[ -f /etc/named.conf ] || exit 0 + # Transform named.conf if it still has old-style API. PLATFORM=$(uname -m) @@ -111,6 +115,10 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf %changelog +* Thu Dec 17 2020 Alexander Bokovoy - 11.6-2 +- Fix requires to bind: require bind installed before bind-dyndb-ldap + as we depend on named group + * Mon Nov 23 2020 Alexander Bokovoy - 11.6-1 - Upstream release 11.6 - Use reference counting semantics in destructors according to BIND version