|
|
|
@ -3,6 +3,11 @@
|
|
|
|
|
%global with_sasl2 yes
|
|
|
|
|
%global with_milter yes
|
|
|
|
|
%global with_ldap yes
|
|
|
|
|
%if 0%{?rhel} < 9
|
|
|
|
|
%global with_nis yes
|
|
|
|
|
%else
|
|
|
|
|
%global with_nis no
|
|
|
|
|
%endif
|
|
|
|
|
%global enable_pie yes
|
|
|
|
|
|
|
|
|
|
%global sendmailcf %{_datadir}/sendmail-cf
|
|
|
|
@ -16,10 +21,15 @@
|
|
|
|
|
# hardened build if not overridden
|
|
|
|
|
%{!?_hardened_build:%global _hardened_build 1}
|
|
|
|
|
|
|
|
|
|
%if "%{with_nis}" == "yes"
|
|
|
|
|
%global nis_cflags -DNIS
|
|
|
|
|
%global nis_ldadd -lnsl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: A widely used Mail Transport Agent (MTA)
|
|
|
|
|
Name: sendmail
|
|
|
|
|
Version: 8.16.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
License: Sendmail
|
|
|
|
|
URL: http://www.sendmail.org/
|
|
|
|
|
|
|
|
|
@ -84,9 +94,13 @@ Patch23: sendmail-8.16.1-sasl2-in-etc.patch
|
|
|
|
|
# upstream reserved option ID 0xe7 for testing of this new feature, #576643
|
|
|
|
|
Patch25: sendmail-8.16.1-qos.patch
|
|
|
|
|
Patch26: sendmail-8.16.1-libmilter-socket-activation.patch
|
|
|
|
|
Patch27: sendmail-8.16.1-openssl-3.0-fix.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: libdb-devel
|
|
|
|
|
%if "%{with_nis}" == "yes"
|
|
|
|
|
BuildRequires: libnsl2-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: tinycdb-devel
|
|
|
|
|
BuildRequires: groff
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
@ -191,6 +205,7 @@ cp devtools/M4/UNIX/{,shared}library.m4
|
|
|
|
|
%patch23 -p1 -b .sasl2-in-etc
|
|
|
|
|
%patch25 -p1 -b .qos
|
|
|
|
|
%patch26 -p1 -b .libmilter-socket-activation
|
|
|
|
|
%patch27 -p1 -b .openssl-3.0-fix
|
|
|
|
|
|
|
|
|
|
for f in RELEASE_NOTES contrib/etrn.0; do
|
|
|
|
|
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
|
|
|
@ -202,11 +217,11 @@ sed -i 's|/usr/local/bin/perl|%{_bindir}/perl|' contrib/*.pl
|
|
|
|
|
%build
|
|
|
|
|
# generate redhat config file
|
|
|
|
|
cat > redhat.config.m4 << EOF
|
|
|
|
|
define(\`confMAPDEF', \`-DNEWDB -DCDB -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
|
|
|
|
|
define(\`confMAPDEF', \`-DNEWDB -DCDB %{?nis_cflags} -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
|
|
|
|
|
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
|
|
|
|
|
define(\`confENVDEF', \`-I%{_includedir}/libdb -I%{_prefix}/kerberos/include -Wall -DXDEBUG=0 -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_LINUX_MHNL -D_FFR_QOS -D_FILE_OFFSET_BITS=64 -DHAS_GETHOSTBYNAME2')
|
|
|
|
|
define(\`confLIBDIRS', \`-L%{_prefix}/kerberos/%{_lib}')
|
|
|
|
|
define(\`confLIBS', \`-lnsl -lcrypt -ldb -lcdb -lresolv')
|
|
|
|
|
define(\`confLIBS', \`%{?nis_ldadd} -lcrypt -ldb -lcdb -lresolv')
|
|
|
|
|
%{?_hardened_build:define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')}
|
|
|
|
|
define(\`confMANOWN', \`root')
|
|
|
|
|
define(\`confMANGRP', \`root')
|
|
|
|
@ -694,6 +709,31 @@ exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-10
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-9
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri May 7 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-8
|
|
|
|
|
- Added support for openssl-3.0
|
|
|
|
|
Resolves: rhbz#1953504
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 8.16.1-7
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Thu Mar 25 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-6
|
|
|
|
|
- Disable NIS support for RHEL9+
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 8.16.1-5
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.16.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 2 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 8.16.1-3
|
|
|
|
|
- Enabled CDB map support
|
|
|
|
|
Related: rhbz#1781181
|
|
|
|
|