]> git.pld-linux.org Git - packages/msmtp.git/blame - msmtp.spec
up to 1.8.19
[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
b03838d4 4Version: 1.8.19
f8a70560 5Release: 1
4cec2079 6License: GPL v3+
3d4b1863 7Group: Networking/Utilities
f8a70560 8Source0: https://marlam.de/msmtp/releases/%{name}-%{version}.tar.xz
b03838d4 9# Source0-md5: 353162ef030f76465d1f9689df895a39
de550e53 10Patch0: %{name}-home_etc.patch
4af4f374 11Source1: %{name}rc
f8a70560 12URL: https://marlam.de/msmtp/
b6bb3cf1
JP
13BuildRequires: autoconf
14BuildRequires: automake >= 1:1.11.1
15BuildRequires: gettext-tools
4a896a76
KK
16BuildRequires: gnutls-devel >= 1.2.0
17BuildRequires: gsasl-devel
b6bb3cf1
JP
18BuildRequires: libidn-devel
19BuildRequires: libsecret-devel
2c2f3e5b 20BuildRequires: pkgconfig
a0dc171b
JP
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
69c7cea9 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26msmtp is a simple program that works as an "SMTP plugin" for Mutt and
27probably other MUAs (mail user agents). It forwards mails to an SMTP
28server (for example at a free mail provider) which does the delivery.
29Features include:
0566e1b0 30- PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
69c7cea9 31- TLS encrypted connections
0566e1b0 32- Internationalized Domain Names (IDN) support
69c7cea9 33- IPv6 support
34- robustness
35- detailed error messages if something goes wrong (including the full
36 answer of the SMTP server)
3faf19b1
JB
37- sendmail compatible exit codes (which most MUAs understand).
38
39Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
40Mutt that's just one additional line in the config file).
41
a3c8dcd6
JR
42%description -l pl.UTF-8
43msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i
44innych klientów pocztowych (MUA - mail user agents). Przekierowuje
45wiadomości do serwera SMTP (na przykład providera darmowych kont
46e-mail), który je dostarcza. Możliwości obejmują:
0566e1b0 47- uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
a3c8dcd6
JR
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ść
3faf19b1
JB
54 MUA).
55
a3c8dcd6 56Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast
3faf19b1 57/usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
bdcdfe8c 58konfiguracyjnym).
69c7cea9 59
062db315 60%package sendmail
52d2b940 61Summary: msmtp sendmail compatible wrapper
d48c2081 62Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila
062db315 63Group: Networking/Daemons
062db315 64Requires: %{name} = %{version}-%{release}
65
66%description sendmail
52d2b940 67msmtp sendmail compatible wrapper.
062db315 68
a3c8dcd6
JR
69%description sendmail -l pl.UTF-8
70Dowiązania symboliczne msmtp do sendmaila.
062db315 71
69c7cea9 72%prep
73%setup -q
de550e53 74%patch0 -p1
69c7cea9 75
76%build
b6bb3cf1
JP
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 \
234b49ca 87 --with-tls=gnutls
5f88fde3 88%{__make}
69c7cea9 89
90%install
91rm -rf $RPM_BUILD_ROOT
bb718af2 92install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}}
69c7cea9 93
9b455e48 94%{__make} install \
d9683ff4 95 DESTDIR=$RPM_BUILD_ROOT
330a6d9c 96
4af4f374 97install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
bb718af2 98ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
4af4f374 99ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
15393a05 100
e53a80bd
MWP
101%find_lang %{name}
102
4af4f374 103rm -f $RPM_BUILD_ROOT%{_infodir}/dir
237af9af 104rm -f scripts/Makefile*
4af4f374 105
f5cd2b5d
JB
106%clean
107rm -rf $RPM_BUILD_ROOT
108
834f2525
ER
109%post -p /sbin/postshell
110-/usr/sbin/fix-info-dir -c %{_infodir}
69c7cea9 111
834f2525
ER
112%postun -p /sbin/postshell
113-/usr/sbin/fix-info-dir -c %{_infodir}
69c7cea9 114
330a6d9c 115%files -f %{name}.lang
69c7cea9 116%defattr(644,root,root,755)
237af9af 117%doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example scripts
69c7cea9 118%attr(755,root,root) %{_bindir}/*
119%{_mandir}/man1/msmtp*
6d780206 120%{_infodir}/msmtp*
062db315 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}/*
bb718af2 126/usr/lib/sendmail
This page took 0.11361 seconds and 4 git commands to generate.