diff --git a/postfix.spec b/postfix.spec index c784d14..895d7b9 100644 --- a/postfix.spec +++ b/postfix.spec @@ -114,9 +114,6 @@ Patch13: pflogsumm-1.1.5-syslog-name-underscore-fix.patch # Determine the different packages required for building postfix BuildRequires: make -%if %{with db} -BuildRequires: libdb-devel -%endif BuildRequires: perl-generators BuildRequires: pkgconfig BuildRequires: zlib-devel @@ -131,6 +128,7 @@ BuildRequires: sed BuildRequires: libnsl2-devel %endif +%{?with_db:BuildRequires: libdb-devel} %{?with_ldap:BuildRequires: openldap-devel} %{?with_lmdb:BuildRequires: lmdb-devel} %{?with_sasl:BuildRequires: cyrus-sasl-devel}