diff --git a/sendmail.spec b/sendmail.spec index 53a1987d54289653724e04d3ec7959695d5c528a..a92845bbaded609f2da92b658e07d48f869f8c5f 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -1,6 +1,6 @@ Name: sendmail Version: 8.17.2 -Release: 3 +Release: 4 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 +* Mon Jul 14 2025 zhangshaoning - 8.17.2-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:recompile with -DNEWDB for hash support + * Wed Feb 12 2025 xinghe - 8.17.2-3 - Type:bugfix - ID:NA