File msmtp.spec of Package msmtp

#
# spec file for package msmtp (Version 1.4.16)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           msmtp
Version:        1.4.16
Release:        1.<RELEASE28>
#
License:        GPL v3 or later
Group:          Productivity/Networking/Email/Utilities
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libidn-devel openssl-devel
%if 0%{?suse_version}
PreReq:         %install_info_prereq
%endif
#
Url:            http://msmtp.sourceforge.net/
Source:         http://prdownloads.sourceforge.net/msmtp/msmtp-%{version}.tar.bz2
Patch:          msmtp-1.4.x_null_byte_in_cert_check.patch
#
Summary:        An SMTP Client

%description
msmtp is an SMTP client that can be used as a plug-in for Mutt and
other mail user agents.  It forwards mail to an SMTP server that does
the delivery.  msmtp supports multiple accounts.



Authors:
--------
    Martin Lambers <marlam@marlam.de>

%prep
%setup -q
%patch

%build
%if 0%{?suse_version} > 1000
export CFLAGS="%{optflags} -fstack-protector"
%endif
%configure --docdir=%{_docdir}/%{name} --with-ssl=openssl
%{__make}

%install
%makeinstall
%find_lang %{name}
for i in README ChangeLog ; do
    %{__cp} scripts/msmtpqueue/$i ${i}.msmtpqueue
done
%{__cp} scripts/msmtpq/README README.msmtpq
%{__install} -m 0755 \
        scripts/msmtpqueue/*.sh \
        scripts/msmtpq/msmtp{q,Q} \
        scripts/set_sendmail/set_sendmail.sh \
    %{buildroot}%{_bindir}

%clean
%{__rm} -rf %{buildroot}
%if 0%{?suse_version}

%post
%install_info --info-dir=%{_infodir} %{_infodir}/msmtp.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/msmtp.info.gz
%endif

%files -f %{name}.lang
%defattr (-, root, root)
%doc AUTHORS ChangeLog* COPYING NEWS README README.msmtpqueue README.msmtpq THANKS
%doc doc/msmtp.html doc/Mutt+msmtp.txt doc/*.example
%doc scripts/set_sendmail/set_sendmail.conf 
%{_bindir}/msmtp
%{_bindir}/msmtpq
%{_bindir}/msmtpQ
%{_bindir}/msmtp-enqueue.sh
%{_bindir}/msmtp-runqueue.sh
%{_bindir}/msmtp-listqueue.sh
%{_bindir}/set_sendmail.sh
%{_mandir}/man1/msmtp.1*
%{_infodir}/msmtp.info*

%changelog
openSUSE Build Service is sponsored by