-#
-Summary: esmtp
-Summary(pl): esmtp
+Summary: esmtp - relay-only Mail Transfer Agent
+Summary(pl.UTF-8): esmtp - MTA obsługujący tylko przekazywanie poczty do serwera (E)SMTP
Name: esmtp
-Version: 0.5.1
-Release: 0.1
-Epoch: 0
-License: GPL
-Group: Applications
-#Icon: -
+Version: 1.2
+Release: 2
+License: GPL v2
+Group: Networking/Utilities
Source0: http://dl.sourceforge.net/esmtp/%{name}-%{version}.tar.bz2
-# Source0-md5: 9f0b809e891a548910f099efc4315b02
+# Source0-md5: 79a9c1f9023d53f35bb82bf446150a72
URL: http://esmtp.sourceforge.net/
-BuildRequires: libesmtp-devel
+BuildRequires: libesmtp-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%description
-esmtp is a user configurable relay-only Mail Transfer
-Agent (MTA) with a sendmail compatible syntax. It's based on libESMTP
-supporting the AUTH (including the CRAM-MD5 and NTLM SASL mechanisms)
-and the StartTLS SMTP extensions.
+%description
+esmtp is a user configurable relay-only Mail Transfer Agent (MTA) with
+a sendmail compatible syntax. It's based on libESMTP supporting the
+AUTH (including the CRAM-MD5 and NTLM SASL mechanisms) and the
+StartTLS SMTP extensions.
-%description -l pl
-esmtp
+%description -l pl.UTF-8
+esmtp to konfigurowalny przez użytkownika MTA (Mail Transfer Agent) o
+składni kompatybilnej z sendmailem, obsługujący wyłącznie
+przekazywanie poczty do serwera (E)SMTP. Jest oparty na libESMTP,
+obsługuje AUTH (włącznie z mechanizmami SASL CRAM-MD5 i NTLM) oraz
+rozszerzenia SMTP StartTLS.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
%configure
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install sample.esmtprc $RPM_BUILD_ROOT%{_sysconfdir}/esmtprc
+
%clean
rm -rf $RPM_BUILD_ROOT
-%pre
-
-%post
-
-%preun
-
-%postun
-
%files
%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
%attr(755,root,root) %{_bindir}/*
-%doc %{_mandir}/man1/esmtp.1.gz
-%doc %{_mandir}/man5/esmtprc.5.gz
-#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{_mandir}/man1/esmtp.1*
+%{_mandir}/man5/esmtprc.5*