Minor spec improvement regarding libdb

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2023-11-02 13:59:52 +01:00
parent 6a2621e4d7
commit 9170621050

View File

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