]>
Commit | Line | Data |
---|---|---|
1 | Summary: SMTP "plugin" for MUAs | |
2 | Summary(pl.UTF-8): "Wtyczka" SMTP dla klientów pocztowych (MUA) | |
3 | Name: msmtp | |
4 | Version: 1.8.15 | |
5 | Release: 1 | |
6 | License: GPL v3+ | |
7 | Group: Networking/Utilities | |
8 | Source0: https://marlam.de/msmtp/releases/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 45eddbc0e93d7eb77c12ab75b5e1e6be | |
10 | Patch0: %{name}-home_etc.patch | |
11 | Source1: %{name}rc | |
12 | URL: https://marlam.de/msmtp/ | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake >= 1:1.11.1 | |
15 | BuildRequires: gettext-tools | |
16 | BuildRequires: gnutls-devel >= 1.2.0 | |
17 | BuildRequires: gsasl-devel | |
18 | BuildRequires: libidn-devel | |
19 | BuildRequires: libsecret-devel | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: tar >= 1:1.22 | |
22 | BuildRequires: xz | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | msmtp is a simple program that works as an "SMTP plugin" for Mutt and | |
27 | probably other MUAs (mail user agents). It forwards mails to an SMTP | |
28 | server (for example at a free mail provider) which does the delivery. | |
29 | Features include: | |
30 | - PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications | |
31 | - TLS encrypted connections | |
32 | - Internationalized Domain Names (IDN) support | |
33 | - IPv6 support | |
34 | - robustness | |
35 | - detailed error messages if something goes wrong (including the full | |
36 | answer of the SMTP server) | |
37 | - sendmail compatible exit codes (which most MUAs understand). | |
38 | ||
39 | Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with | |
40 | Mutt that's just one additional line in the config file). | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i | |
44 | innych klientów pocztowych (MUA - mail user agents). Przekierowuje | |
45 | wiadomości do serwera SMTP (na przykład providera darmowych kont | |
46 | e-mail), który je dostarcza. Możliwości obejmują: | |
47 | - uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM | |
48 | - obsługę Internationalized Domain Names (IDN) | |
49 | - szyfrowane połączenia TLS | |
50 | - obsługę IPv6 | |
51 | - szczegółowe komunikaty błędów w przypadku niepowodzenia (włącznie z | |
52 | pełną odpowiedzią serwera SMTP) | |
53 | - kody wyjścia kompatybilne z sendmailem (które rozumie większość | |
54 | MUA). | |
55 | ||
56 | Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast | |
57 | /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku | |
58 | konfiguracyjnym). | |
59 | ||
60 | %package sendmail | |
61 | Summary: msmtp sendmail compatible wrapper | |
62 | Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila | |
63 | Group: Networking/Daemons | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description sendmail | |
67 | msmtp sendmail compatible wrapper. | |
68 | ||
69 | %description sendmail -l pl.UTF-8 | |
70 | Dowiązania symboliczne msmtp do sendmaila. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
77 | %{__gettextize} | |
78 | %{__aclocal} | |
79 | %{__autoheader} | |
80 | %{__automake} | |
81 | %{__autoconf} | |
82 | %configure \ | |
83 | --disable-silent-rules \ | |
84 | --with-libgsasl \ | |
85 | --with-libidn \ | |
86 | --with-libsecret \ | |
87 | --with-tls=gnutls | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}} | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc | |
98 | ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail | |
99 | ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail | |
100 | ||
101 | %find_lang %{name} | |
102 | ||
103 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
104 | rm -f scripts/Makefile* | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/postshell | |
110 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
111 | ||
112 | %postun -p /sbin/postshell | |
113 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
114 | ||
115 | %files -f %{name}.lang | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example scripts | |
118 | %attr(755,root,root) %{_bindir}/* | |
119 | %{_mandir}/man1/msmtp* | |
120 | %{_infodir}/msmtp* | |
121 | ||
122 | %files sendmail | |
123 | %defattr(644,root,root,755) | |
124 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
125 | %attr(755,root,root) %{_sbindir}/* | |
126 | /usr/lib/sendmail |