]> git.pld-linux.org Git - packages/msmtp.git/blame - msmtp.spec
up to 1.8.25
[packages/msmtp.git] / msmtp.spec
CommitLineData
69c7cea9 1Summary: SMTP "plugin" for MUAs
d48c2081 2Summary(pl.UTF-8): "Wtyczka" SMTP dla klientów pocztowych (MUA)
69c7cea9 3Name: msmtp
dde642e6 4Version: 1.8.25
052b3806 5Release: 1
4cec2079 6License: GPL v3+
3d4b1863 7Group: Networking/Utilities
50c3c686 8#Source0Download: https://marlam.de/msmtp/download/
f8a70560 9Source0: https://marlam.de/msmtp/releases/%{name}-%{version}.tar.xz
dde642e6 10# Source0-md5: 8d03759675907c1cacde0e9084bba751
de550e53 11Patch0: %{name}-home_etc.patch
50c3c686 12Patch1: %{name}-info.patch
4af4f374 13Source1: %{name}rc
f8a70560 14URL: https://marlam.de/msmtp/
50c3c686 15BuildRequires: autoconf >= 2.50
b6bb3cf1
JP
16BuildRequires: automake >= 1:1.11.1
17BuildRequires: gettext-tools
50c3c686
JB
18# with AI_IDN support (or libidn2-devel)
19BuildRequires: glibc-devel >= 6:2.4
20BuildRequires: gnutls-devel >= 3.4
4a896a76 21BuildRequires: gsasl-devel
b6bb3cf1 22BuildRequires: libsecret-devel
2c2f3e5b 23BuildRequires: pkgconfig
a0dc171b 24BuildRequires: tar >= 1:1.22
50c3c686 25BuildRequires: texinfo
a0dc171b 26BuildRequires: xz
69c7cea9 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30msmtp is a simple program that works as an "SMTP plugin" for Mutt and
31probably other MUAs (mail user agents). It forwards mails to an SMTP
32server (for example at a free mail provider) which does the delivery.
33Features 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
43Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
44Mutt that's just one additional line in the config file).
45
a3c8dcd6
JR
46%description -l pl.UTF-8
47msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i
48innych klientów pocztowych (MUA - mail user agents). Przekierowuje
49wiadomości do serwera SMTP (na przykład providera darmowych kont
50e-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 60Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast
3faf19b1 61/usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
bdcdfe8c 62konfiguracyjnym).
69c7cea9 63
062db315 64%package sendmail
52d2b940 65Summary: msmtp sendmail compatible wrapper
d48c2081 66Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila
062db315 67Group: Networking/Daemons
062db315 68Requires: %{name} = %{version}-%{release}
69
70%description sendmail
52d2b940 71msmtp sendmail compatible wrapper.
062db315 72
a3c8dcd6
JR
73%description sendmail -l pl.UTF-8
74Dowią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
96rm -rf $RPM_BUILD_ROOT
bb718af2 97install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}}
69c7cea9 98
9b455e48 99%{__make} install \
d9683ff4 100 DESTDIR=$RPM_BUILD_ROOT
330a6d9c 101
4af4f374 102install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
bb718af2 103ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
4af4f374 104ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
15393a05 105
e53a80bd
MWP
106%find_lang %{name}
107
4af4f374 108rm -f $RPM_BUILD_ROOT%{_infodir}/dir
237af9af 109rm -f scripts/Makefile*
4af4f374 110
f5cd2b5d
JB
111%clean
112rm -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
This page took 0.321137 seconds and 5 git commands to generate.