2007-01-16 00:25:53 +01:00
|
|
|
#
|
2011-09-20 17:59:01 +02:00
|
|
|
# spec file for package msmtp
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
2021-03-17 08:33:21 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2019-02-06 10:17:56 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:25:53 +01:00
|
|
|
#
|
|
|
|
|
2012-06-05 17:14:58 +02:00
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
Name: msmtp
|
2021-03-17 08:33:21 +01:00
|
|
|
Version: 1.8.15
|
2012-06-05 17:14:58 +02:00
|
|
|
Release: 0
|
2020-11-23 17:43:21 +01:00
|
|
|
BuildRequires: gnutls-devel >= 3.4
|
2019-02-06 10:17:56 +01:00
|
|
|
BuildRequires: libidn2-devel
|
2011-09-20 17:59:01 +02:00
|
|
|
BuildRequires: pkg-config
|
2015-01-14 10:14:38 +01:00
|
|
|
BuildRequires: xz
|
2017-03-28 22:51:34 +02:00
|
|
|
%if 0%{?suse_version} >= 1120 || 0%{?centos_version} == 700
|
|
|
|
# keyring integration for recent openSUSE and CentOS
|
|
|
|
BuildRequires: libsecret-devel
|
2012-01-10 12:14:05 +01:00
|
|
|
%endif
|
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
|
2013-04-19 14:47:15 +02:00
|
|
|
%requires_eq vim-common
|
2010-04-16 01:06:41 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: vim-base
|
2013-04-19 14:47:15 +02:00
|
|
|
%requires_eq vim-base
|
2010-04-16 01:06:41 +02:00
|
|
|
%endif #centos_version
|
2007-01-16 00:25:53 +01:00
|
|
|
%if 0%{?suse_version}
|
2016-01-06 18:44:58 +01:00
|
|
|
Requires(post): %install_info_prereq
|
|
|
|
Requires(preun): %install_info_prereq
|
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}
|
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun):/sbin/install-info
|
|
|
|
%endif
|
|
|
|
Summary: Lightweight SMTP Client
|
2018-03-10 18:25:37 +01:00
|
|
|
License: GPL-3.0-or-later
|
2012-06-05 17:14:58 +02:00
|
|
|
Group: Productivity/Networking/Email/Utilities
|
2020-01-11 09:41:08 +01:00
|
|
|
URL: https://marlam.de/msmtp/
|
2019-02-06 10:17:56 +01:00
|
|
|
Source: https://marlam.de/msmtp/releases/msmtp-%{version}.tar.xz
|
|
|
|
Source1: https://marlam.de/msmtp/releases/msmtp-%{version}.tar.xz.sig
|
2015-05-26 10:02:20 +02:00
|
|
|
Source2: %{name}.keyring
|
2011-09-20 17:59:01 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
2020-08-31 07:47:13 +02:00
|
|
|
%lang_package
|
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
%package doc
|
|
|
|
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.
|
|
|
|
|
2012-10-20 21:54:11 +02:00
|
|
|
%package mta
|
|
|
|
Summary: MTA based on %{name}
|
|
|
|
Group: Productivity/Networking/Email/Servers
|
|
|
|
Requires: %{name} = %{version}
|
2021-04-29 20:20:25 +02:00
|
|
|
Conflicts: exim
|
|
|
|
Conflicts: postfix
|
|
|
|
Conflicts: postfix-bdb
|
|
|
|
Conflicts: sendmail
|
|
|
|
Conflicts: sendmail-tls
|
2012-10-20 21:54:11 +02:00
|
|
|
Provides: smtp_daemon
|
|
|
|
|
|
|
|
%description mta
|
|
|
|
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 provides a mail transfer agent that can be used as
|
|
|
|
a minimalistic replacement of sendmail.
|
|
|
|
|
2007-01-16 00:25:53 +01:00
|
|
|
%prep
|
2007-08-05 11:52:28 +02:00
|
|
|
%setup -q
|
2019-08-02 22:58:37 +02:00
|
|
|
# fix bash and sh scripts shebang while preserving mtime
|
2018-03-10 18:25:37 +01:00
|
|
|
for i in scripts/msmtpqueue/*.sh \
|
|
|
|
scripts/msmtpq/msmtpq \
|
|
|
|
scripts/msmtpq/msmtp-queue \
|
|
|
|
scripts/set_sendmail/*.sh \
|
|
|
|
scripts/find_alias/*.sh; do
|
2019-08-02 22:58:37 +02:00
|
|
|
sed '1 s|#!/usr/bin/env \(.*\)|#!/bin/\1|' $i > $i.new
|
2018-03-10 18:25:37 +01:00
|
|
|
touch -r $i $i.new
|
|
|
|
mv $i.new $i
|
|
|
|
done
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%build
|
2020-05-14 14:38:51 +02:00
|
|
|
%configure --docdir="%{_docdir}/%{name}" --with-tls=gnutls --without-msmtpd --with-libgsasl
|
2020-06-05 08:31:17 +02:00
|
|
|
%make_build
|
2007-01-16 00:25:53 +01:00
|
|
|
|
|
|
|
%install
|
2020-06-05 08:31:17 +02:00
|
|
|
%make_install V=1
|
2007-01-16 00:25:53 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
for i in README ChangeLog ; do
|
2011-09-20 17:59:01 +02:00
|
|
|
cp scripts/msmtpqueue/$i ${i}.msmtpqueue
|
2007-01-16 00:25:53 +01:00
|
|
|
done
|
2012-01-10 12:14:05 +01:00
|
|
|
cp scripts/msmtpq/README.msmtpq README.msmtpq
|
|
|
|
cp scripts/vim/README README.vim
|
|
|
|
|
2011-09-20 17:59:01 +02:00
|
|
|
install -m 0755 \
|
2008-09-08 01:34:13 +02:00
|
|
|
scripts/msmtpqueue/*.sh \
|
2012-01-10 12:14:05 +01:00
|
|
|
scripts/msmtpq/msmtpq \
|
|
|
|
scripts/msmtpq/msmtp-queue \
|
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}
|
2013-04-19 12:58:14 +02:00
|
|
|
|
2014-01-30 18:12:55 +01:00
|
|
|
# find where to install vim syntax
|
|
|
|
# start with the "site" directory, then "current" and finally any "vim??"
|
|
|
|
for vimsyntax in %{_datadir}/vim/{site,current,vim[0-9][0-9]}/syntax; do
|
|
|
|
if [ -d $vimsyntax ]; then
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
install -D -m 0644 scripts/vim/msmtp.vim %{buildroot}$vimsyntax/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
|
2011-09-20 17:59:01 +02:00
|
|
|
install -D -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$f"
|
2010-04-16 01:06:41 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# doc files
|
|
|
|
echo -n >docfiles.lst
|
|
|
|
for f in \
|
|
|
|
AUTHORS ChangeLog* NEWS README README.msmtpqueue README.msmtpq THANKS \
|
2015-01-14 10:14:38 +01:00
|
|
|
doc/*.example \
|
2010-04-16 01:06:41 +02:00
|
|
|
scripts/set_sendmail/set_sendmail.conf \
|
|
|
|
; do
|
|
|
|
ff="${f##*/}"
|
2011-09-20 17:59:01 +02:00
|
|
|
install -D -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$ff"
|
2010-04-16 01:06:41 +02:00
|
|
|
echo "%doc %{_docdir}/%{name}/$ff" >>docfiles.lst
|
|
|
|
done
|
|
|
|
|
2012-10-20 21:54:11 +02:00
|
|
|
# mta files
|
|
|
|
install -d %{buildroot}%{_sbindir}
|
|
|
|
ln -s %{_bindir}/msmtp %{buildroot}%{_sbindir}/sendmail
|
|
|
|
ln -s %{_mandir}/man1/msmtp.1%{ext_man} %{buildroot}%{_mandir}/man1/sendmail.1%{ext_man}
|
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
# not properly ignored on Fedora 10:
|
2011-09-20 17:59:01 +02:00
|
|
|
rm -f "%{buildroot}%{_infodir}/dir"
|
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
|
|
|
|
2016-01-06 18:44:58 +01:00
|
|
|
%preun
|
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
|
|
|
|
2020-08-31 07:47:13 +02:00
|
|
|
%files
|
2010-04-16 01:06:41 +02:00
|
|
|
%doc %dir %{_docdir}/%{name}
|
2020-06-05 08:31:17 +02:00
|
|
|
%license %{_docdir}/%{name}/COPYING
|
2007-01-16 00:25:53 +01:00
|
|
|
%{_bindir}/msmtp
|
2008-09-08 01:34:13 +02:00
|
|
|
%{_bindir}/msmtpq
|
2012-01-10 12:14:05 +01:00
|
|
|
%{_bindir}/msmtp-queue
|
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
|
2020-06-05 08:31:17 +02:00
|
|
|
%{_mandir}/man1/msmtp.1%{?ext_man}
|
|
|
|
%{_infodir}/msmtp.info%{?ext_info}
|
2013-04-19 12:58:14 +02:00
|
|
|
%{_datadir}/vim/*/syntax/msmtp.vim
|
2007-01-16 00:25:53 +01:00
|
|
|
|
2020-08-31 07:47:13 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2010-04-16 01:06:41 +02:00
|
|
|
%files doc -f docfiles.lst
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
|
2012-10-20 21:54:11 +02:00
|
|
|
%files mta
|
|
|
|
%{_sbindir}/sendmail
|
2020-06-05 08:31:17 +02:00
|
|
|
%{_mandir}/man1/sendmail.1%{?ext_man}
|
2012-10-20 21:54:11 +02:00
|
|
|
|
2007-06-17 12:10:50 +02:00
|
|
|
%changelog
|