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