]> git.pld-linux.org Git - packages/msmtp.git/blobdiff - msmtp.spec
- revert unthinkable adapter, see also r1.58
[packages/msmtp.git] / msmtp.spec
index c650263ae6b03b083517e5225f511ad2fc33ce0e..ab183c236bee28d880f94e28b09ed5182139e667 100644 (file)
@@ -1,12 +1,18 @@
 Summary:       SMTP "plugin" for MUAs
+Summary(pl.UTF-8):     "Wtyczka" SMTP dla klientów pocztowych (MUA)
 Name:          msmtp
-Version:       0.3.0
-Release:       0.1
-License:       GPL
-Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/sourceforge/%name/%{name}-%{version}.tar.gz
-# Source0-md5: 08d74918c252a540a640c27729e0cd9c
-BuildRequires: openssl-devel
+Version:       1.4.28
+Release:       1
+License:       GPL v3+
+Group:         Networking/Utilities
+Source0:       http://downloads.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
+# Source0-md5: 14740478dc9d1f52ec97a415e3373fc7
+Patch0:                %{name}-home_etc.patch
+Source1:       %{name}rc
+URL:           http://msmtp.sourceforge.net/
+BuildRequires: gnutls-devel >= 1.2.0
+BuildRequires: gsasl-devel
+BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -14,36 +20,91 @@ msmtp is a simple program that works as an "SMTP plugin" for Mutt and
 probably other MUAs (mail user agents). It forwards mails to an SMTP
 server (for example at a free mail provider) which does the delivery.
 Features include:
-- SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5
+- PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
 - TLS encrypted connections
+- Internationalized Domain Names (IDN) support
 - IPv6 support
 - robustness
 - detailed error messages if something goes wrong (including the full
   answer of the SMTP server)
-- sendmail compatible exit codes (which most MUAs understand). Simply
-  tell your MUA to call msmtp instead of /usr/sbin/sendmail (with Mutt
-  that's just one additional line in the config file).
+- sendmail compatible exit codes (which most MUAs understand).
+
+Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
+Mutt that's just one additional line in the config file).
+
+%description -l pl.UTF-8
+msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i
+innych klientów pocztowych (MUA - mail user agents). Przekierowuje
+wiadomości do serwera SMTP (na przykład providera darmowych kont
+e-mail), który je dostarcza. Możliwości obejmują:
+- uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
+- obsługę Internationalized Domain Names (IDN)
+- szyfrowane połączenia TLS
+- obsługę IPv6
+- szczegółowe komunikaty błędów w przypadku niepowodzenia (włącznie z
+  pełną odpowiedzią serwera SMTP)
+- kody wyjścia kompatybilne z sendmailem (które rozumie większość
+  MUA).
+
+Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast
+/usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
+konfiguracyjnym).
+
+%package sendmail
+Summary:       msmtp sendmail compatible wrapper
+Summary(pl.UTF-8):     msmtp - dowiązania symboliczne do sendmaila
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     /usr/lib/sendmail
+
+%description sendmail
+msmtp sendmail compatible wrapper.
+
+%description sendmail -l pl.UTF-8
+Dowiązania symboliczne msmtp do sendmaila.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__make} \
-        CC="%{__cc}" \
-        CFLAGS="%{rpmcflags}"
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}}
 
-install msmtp $RPM_BUILD_ROOT%{_bindir}/msmtp
-install msmtp.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
+ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
+ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
+
+%find_lang %{name}
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+rm -f scripts/Makefile*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%post  -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog README THANKS
+%doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example scripts
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/msmtp*
+%{_infodir}/msmtp*
+
+%files sendmail
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(755,root,root) %{_sbindir}/*
+/usr/lib/sendmail
This page took 0.116958 seconds and 4 git commands to generate.