msmtp/msmtp.spec
Marcus Rueckert 7d0528ee11 - update to version 1.4.27:
- No significant changes.
- additional changes from vrsion 1.4.26:
  - A new version of the msmtpq script fixes serious bugs. To
    update to the new version of the script, you need to remove the
    old msmtpQ symlink, change msmtpQ to msmtpq in your MUA config,
    and use msmtp-queue for queue management.
- additional changes from version 1.4.25:
  - DIGEST-MD5 authentication is not considered secure any longer.
    See RFC 6331.
  - Support for alias expansion was added. See the aliases command
    and --aliases option.
- add support for building with gnome-keyring (disabled by default)
  call build with --with-gnome-keyring to enable it
- make sure compiler cmdlines are listed (make V=1)
- handle rename from upstream:
  msmtpQ is gone. the new script is called msmtp-queue
- installed msmtp-gnome-tool.py and related readme

OBS-URL: https://build.opensuse.org/package/show/server:mail/msmtp?expand=0&rev=49
2012-01-10 11:14:05 +00:00

175 lines
4.9 KiB
RPMSpec

#
# spec file for package msmtp
#
# Copyright (c) 2011 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/
#
%bcond_with gnome-keyring
Name: msmtp
Version: 1.4.27
Release: 1
License: GPL-3.0+
Group: Productivity/Networking/Email/Utilities
BuildRequires: libidn-devel
BuildRequires: openssl-devel
BuildRequires: pkg-config
%if %{with gnome-keyring}
BuildRequires: pkgconfig(gnome-keyring-1)
%endif
%if 0%{?suse_version} >= 1120
BuildRequires: libgsasl-devel
%endif
# for the directory
%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
Requires: vim-base
%endif #suse_version
%endif #centos_version
%if 0%{?suse_version}
PreReq: %install_info_prereq
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
Requires(post): /sbin/install-info
Requires(preun):/sbin/install-info
%endif
#Patch0: msmtp-fix-newopenssl.patch
Summary: Lightweight SMTP Client
Url: http://msmtp.sourceforge.net/
Source: http://prdownloads.sourceforge.net/msmtp/msmtp-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package doc
License: GPL-3.0+
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.
%prep
%setup -q
%build
%if 0%{?suse_version} > 1000
export CFLAGS="%{optflags} -fstack-protector"
%endif
%configure --docdir="%{_docdir}/%{name}" --with-ssl=openssl
make %{?_smp_mflags} V=1
%install
%makeinstall V=1
%find_lang %{name}
for i in README ChangeLog ; do
cp scripts/msmtpqueue/$i ${i}.msmtpqueue
done
cp scripts/msmtpq/README.msmtpq README.msmtpq
cp scripts/vim/README README.vim
cp scripts/msmtp-gnome-tool/README README.msmtp-gnome-tool
install -m 0755 \
scripts/msmtpqueue/*.sh \
scripts/msmtpq/msmtpq \
scripts/msmtpq/msmtp-queue \
scripts/msmtp-gnome-tool/msmtp-gnome-tool.py \
scripts/set_sendmail/*.sh \
scripts/find_alias/*.sh \
%{buildroot}%{_bindir}
install -D -m 0644 \
scripts/vim/msmtp.vim \
%{buildroot}%{_datadir}/vim/current/syntax/msmtp.vim
# 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 \
README.msmtp-gnome-tool \
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"
%if 0%{?suse_version}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/msmtp.info%{ext_info}
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/msmtp.info%{ext_info}
%endif
%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
%files -f %{name}.lang
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/COPYING
%{_bindir}/msmtp
%{_bindir}/msmtpq
%{_bindir}/msmtp-queue
%{_bindir}/msmtp-enqueue.sh
%{_bindir}/msmtp-runqueue.sh
%{_bindir}/msmtp-listqueue.sh
%{_bindir}/set_sendmail.sh
%{_bindir}/find_alias_for_msmtp.sh
%{_bindir}/msmtp-gnome-tool.py
%{_mandir}/man1/msmtp.1%{ext_man}
%{_infodir}/msmtp.info%{ext_info}
%{_datadir}/vim/current/syntax/msmtp.vim
%files doc -f docfiles.lst
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%changelog