-#
# TODO:
# - make sid-milter support:
# http://sourceforge.net/projects/sid-milter/
# http://www.sendmail.net/
# - http://blue-labs.org/clue/bluelabs.patch-8.12.3 has been updated upstream
+# - move compilation from install to build section, fix re-entrancy of install
+# - add tests bcond and/or disable tests tha fail on (AC-)builders
#
# Conditional build:
%bcond_without ldap # without LDAP support
Summary(tr): Elektronik posta hizmetleri sunucusu
Summary(uk): ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
Name: sendmail
-Version: 8.13.6
-Release: 5
+Version: 8.13.8
+Release: 2
License: BSD
Group: Networking/Daemons
Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
-# Source0-md5: 484cca51f74b5e562b3cf119ceb2f900
+# Source0-md5: 5f29c94b42e0bb74d546b2ae84203a1e
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.aliases
Patch5: %{name}-redirect.patch
Patch6: %{name}-hprescan-dos.patch
Patch7: http://blue-labs.org/clue/bluelabs.patch-8.12.3
+URL: http://www.sendmail.org/
BuildRequires: cyrus-sasl-devel
BuildRequires: db-devel >= 4.1.25
BuildRequires: man
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
%{?with_tls:BuildRequires: openssl-devel >= 0.9.7d}
%{?with_pgsql:BuildRequires: postgresql-devel}
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.310
+BuildRequires: sed >= 4.0
Requires(post): awk
Requires(post): textutils
Requires(post,preun): /sbin/chkconfig
Sendmail est un agent de transport de courrier, qui est le programme
transférent le courrier d'une machine à l'autre. Sendmail implémente
une facilité générale de routage de courrier entre les réseaux, permet
-l'\"aliasing\" et le \"forwarding\", un routage automatique sur les
+l'"aliasing" et le "forwarding", un routage automatique sur les
passerelles du réseau, et une configuration flexible.
%description -l ko
# Ac-specific hack - ac-i386 builder has not fully operational shm
%ifarch i386 i586 i686 amd64
-%{__perl} -pi -e 's/^(smtest.*t-shm)/dnl $1/' libsm/Makefile.m4
+%{__sed} -i -e 's/^\(smtest.*t-shm\)/dnl \1/' libsm/Makefile.m4
%endif
%build
echo "define(\`confCC', \`%{__cc}')" >> config.m4
echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
echo "APPENDDEF(\`confINCDIRS', \`-I/usr/include/sasl')" >> config.m4
-echo "define(\`confLIBSEARCHPATH', \`/%{_lib} /usr/%{_lib}')" >> config.m4
+echo "define(\`confLIBSEARCHPATH', \`/%{_lib} %{_prefix}/%{_lib}')" >> config.m4
echo "define(\`confLIBSEARCH', \`db resolv')" >> config.m4
%if 0%{!?debug:1}
echo "define(\`confLDOPTS', \`-s')" >> config.m4
# install the cf files
cd cf
rm -f cf/{Build,Makefile} feature/*~
-cp -ar * $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
+cp -a * $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
cd -
# sendmail.{cf,mc}
> $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
#"vim ruuls
-ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
+ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
# dangling symlinks
-for f in hoststat mailq newaliases purgestat ; do
- ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
+for f in hoststat mailq newaliases purgestat; do
+ ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
done
-for map in virtusertable access domaintable mailertable ; do
+for map in virtusertable access domaintable mailertable; do
touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
$RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
$RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable
install %{SOURCE14} $RPM_BUILD_ROOT/etc/monit/
-# make rpm strip possible
-chmod u+w $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}}/*
-
mv -f smrsh/README README.smrsh
mv -f cf/README README.cf
mv -f doc/op/op.me .