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