]> git.pld-linux.org Git - packages/msmtp.git/blob - msmtp.spec
ea918f5c17d84367b9555b6a4a82b6eac005ef80
[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.5
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:  9713e821bf73e8f4a05d599c6ab01b6a
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:  openssl-devel >= 0.9.7d
16 BuildRequires:  pkgconfig
17 Provides:       smtpdaemon
18 Obsoletes:      smtpdaemon
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 msmtp is a simple program that works as an "SMTP plugin" for Mutt and
23 probably other MUAs (mail user agents). It forwards mails to an SMTP
24 server (for example at a free mail provider) which does the delivery.
25 Features include:
26 - SMTP AUTH methods PLAIN, LOGIN and CRAM-MD5
27 - TLS encrypted connections
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 - obs³ugê SMTP AUTH - metod PLAIN, LOGIN i CRAM-MD5
43 - szyfrowane po³±czenia TLS
44 - obs³ugê IPv6
45 - szczegó³owe komunikaty b³êdów w przypadku niepowodzenia (w³±cznie z
46   pe³n± odpowiedzi± serwera SMTP)
47 - kody wyj¶cia kompatybilne z sendmailem (które rozumie wiêkszo¶æ
48   MUA).
49
50 Wystarczy przekazaæ klientowi pocztowemu, aby wywo³ywa³ msmtp zamiast
51 /usr/sbin/sendmail (w Mutcie to po prostu dodatkowa linia w pliku
52 konfiguracyjnym) lub zrobienie dowi±zania symbolicznego do
53 /usr/sbin/sendmail.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58
59 %build
60 %{__aclocal} -I gnulib/m4
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64 # could use gnutls instead (but is not ready for current libgcrypt)
65 # disable gsasl for now (see README.gsasl)
66 %configure \
67         --with-ssl=openssl \
68         --disable-gsasl
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man1,%{_prefix}/lib,%{_sysconfdir}}
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/msmtprc
79 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
80 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/sendmail
81
82 %find_lang %{name}
83
84 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
91
92 %postun
93 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog README THANKS doc/msmtprc-{system,user}.example
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) %{_sbindir}/*
101 %{_mandir}/man1/msmtp*
102 %{_infodir}/msmtp*
103 %{_prefix}/lib/sendmail
This page took 0.087045 seconds and 2 git commands to generate.