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