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