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