]> git.pld-linux.org Git - packages/msmtp.git/blobdiff - msmtp.spec
- sendmail links released in subpackage msmtp-sendmail to avoid
[packages/msmtp.git] / msmtp.spec
index 3043eddc48d6e2a8a5eb9bf6dcb0b6b63b416823..f8ace1d1cca77cfc4832616920697450d2b91682 100644 (file)
@@ -1,14 +1,20 @@
 Summary:       SMTP "plugin" for MUAs
 Summary(pl):   "Wtyczka" SMTP dla klientów pocztowych (MUA)
 Name:          msmtp
-Version:       0.4.2
-Release:       1
-License:       GPL
+Version:       1.4.7
+Release:       2       
+License:       GPL v2
 Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 050b077df6f5dca3067f34c8069744df
+Source0:       http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
+# Source0-md5: 9c87a1f40e05dae4896622b56ec71b56
+Patch0:                %{name}-home_etc.patch
+Source1:       %{name}rc
 URL:           http://msmtp.sourceforge.net/
-BuildRequires: openssl-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gnutls-devel >= 1.2.0
+BuildRequires: gsasl-devel
+BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -16,8 +22,9 @@ 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
@@ -29,10 +36,11 @@ Mutt that's just one additional line in the config file).
 
 %description -l pl
 msmtp to prosty program dzia³aj±cy jako "wtyczka SMTP" dla Mutta i
-prawdopodobnie innych klientów pocztowych (MUA - mail user agents).
+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±:
-- obs³ugê SMTP AUTH - metod PLAIN, LOGIN i CRAM-MD5
+- 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
@@ -42,28 +50,71 @@ darmowych kont e-mail), kt
 
 Wystarczy przekazaæ klientowi pocztowemu, aby wywo³ywa³ msmtp zamiast
 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
-konfiguracyjnym).
+konfiguracyjnym) lub zrobienie dowi±zania symbolicznego do
+/usr/sbin/sendmail.
+
+%package sendmail
+Summary:       msmtp - sendmail symlinks
+Summary(pl):   msmtp - dowi±zania symboliczne do sendmail'a
+Group:         Networking/Daemons
+# Should be replaced with sth like P/O sendmail-wrapper
+Provides:      smtpdaemon
+Obsoletes:     smtpdaemon
+# Provides: sendmail-wrapper
+# Obsoletes: sendmail-wrapper
+Requires:      %{name} = %{version}-%{release}
+
+%description sendmail
+msmtp sendmail symlinks.
+
+%description -l pl sendmail
+Dowi±zania symboliczne msmtp do sendmaila.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%{__make} \
-        CC="%{__cc}" \
-        CFLAGS="%{rpmcflags}"
+%{__aclocal} -I gnulib/m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_prefix}/lib,%{_sysconfdir}}
+
+%{__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
 
-install msmtp $RPM_BUILD_ROOT%{_bindir}/msmtp
-install msmtp.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%find_lang %{name}
+
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README THANKS
+%doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
 %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.131135 seconds and 4 git commands to generate.