]> git.pld-linux.org Git - packages/msmtp.git/blob - msmtp.spec
- updated to 1.4.6
[packages/msmtp.git] / msmtp.spec
1 Summary:        SMTP "plugin" for MUAs
2 Summary(pl):    "Wtyczka" SMTP dla klientów pocztowych (MUA)
3 Name:           msmtp
4 Version:        1.4.6
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Daemons
8 Source0:        http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
9 # Source0-md5:  0f76ca980151db88d5c26dda995c8701
10 Patch0:         %{name}-home_etc.patch
11 Source1:        %{name}rc
12 URL:            http://msmtp.sourceforge.net/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  gsasl-devel >= 0.2.4
16 BuildRequires:  pkgconfig
17 Provides:       smtpdaemon
18 Obsoletes:      smtpdaemon
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 msmtp is a simple program that works as an "SMTP plugin" for Mutt and
23 probably other MUAs (mail user agents). It forwards mails to an SMTP
24 server (for example at a free mail provider) which does the delivery.
25 Features include:
26 - PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
27 - TLS encrypted connections
28 - Internationalized Domain Names (IDN) support
29 - IPv6 support
30 - robustness
31 - detailed error messages if something goes wrong (including the full
32   answer of the SMTP server)
33 - sendmail compatible exit codes (which most MUAs understand).
34
35 Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
36 Mutt that's just one additional line in the config file).
37
38 %description -l pl
39 msmtp to prosty program dzia³aj±cy jako "wtyczka SMTP" dla Mutta i
40 innych klientów pocztowych (MUA - mail user agents).
41 Przekierowuje wiadomo¶ci do serwera SMTP (na przyk³ad providera
42 darmowych kont e-mail), który je dostarcza. Mo¿liwo¶ci obejmuj±:
43 - uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
44 - obs³ugê Internationalized Domain Names (IDN)
45 - szyfrowane po³±czenia TLS
46 - obs³ugê IPv6
47 - szczegó³owe komunikaty b³êdów w przypadku niepowodzenia (w³±cznie z
48   pe³n± odpowiedzi± serwera SMTP)
49 - kody wyj¶cia kompatybilne z sendmailem (które rozumie wiêkszo¶æ
50   MUA).
51
52 Wystarczy przekazaæ klientowi pocztowemu, aby wywo³ywa³ msmtp zamiast
53 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
54 konfiguracyjnym) lub zrobienie dowi±zania symbolicznego do
55 /usr/sbin/sendmail.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 %{__aclocal} -I gnulib/m4
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man1,%{_prefix}/lib,%{_sysconfdir}}
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
77 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
78 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
79
80 %find_lang %{name}
81
82 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
89
90 %postun
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
92
93 %files -f %{name}.lang
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
96 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
97 %attr(755,root,root) %{_bindir}/*
98 %attr(755,root,root) %{_sbindir}/*
99 %{_mandir}/man1/msmtp*
100 %{_infodir}/msmtp*
101 %{_prefix}/lib/sendmail
This page took 0.230271 seconds and 3 git commands to generate.