diff --git a/sendmail.spec b/sendmail.spec index 08f09b5776a651691e08d92020659cd6dc5c1df1..c926152d9dec9387c867280156148c32d9f152dd 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -1,6 +1,6 @@ Name: sendmail Version: 8.18.1 -Release: 2 +Release: 3 Summary: A classic mail transfer agent from the Unix world License: Sendmail URL: http://www.sendmail.org/ @@ -24,11 +24,13 @@ Source15: sendmail-etc-mail-trusted-users BuildRequires: openssl-devel openldap-devel libnsl2-devel gdbm-devel BuildRequires: cyrus-sasl-devel groff ghostscript m4 systemd setup >= 2.5.31-1 BuildRequires: gcc +BuildRequires: libdb-devel Requires: bash >= 2.0 setup >= 2.5.31-1 %{_sbindir}/saslauthd Requires(pre): shadow-utils Requires(post): systemd systemd-sysv coreutils %{_sbindir}/alternatives openssl Requires(preun): systemd %{_sbindir}/alternatives Requires(postun): systemd coreutils %{_sbindir}/alternatives +Requires: procmail Provides: MTA smtpdaemon server(smtp) Provides: sendmail-cf @@ -95,14 +97,14 @@ cp devtools/M4/UNIX/library.m4 devtools/M4/UNIX/sharedlibrary.m4 %set_build_flags cat << EOF > config.m4 -define(\`confMAPDEF', \`-DNDBM -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1') +define(\`confMAPDEF', \`-DHASFLOCK -DNEWDB -DNDBM -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1') define(\`confOPTIMIZE', \`\`\`\`${CFLAGS}'''') -define(\`confLIBS', \`-lgdbm -lgdbm_compat -lnsl -lcrypt -lresolv') +define(\`confLIBS', \`-lgdbm -lgdbm_compat -lnsl -lcrypt -lresolv -ldb') define(\`confSTDIR', \`%{_localstatedir}/log/mail') define(\`confLDOPTS', \`${LDFLAGS}') define(\`confMANOWN', \`root') define(\`confMANGRP', \`root') -define(\`confENVDEF', \`-I/usr/kerberos/include -Wall -DXDEBUG=0') +define(\`confENVDEF', \`-I%{_includedir}/libdb -I/usr/kerberos/include -Wall -DXDEBUG=0') define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}') define(\`confMANMODE', \`644') define(\`confMAN1SRC', \`1') @@ -469,6 +471,12 @@ exit 0 %changelog +* Fri Sep 12 2025 zhangshaoning - 8.18.1-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:recompile with -DNEWDB for hash support + * Wed Feb 12 2025 xinghe - 8.18.1-2 - Type:bugfix - ID:NA