Summary: SMTP "plugin" for MUAs
Summary(pl.UTF-8): "Wtyczka" SMTP dla klientów pocztowych (MUA)
Name: msmtp
-Version: 1.4.13
+Version: 1.8.12
Release: 1
-License: GPL v3
-Group: Networking/Daemons
-Source0: http://dl.sourceforge.net/msmtp/%{name}-%{version}.tar.bz2
-# Source0-md5: 021a91d7145100ad0f00c912c8104e03
+License: GPL v3+
+Group: Networking/Utilities
+Source0: https://marlam.de/msmtp/releases/%{name}-%{version}.tar.xz
+# Source0-md5: f45025b7a6512d71a54c35f49ccd9bca
Patch0: %{name}-home_etc.patch
Source1: %{name}rc
-URL: http://msmtp.sourceforge.net/
+URL: https://marlam.de/msmtp/
+BuildRequires: autoconf
+BuildRequires: automake >= 1:1.11.1
+BuildRequires: gettext-tools
BuildRequires: gnutls-devel >= 1.2.0
BuildRequires: gsasl-devel
+BuildRequires: libidn-devel
+BuildRequires: libsecret-devel
BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch0 -p1
%build
-%configure
+%{__gettextize}
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+%configure \
+ --disable-silent-rules \
+ --with-libgsasl \
+ --with-libidn \
+ --with-libsecret \
+ --with-tls=gnutls
%{__make}
%install
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files -f %{name}.lang
%defattr(644,root,root,755)