2007-01-16 00:25:53 +01:00
|
|
|
#
|
2011-01-14 17:01:21 +01:00
|
|
|
# spec file for package msmtp (Version 1.4.22)
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2010-03-19 10:15:11 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2008-09-08 01:34:13 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-07 12:15:51 +02:00
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
Name: msmtp
|
2011-01-14 17:01:21 +01:00
|
|
|
Version: 1.4.22
|
2010-07-27 04:53:11 +02:00
|
|
|
Release: 2
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2010-03-19 10:15:11 +01:00
|
|
|
License: GPLv3+
|
2007-01-16 00:25:53 +01:00
|
|
|
Group: Productivity/Networking/Email/Utilities
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: libidn-devel openssl-devel
|
2010-04-16 01:06:41 +02:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildRequires: libgsasl-devel
|
|
|
|
%endif
|
2010-03-19 10:15:11 +01:00
|
|
|
# for the directory
|
2010-04-16 01:06:41 +02:00
|
|
|
%if 0%{?centos_version}
|
|
|
|
BuildRequires: vim-common
|
|
|
|
Requires: vim-common
|
|
|
|
%else
|
|
|
|
%if 0%{?suse_version} < 1030
|
|
|
|
# old openSUSE and SLES and Fedora and RHEL:
|
|
|
|
BuildRequires: vim
|
|
|
|
Requires: vim
|
|
|
|
%else
|
|
|
|
# recent openSUSE:
|
|
|
|
BuildRequires: vim-base
|
2010-03-19 10:15:11 +01:00
|
|
|
Requires: vim-base
|
2010-04-16 01:06:41 +02:00
|
|
|
%endif #suse_version
|
|
|
|
%endif #centos_version
|
2007-01-16 00:25:53 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
%endif
|
2010-04-16 01:06:41 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun):/sbin/install-info
|
|
|
|
%endif
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2008-04-07 12:15:51 +02:00
|
|
|
Url: http://msmtp.sourceforge.net/
|
2007-01-16 00:25:53 +01:00
|
|
|
Source: http://prdownloads.sourceforge.net/msmtp/msmtp-%{version}.tar.bz2
|
2011-01-14 17:01:21 +01:00
|
|
|
#Patch0: msmtp-fix-newopenssl.patch
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2010-04-16 01:06:41 +02:00
|
|
|
Summary: Lightweight SMTP Client
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Martin Lambers <marlam@marlam.de>
|
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
%package doc
|
|
|
|
License: GPLv3+
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
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.
|
|
|
|
|
|
|
|
This subpackage contains the documentation for %{name}, including
|
|
|
|
examples and sample configuration files.
|
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
%prep
|
2007-08-05 11:52:28 +02:00
|
|
|
%setup -q
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version} > 1000
|
|
|
|
export CFLAGS="%{optflags} -fstack-protector"
|
|
|
|
%endif
|
2010-04-16 01:06:41 +02:00
|
|
|
%configure --docdir="%{_docdir}/%{name}" --with-ssl=openssl
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
%find_lang %{name}
|
|
|
|
for i in README ChangeLog ; do
|
2007-08-05 11:52:28 +02:00
|
|
|
%{__cp} scripts/msmtpqueue/$i ${i}.msmtpqueue
|
2007-01-16 00:25:53 +01:00
|
|
|
done
|
2008-09-08 01:34:13 +02:00
|
|
|
%{__cp} scripts/msmtpq/README README.msmtpq
|
2010-03-19 10:15:11 +01:00
|
|
|
%{__cp} scripts/vim/README README.vim
|
2008-09-08 01:34:13 +02:00
|
|
|
%{__install} -m 0755 \
|
|
|
|
scripts/msmtpqueue/*.sh \
|
|
|
|
scripts/msmtpq/msmtp{q,Q} \
|
2010-03-19 10:15:11 +01:00
|
|
|
scripts/set_sendmail/*.sh \
|
|
|
|
scripts/find_alias/*.sh \
|
2007-08-05 11:52:28 +02:00
|
|
|
%{buildroot}%{_bindir}
|
2010-03-19 10:15:11 +01:00
|
|
|
%{__install} -D -m 0644 \
|
|
|
|
scripts/vim/msmtp.vim \
|
|
|
|
%{buildroot}%{_datadir}/vim/current/syntax/msmtp.vim
|
2007-01-16 00:25:53 +01:00
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
# main package doc files
|
|
|
|
for f in \
|
|
|
|
COPYING\
|
|
|
|
; do
|
|
|
|
%__install -D -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$f"
|
|
|
|
done
|
|
|
|
|
|
|
|
# doc files
|
|
|
|
echo -n >docfiles.lst
|
|
|
|
for f in \
|
|
|
|
AUTHORS ChangeLog* NEWS README README.msmtpqueue README.msmtpq THANKS \
|
|
|
|
doc/msmtp.html doc/Mutt+msmtp.txt doc/*.example \
|
|
|
|
scripts/set_sendmail/set_sendmail.conf \
|
|
|
|
; do
|
|
|
|
ff="${f##*/}"
|
|
|
|
%__install -D -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$ff"
|
|
|
|
echo "%doc %{_docdir}/%{name}/$ff" >>docfiles.lst
|
|
|
|
done
|
|
|
|
|
|
|
|
# not properly ignored on Fedora 10:
|
|
|
|
%__rm -f "%{buildroot}%{_infodir}/dir"
|
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
2010-04-16 01:06:41 +02:00
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
|
|
|
%post
|
2010-04-16 01:06:41 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/msmtp.info%{ext_info}
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%postun
|
2010-04-16 01:06:41 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/msmtp.info%{ext_info}
|
2007-01-16 00:25:53 +01:00
|
|
|
%endif
|
2010-04-16 01:06:41 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
|
|
|
|
%post
|
|
|
|
[ "$1" = "1" ] && /sbin/install-info "%{_infodir}/%{name}.info%{ext_info}" || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
[ "$1" = "0" ] && /sbin/install-info --delete "%{_infodir}/%{name}.info%{ext_info}" || :
|
|
|
|
%endif # fedora
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr (-, root, root)
|
2010-04-16 01:06:41 +02:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/COPYING
|
2007-01-16 00:25:53 +01:00
|
|
|
%{_bindir}/msmtp
|
2008-09-08 01:34:13 +02:00
|
|
|
%{_bindir}/msmtpq
|
|
|
|
%{_bindir}/msmtpQ
|
2007-01-16 00:25:53 +01:00
|
|
|
%{_bindir}/msmtp-enqueue.sh
|
|
|
|
%{_bindir}/msmtp-runqueue.sh
|
2007-08-05 11:52:28 +02:00
|
|
|
%{_bindir}/msmtp-listqueue.sh
|
|
|
|
%{_bindir}/set_sendmail.sh
|
2010-03-19 10:15:11 +01:00
|
|
|
%{_bindir}/find_alias_for_msmtp.sh
|
2010-04-16 01:06:41 +02:00
|
|
|
%{_mandir}/man1/msmtp.1%{ext_man}
|
|
|
|
%{_infodir}/msmtp.info%{ext_info}
|
2010-03-19 10:15:11 +01:00
|
|
|
%{_datadir}/vim/current/syntax/msmtp.vim
|
2007-01-16 00:25:53 +01:00
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
%files doc -f docfiles.lst
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
|
2007-06-17 12:10:50 +02:00
|
|
|
%changelog
|