esmtp/esmtp.spec

62 lines
1.7 KiB
RPMSpec

Name: esmtp
Version: 1.2
Release: 2mamba
Summary: A user configurable relay-only MTA with a sendmail-compatible syntax
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://esmtp.sourceforge.net/
Source: http://downloads.sourceforge.net/project/esmtp/esmtp/%{version}/esmtp-%{version}.tar.bz2
Patch0: esmtp-1.2-libesmtp-1.1.0.patch
Patch1: esmtp-1.2-fix-segfault-on-empty-to-in-headers.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libesmtp-devel
## AUTOBUILDREQ-END
BuildRequires: libesmtp-devel >= 1.1.0
%description
ESMTP MTA is a user configurable relay-only MTA with a sendmail-compatible syntax, based on libESMTP and supporting the AUTH (including the CRAM-MD5 and NTLM SASL mechanisms) and the StartTLS SMTP extensions.
%debug_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .fix-segfault-on-empty-to-in-headers
autoconf
%build
%configure
%make CFLAGS="%{optflags} -lesmtp"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/esmtp
%{_bindir}/mailq
%{_bindir}/newaliases
%{_libdir}/sendmail
%{_sbindir}/sendmail
%{_mandir}/man1/esmtp.1*
%{_mandir}/man1/mailq.1*
%{_mandir}/man1/newaliases.1*
%{_mandir}/man1/sendmail.1*
%{_mandir}/man5/esmtprc.5*
%doc AUTHORS COPYING
%changelog
* Sat Nov 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-2mamba
- rebuilt with libesmtp 1.1.0
* Sat Jan 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created by silvan using the webbuild interface