]> git.pld-linux.org Git - packages/msmtp.git/blob - msmtp.spec
- sendmail links released in subpackage msmtp-sendmail to avoid
[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:        2       
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 msmtp is a simple program that works as an "SMTP plugin" for Mutt and
22 probably other MUAs (mail user agents). It forwards mails to an SMTP
23 server (for example at a free mail provider) which does the delivery.
24 Features include:
25 - PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 and NTLM authentications
26 - TLS encrypted connections
27 - Internationalized Domain Names (IDN) support
28 - IPv6 support
29 - robustness
30 - detailed error messages if something goes wrong (including the full
31   answer of the SMTP server)
32 - sendmail compatible exit codes (which most MUAs understand).
33
34 Simply tell your MUA to call msmtp instead of /usr/sbin/sendmail (with
35 Mutt that's just one additional line in the config file).
36
37 %description -l pl
38 msmtp to prosty program dzia³aj±cy jako "wtyczka SMTP" dla Mutta i
39 innych klientów pocztowych (MUA - mail user agents).
40 Przekierowuje wiadomo¶ci do serwera SMTP (na przyk³ad providera
41 darmowych kont e-mail), który je dostarcza. Mo¿liwo¶ci obejmuj±:
42 - uwierzytelnianie PLAIN, LOGIN, CRAM-MD5, GSSAPI, DIGEST-MD5 i NTLM
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¶æ
49   MUA).
50
51 Wystarczy przekazaæ klientowi pocztowemu, aby wywo³ywa³ msmtp zamiast
52 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
53 konfiguracyjnym) lub zrobienie dowi±zania symbolicznego do
54 /usr/sbin/sendmail.
55
56 %package sendmail
57 Summary:        msmtp - sendmail symlinks
58 Summary(pl):    msmtp - dowi±zania symboliczne do sendmail'a
59 Group:          Networking/Daemons
60 # Should be replaced with sth like P/O sendmail-wrapper
61 Provides:       smtpdaemon
62 Obsoletes:      smtpdaemon
63 # Provides: sendmail-wrapper
64 # Obsoletes: sendmail-wrapper
65 Requires:       %{name} = %{version}-%{release}
66
67 %description sendmail
68 msmtp sendmail symlinks.
69
70 %description -l pl sendmail
71 Dowi±zania symboliczne msmtp do sendmaila.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76
77 %build
78 %{__aclocal} -I gnulib/m4
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_prefix}/lib,%{_sysconfdir}}
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
93 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT/usr/lib/sendmail
94 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
95
96 %find_lang %{name}
97
98 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
105
106 %postun
107 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
112 %attr(755,root,root) %{_bindir}/*
113 %{_mandir}/man1/msmtp*
114 %{_infodir}/msmtp*
115
116 %files sendmail
117 %defattr(644,root,root,755)
118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
119 %attr(755,root,root) %{_sbindir}/*
120 /usr/lib/sendmail
This page took 0.041738 seconds and 3 git commands to generate.