]> git.pld-linux.org Git - packages/msmtp.git/blame - msmtp.spec
- don't provide /usr/lib/sendmail. It's already provides; see rpm -q --fileprovide.
[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
7d3150f7 4Version: 1.4.12
1e8e6995 5Release: 2
ac9219c9 6License: GPL v2
69c7cea9 7Group: Networking/Daemons
9b455e48 8Source0: http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
7d3150f7 9# Source0-md5: ba5b61d5f7667d288f1cfadccfff8ac5
de550e53 10Patch0: %{name}-home_etc.patch
4af4f374 11Source1: %{name}rc
3faf19b1 12URL: http://msmtp.sourceforge.net/
5f88fde3
JB
13BuildRequires: autoconf >= 2.50
14BuildRequires: automake
4a896a76
KK
15BuildRequires: gnutls-devel >= 1.2.0
16BuildRequires: gsasl-devel
2c2f3e5b 17BuildRequires: pkgconfig
69c7cea9 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21msmtp is a simple program that works as an "SMTP plugin" for Mutt and
22probably other MUAs (mail user agents). It forwards mails to an SMTP
23server (for example at a free mail provider) which does the delivery.
24Features include:
0566e1b0 25- PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
69c7cea9 26- TLS encrypted connections
0566e1b0 27- Internationalized Domain Names (IDN) support
69c7cea9 28- IPv6 support
29- robustness
30- detailed error messages if something goes wrong (including the full
31 answer of the SMTP server)
3faf19b1
JB
32- sendmail compatible exit codes (which most MUAs understand).
33
34Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
35Mutt that's just one additional line in the config file).
36
a3c8dcd6
JR
37%description -l pl.UTF-8
38msmtp to prosty program działający jako "wtyczka SMTP" dla Mutta i
39innych klientów pocztowych (MUA - mail user agents). Przekierowuje
40wiadomości do serwera SMTP (na przykład providera darmowych kont
41e-mail), który je dostarcza. Możliwości obejmują:
0566e1b0 42- uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
a3c8dcd6
JR
43- obsługę Internationalized Domain Names (IDN)
44- szyfrowane połączenia TLS
45- obsługę IPv6
46- szczegółowe komunikaty błędów w przypadku niepowodzenia (włącznie z
47 pełną odpowiedzią serwera SMTP)
48- kody wyjścia kompatybilne z sendmailem (które rozumie większość
3faf19b1
JB
49 MUA).
50
a3c8dcd6 51Wystarczy przekazać klientowi pocztowemu, aby wywoływał msmtp zamiast
3faf19b1 52/usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
bdcdfe8c 53konfiguracyjnym).
69c7cea9 54
062db315 55%package sendmail
52d2b940 56Summary: msmtp sendmail compatible wrapper
d48c2081 57Summary(pl.UTF-8): msmtp - dowiązania symboliczne do sendmaila
062db315 58Group: Networking/Daemons
062db315 59Requires: %{name} = %{version}-%{release}
60
61%description sendmail
52d2b940 62msmtp sendmail compatible wrapper.
062db315 63
a3c8dcd6
JR
64%description sendmail -l pl.UTF-8
65Dowiązania symboliczne msmtp do sendmaila.
062db315 66
69c7cea9 67%prep
68%setup -q
de550e53 69%patch0 -p1
69c7cea9 70
71%build
366e8396 72%{__aclocal} -I gnulib/m4
d9683ff4 73%{__autoconf}
74%{__autoheader}
75%{__automake}
0566e1b0 76%configure
5f88fde3 77%{__make}
69c7cea9 78
79%install
80rm -rf $RPM_BUILD_ROOT
bdcdfe8c 81install -d $RPM_BUILD_ROOT{%{_sbindir},/usr/lib,%{_sysconfdir}}
69c7cea9 82
9b455e48 83%{__make} install \
d9683ff4 84 DESTDIR=$RPM_BUILD_ROOT
330a6d9c 85
4af4f374 86install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
062db315 87ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
4af4f374 88ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
15393a05 89
e53a80bd
MWP
90%find_lang %{name}
91
4af4f374
ER
92rm -f $RPM_BUILD_ROOT%{_infodir}/dir
93
f5cd2b5d
JB
94%clean
95rm -rf $RPM_BUILD_ROOT
96
e53a80bd 97%post
45a18a40 98[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
69c7cea9 99
f5cd2b5d
JB
100%postun
101[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
69c7cea9 102
330a6d9c 103%files -f %{name}.lang
69c7cea9 104%defattr(644,root,root,755)
6d780206 105%doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
69c7cea9 106%attr(755,root,root) %{_bindir}/*
107%{_mandir}/man1/msmtp*
6d780206 108%{_infodir}/msmtp*
062db315 109
110%files sendmail
111%defattr(644,root,root,755)
112%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
113%attr(755,root,root) %{_sbindir}/*
114/usr/lib/sendmail
This page took 0.060369 seconds and 4 git commands to generate.