2007-01-16 00:26:03 +01:00
|
|
|
#
|
2011-04-15 14:17:38 +02:00
|
|
|
# spec file for package mutt
|
2007-01-16 00:26:03 +01:00
|
|
|
#
|
2021-01-23 00:07:32 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:26:03 +01:00
|
|
|
#
|
2009-03-03 22:28:29 +01: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-11-14 09:54:32 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:26:03 +01:00
|
|
|
#
|
|
|
|
|
2012-05-29 16:28:57 +02:00
|
|
|
|
2020-08-17 08:56:20 +02:00
|
|
|
%global _sysconfdir %{_sysconfdir}
|
2018-07-05 13:57:50 +02:00
|
|
|
%bcond_with mutt_openssl
|
|
|
|
%bcond_without mutt_gnutls
|
2007-01-16 00:26:03 +01:00
|
|
|
Name: mutt
|
2021-05-07 09:12:23 +02:00
|
|
|
Version: 2.0.7
|
2020-08-17 08:56:20 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Mail Program
|
|
|
|
# ftp://ftp.mutt.org/mutt/devel/
|
|
|
|
# https:///bitbucket.org/mutt/mutt/downloads/%%name-%%version.tar.gz
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Productivity/Networking/Email/Clients
|
|
|
|
URL: http://www.mutt.org
|
|
|
|
Source0: https://bitbucket.org/mutt/mutt/downloads/mutt-%{version}.tar.gz
|
|
|
|
Source1: Signature_conversion
|
|
|
|
Source2: README.alternates
|
|
|
|
Source3: mutt.png
|
|
|
|
Source4: mutt.desktop
|
|
|
|
Source5: skel.muttrc
|
2021-07-14 13:16:47 +02:00
|
|
|
Source6: mutt_oauth2.py-3.6
|
|
|
|
Source7: mutt_oauth2.py.README
|
|
|
|
Source8: backports-datetime-fromisoformat-1.0.0.tar.gz
|
2020-08-17 08:56:20 +02:00
|
|
|
Source9: mutt.mailcap
|
|
|
|
Patch0: %{name}-1.13.3.dif
|
|
|
|
# http://www.spinnaker.de/mutt/compressed/
|
|
|
|
Patch2: %{name}-1.5.9i-pgpewrap.diff
|
|
|
|
Patch3: %{name}-1.5.20-sendgroupreplyto.diff
|
|
|
|
Patch4: %{name}-1.5.15-wrapcolumn.diff
|
|
|
|
Patch7: mutt-1.6.1-opennfs.dif
|
|
|
|
# http://www.wolfermann.org/mutt.html
|
|
|
|
Patch11: aw.listreply.diff
|
|
|
|
Patch12: patch-1.5.24.vk.pgp_verbose_mime
|
|
|
|
# PATCH-FIX-OPENSUSE: bnc#813498 - mutt crashes in fgetwc in text_enriched_handler
|
|
|
|
Patch15: widechar.sidebar.dif
|
|
|
|
# PATCH-FIX-OPENSUSE: Be able to read signed/encrypted messsages even with CRLF
|
|
|
|
Patch16: mutt-1.5.23-carriage-return.path
|
|
|
|
# PATCH-FIX-OPENSUSE bnc#899712 - fallback mailcap for e.g text/html
|
|
|
|
Patch18: mutt-1.5.21-mailcap.diff
|
|
|
|
# PATCH-FIX-SUSE: bsc#907453 - CVE-2014-9116: mutt: heap-based buffer overflow in mutt_substrdup()
|
|
|
|
Patch19: bsc907453-CVE-2014-9116-jessie.patch
|
|
|
|
# PATCH-ENHANCE-SUSE: allow to list current imap folders
|
|
|
|
Patch20: mutt-1.10.1-imap.patch
|
|
|
|
# PATCH-ENHANCE-SUSE: boo#1156477 - Mutt has an option to ask before quitting on ^C but quits immediately on ^4
|
|
|
|
Patch21: mutt-Fix-SIGQUIT-handling.patch
|
2012-05-29 16:28:57 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2011-12-01 20:34:28 +01:00
|
|
|
BuildRequires: cyrus-sasl-gssapi
|
2017-09-15 11:55:12 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2017-09-15 10:55:54 +02:00
|
|
|
BuildRequires: hunspell
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: iso_ent
|
2017-09-15 11:55:12 +02:00
|
|
|
BuildRequires: libgpgme-devel
|
|
|
|
BuildRequires: libxslt-tools
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
BuildRequires: opensp
|
2020-08-17 08:56:20 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: w3m
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(gssrpc)
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
2020-08-17 08:56:20 +02:00
|
|
|
BuildRequires: pkgconfig(libsasl2)
|
2021-07-14 13:16:47 +02:00
|
|
|
%if 0%{suse_version} >= 1500
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%endif
|
2020-08-17 08:56:20 +02:00
|
|
|
Requires(post): %{_bindir}/cat
|
|
|
|
Requires(post): %{_bindir}/mkdir
|
2021-03-18 16:47:20 +01:00
|
|
|
Requires(postun):%{_bindir}/rm
|
2020-08-17 08:56:20 +02:00
|
|
|
Requires(pre): %{_bindir}/grep
|
|
|
|
Requires(pre): %{_bindir}/zcat
|
|
|
|
Recommends: hunspell
|
|
|
|
Recommends: mutt-doc
|
|
|
|
Recommends: mutt-lang
|
|
|
|
Recommends: urlscan
|
|
|
|
Recommends: urlview
|
|
|
|
Recommends: w3m
|
|
|
|
%if %{with mutt_openssl}
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
%endif
|
|
|
|
%if %{with mutt_gnutls}
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
%endif
|
2018-07-05 14:15:28 +02:00
|
|
|
%if 0%{?suse_version} > 1315
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(kyotocabinet)
|
2018-07-05 14:15:28 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: libkyotocabinet-devel
|
|
|
|
%endif
|
2018-07-05 14:10:45 +02:00
|
|
|
%if 0%{?suse_version} > 1315
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(libidn2)
|
2018-07-05 14:10:45 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(libidn)
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1315
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(ncurses)
|
2018-07-05 14:10:45 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
%endif
|
2017-09-15 11:55:12 +02:00
|
|
|
%if 0%{?suse_version} > 1130
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(shared-mime-info)
|
2017-09-15 11:55:12 +02:00
|
|
|
%endif
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
%if 0%{?suse_version}
|
2011-12-01 20:34:28 +01:00
|
|
|
BuildRequires: update-desktop-files
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
%endif
|
2011-02-03 11:37:48 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
2020-08-17 08:56:20 +02:00
|
|
|
Requires(post): shared-mime-info
|
2021-03-18 16:47:20 +01:00
|
|
|
Requires(postun):shared-mime-info
|
2011-02-03 11:37:48 +01:00
|
|
|
%endif
|
2007-01-16 00:26:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A very powerful mail user agent. It supports (among other nice things)
|
|
|
|
highlighting, threading, and PGP. It takes some time to get used to,
|
2017-09-15 11:18:59 +02:00
|
|
|
however. This version is based on NeoMutt, that is it includes many
|
|
|
|
enhancements.
|
2007-01-16 00:26:03 +01:00
|
|
|
|
2017-04-28 18:38:30 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Additional Documentation about Mutt
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
2020-08-17 08:56:20 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
2021-03-18 16:47:20 +01:00
|
|
|
Requires(preun):%{install_info_prereq}
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
Recommends: perl(Expect)
|
2020-08-17 08:56:20 +02:00
|
|
|
Provides: %{name}:%{_docdir}/%{name}/COPYRIGHT
|
2017-04-28 18:38:30 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Some extend documentation about mutt together with muttrc examples
|
2017-04-29 18:16:09 +02:00
|
|
|
for different environments and requirements.
|
|
|
|
|
|
|
|
%package lang
|
2020-08-17 08:56:20 +02:00
|
|
|
# FIXME: consider using %%lang_package macro
|
2017-04-29 18:16:09 +02:00
|
|
|
Summary: Languages for Mutt
|
2017-05-03 11:30:37 +02:00
|
|
|
Group: System/Localization
|
2017-04-29 18:16:09 +02:00
|
|
|
Requires: %{name} = %{version}
|
2020-08-17 08:56:20 +02:00
|
|
|
Provides: mutt:%{_datadir}/locale/en_GB/LC_MESSAGES/mutt.mo
|
2017-04-29 18:16:09 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description lang
|
|
|
|
Provides translations to the package mutt.
|
2017-04-28 18:38:30 +02:00
|
|
|
|
2007-01-16 00:26:03 +01:00
|
|
|
%prep
|
2020-08-17 08:56:20 +02:00
|
|
|
%setup -q -n mutt-%{version}
|
|
|
|
%patch0 -b .p0
|
|
|
|
%patch2 -b .pgpewrap
|
|
|
|
%patch3 -b .sendgroupreplyto
|
|
|
|
%patch4 -b .wrapcolumn
|
|
|
|
%patch7 -b .opennfs
|
|
|
|
%patch11 -b .listreply
|
|
|
|
%patch12 -b .pgp_verbose_mtime
|
|
|
|
%patch15 -b .widechar.sidebar
|
|
|
|
%patch16 -b .crlf
|
|
|
|
%patch18 -b .mailcap
|
|
|
|
%patch19 -b .cvw2014.9116
|
|
|
|
%patch20 -b .imap
|
|
|
|
%patch21 -b .quit
|
2010-11-26 20:14:54 +01:00
|
|
|
|
2020-08-17 08:56:20 +02:00
|
|
|
cp %{SOURCE2} .
|
2007-01-16 00:26:03 +01:00
|
|
|
|
|
|
|
%build
|
2017-07-13 13:11:11 +02:00
|
|
|
%if %{with mutt_gnutls}
|
2020-08-17 08:56:20 +02:00
|
|
|
echo 'set ssl_ca_certificates_file="%{_sysconfdir}/ssl/ca-bundle.pem"' >> doc/Muttrc.head
|
2017-07-13 13:11:11 +02:00
|
|
|
%endif
|
2007-01-16 00:26:03 +01:00
|
|
|
autoreconf -fi
|
2013-04-22 11:36:06 +02:00
|
|
|
cflags ()
|
|
|
|
{
|
|
|
|
local flag=$1; shift
|
|
|
|
local var=$1; shift
|
|
|
|
test -n "${flag}" -a -n "${var}" || return
|
|
|
|
case "${!var}" in
|
|
|
|
*${flag}*) return
|
|
|
|
esac
|
|
|
|
set -o noclobber
|
|
|
|
case "$flag" in
|
|
|
|
-Wl,*)
|
|
|
|
if echo 'int main () { return 0; }' | \
|
|
|
|
${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then
|
|
|
|
eval $var=\${$var:+\$$var\ }$flag
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then
|
|
|
|
eval $var=\${$var:+\$$var\ }$flag
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
set +o noclobber
|
|
|
|
}
|
2007-06-21 22:44:15 +02:00
|
|
|
CC=gcc
|
2020-08-17 08:56:20 +02:00
|
|
|
CFLAGS="-Wall %{optflags} -I. -D_GNU_SOURCE"
|
2013-04-22 11:36:06 +02:00
|
|
|
cflags -fno-strict-aliasing CFLAGS
|
|
|
|
cflags -fstack-protector CFLAGS
|
2015-01-26 17:35:10 +01:00
|
|
|
cflags -fPIE CFLAGS
|
2013-04-22 11:36:06 +02:00
|
|
|
cflags -g3 CFLAGS
|
|
|
|
cflags -pipe CFLAGS
|
|
|
|
cflags -Wl,--as-needed LDFLAGS
|
|
|
|
cflags -Wl,-O2 LDFLAGS
|
2015-01-26 17:35:10 +01:00
|
|
|
cflags -pie LDFLAGS
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
export CC CFLAGS LDFLAGS
|
2020-08-17 08:56:20 +02:00
|
|
|
export SENDMAIL=%{_sbindir}/sendmail
|
|
|
|
export ISPELL=%{_bindir}/hunspell
|
|
|
|
export PATH="%{_prefix}/lib/mit/bin:$PATH"
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
export KRB5CFGPATH="$(type -p krb5-config)"
|
|
|
|
$KRB5CFGPATH --cflags gssapi
|
|
|
|
$KRB5CFGPATH --libs gssapi
|
|
|
|
$KRB5CFGPATH --version
|
|
|
|
%configure \
|
2020-08-17 08:56:20 +02:00
|
|
|
--with-docdir=%{_docdir}/%{name} \
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
%if %{with mutt_openssl}
|
2018-07-05 13:57:50 +02:00
|
|
|
--without-gnutls \
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
--with-ssl=%{_prefix} \
|
|
|
|
%endif
|
|
|
|
%if %{with mutt_gnutls}
|
2018-07-05 13:57:50 +02:00
|
|
|
--without-ssl \
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
--with-gnutls=%{_prefix} \
|
|
|
|
%endif
|
2007-01-16 00:26:03 +01:00
|
|
|
--enable-imap \
|
|
|
|
--enable-pop \
|
|
|
|
--enable-pgp \
|
|
|
|
--enable-gpgme \
|
|
|
|
--enable-nfs-fix \
|
2009-03-03 22:28:29 +01:00
|
|
|
--enable-mailtool \
|
2007-01-16 00:26:03 +01:00
|
|
|
--enable-compressed \
|
2016-05-20 17:15:40 +02:00
|
|
|
--enable-sidebar \
|
2009-03-03 22:28:29 +01:00
|
|
|
--disable-external-dotlock \
|
2017-05-01 18:08:13 +02:00
|
|
|
--with-kyotocabinet \
|
2008-04-10 22:00:58 +02:00
|
|
|
--with-sasl=%{_prefix} \
|
|
|
|
--with-gss=%{_prefix} \
|
2013-05-29 12:28:08 +02:00
|
|
|
--with-curses=%{_prefix} \
|
2009-03-03 22:28:29 +01:00
|
|
|
--enable-smtp \
|
2018-07-05 13:57:50 +02:00
|
|
|
--enable-hcache \
|
|
|
|
--with-regex \
|
2018-07-05 14:16:14 +02:00
|
|
|
%if 0%{?suse_version} > 1315
|
2018-07-05 13:57:50 +02:00
|
|
|
--with-idn2
|
2018-07-05 14:16:14 +02:00
|
|
|
%else
|
|
|
|
--with-idn
|
|
|
|
%endif
|
2020-08-17 08:56:20 +02:00
|
|
|
%make_build -C doc clean
|
|
|
|
%make_build
|
|
|
|
%make_build -C doc
|
2007-01-16 00:26:03 +01:00
|
|
|
|
|
|
|
%install
|
2020-08-17 08:56:20 +02:00
|
|
|
%make_install
|
|
|
|
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}
|
2017-05-01 17:42:33 +02:00
|
|
|
gzip -n -9 doc/manu*.txt
|
2011-02-03 11:37:48 +01:00
|
|
|
rm -f contrib/Makefile*
|
2007-01-16 00:26:03 +01:00
|
|
|
# datadir not automatically created:
|
2012-05-25 16:08:44 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/mutt
|
|
|
|
# INSTALL file should be removed:
|
|
|
|
rm -rf %{buildroot}%{_docdir}/%{name}/INSTALL
|
2007-01-16 00:26:03 +01:00
|
|
|
# mbox/mmdf manual page conflicts with the one from tin, so rename it
|
2012-05-25 16:08:44 +02:00
|
|
|
mv %{buildroot}%{_mandir}/man5/mbox.5 \
|
|
|
|
%{buildroot}%{_mandir}/man5/mbox_mutt.5
|
|
|
|
mv %{buildroot}%{_mandir}/man5/mmdf.5 \
|
|
|
|
%{buildroot}%{_mandir}/man5/mmdf_mutt.5
|
2020-08-17 08:56:20 +02:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:26:03 +01:00
|
|
|
# We get mime.types from aaa_base
|
2012-05-25 16:08:44 +02:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/mime.types
|
2007-01-16 00:26:03 +01:00
|
|
|
# Mutt BTS is gone
|
2012-05-25 16:08:44 +02:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/{flea*,muttbug*}
|
|
|
|
rm -f %{buildroot}%{_bindir}/{flea,muttbug}
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/Muttrc.dist
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/mime.types.dist
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
|
|
|
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.muttrc
|
2020-08-17 08:56:20 +02:00
|
|
|
install -D -m 644 %{SOURCE9} %{buildroot}%{_datadir}/%{name}/mailcap
|
|
|
|
rm -vf %{buildroot}%{_docdir}/%{name}/manual.txt
|
|
|
|
install -D -m 644 doc/manual.txt.gz %{buildroot}%{_docdir}/%{name}/
|
2020-01-28 15:24:38 +01:00
|
|
|
|
2021-07-13 16:48:01 +02:00
|
|
|
sed -rn '/Command formats for gpg/,$p' %{SOURCE5} >> %{buildroot}%{_sysconfdir}/Muttrc
|
|
|
|
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
%if 0%{?suse_version}
|
2007-02-26 19:04:33 +01:00
|
|
|
%suse_update_desktop_file mutt
|
Accepting request 509766 from home:olh:branches:server:mail
- Add buildconditional for openssl/gnutls
Disable gnutls, there can be only one of them and openssl was used
- Use pkgconfig to refer to openssl/gnutls
- Remove uneeded builddeps and recommends for smtp_daemon by
specifying the path to sendmail
- Remove uneeded builddep for ispell by specifying the path to it
- Update doc builddeps: add opensp, libxslt-tools, w3m
drop docbook_4,libxml2,libxslt,lynx,sgml-skel,xli
- Remove unneeded builddeps: fdupes,glibc-i18ndata,libassuan,
libcom_err,libgcrypt,libgpg-error
- Wrap desktop files handing in suse_version
- Remove included krb5-config, the copy in the devel pkg is good enough
- Use configure macro for ordinary autoconf result
- Build manual.txt with w3m to properly dump tables
- Move Requires perl-Expect to doc pkg, make it a Recommends
- Consistent suse_version for shared-mime-info usage
- Unconditional libgpgme usage
- Unconditional autoreconf
OBS-URL: https://build.opensuse.org/request/show/509766
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=170
2017-07-12 14:51:21 +02:00
|
|
|
%endif
|
2007-01-16 00:26:03 +01:00
|
|
|
|
2021-07-14 13:16:47 +02:00
|
|
|
%if 0%{suse_version} >= 1500
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
install -m 755 %{SOURCE6} %{buildroot}%{_docdir}/%{name}/mutt_oauth2.py
|
|
|
|
install -m 644 %{SOURCE7} %{buildroot}%{_docdir}/%{name}/mutt_oauth2.py.README
|
|
|
|
%if %{?pkg_vcmp:%{pkg_vcmp python3-base < 3.7.0}}%{!?pkg_vcmp:0}
|
|
|
|
tar xf %{SOURCE8}
|
|
|
|
pushd backports-datetime-fromisoformat-1.0.0
|
|
|
|
python3 setup.py install --root %{buildroot}
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2020-01-28 15:24:38 +01:00
|
|
|
%pre
|
2020-08-17 08:56:20 +02:00
|
|
|
if test $1 -gt 1 -a -e %{_docdir}/%{name}/manual.txt.gz
|
2020-01-28 15:24:38 +01:00
|
|
|
then
|
2020-08-17 08:56:20 +02:00
|
|
|
zcat %{_docdir}/%{name}/manual.txt.gz | grep -F 'version %{version}' > /run/mutt-version || :
|
2020-01-28 15:24:38 +01:00
|
|
|
fi
|
|
|
|
|
2011-02-03 11:37:48 +01:00
|
|
|
%post
|
|
|
|
%mime_database_post
|
2020-01-28 15:24:38 +01:00
|
|
|
if test -f /run/mutt-version -a ! -s /run/mutt-version
|
|
|
|
then
|
|
|
|
mkdir -p %{_localstatedir}/adm/update-messages
|
|
|
|
cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify <<-'EOF'
|
2020-01-28 11:15:13 +01:00
|
|
|
With %{name}-%{version} some variables and the behaviour changes:
|
|
|
|
$send_multipart_alternative changes to run in batch mode on ask-yes.
|
|
|
|
$write_bcc changes to default off
|
|
|
|
EOF
|
2020-01-28 15:24:38 +01:00
|
|
|
fi
|
2011-02-03 11:37:48 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%mime_database_postun
|
2020-01-28 15:24:38 +01:00
|
|
|
rm -f %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify
|
2019-01-02 15:21:18 +01:00
|
|
|
|
|
|
|
%post doc
|
|
|
|
%install_info --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz"
|
|
|
|
|
|
|
|
%preun doc
|
|
|
|
%install_info_delete --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz"
|
2011-02-03 11:37:48 +01:00
|
|
|
|
2017-04-29 18:16:09 +02:00
|
|
|
%files
|
2008-04-10 22:00:58 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/skel/.muttrc
|
2017-03-06 12:07:11 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/Muttrc
|
2008-04-10 22:00:58 +02:00
|
|
|
%{_bindir}/mutt
|
|
|
|
%{_bindir}/pgpewrap
|
2019-01-02 15:21:18 +01:00
|
|
|
%{_bindir}/mutt_pgpring
|
2008-04-10 22:00:58 +02:00
|
|
|
%{_bindir}/smime_keys
|
|
|
|
%{_bindir}/Signature_conversion
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/pixmaps/mutt.png
|
2020-08-17 08:56:20 +02:00
|
|
|
%{_mandir}/man1/mutt.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/*pgp*.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/smime_keys.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/mmdf_mutt.5%{?ext_man}
|
|
|
|
%{_mandir}/man5/muttrc.5%{?ext_man}
|
|
|
|
%{_mandir}/man5/mbox_mutt.5%{?ext_man}
|
2017-03-06 12:07:11 +01:00
|
|
|
%dir %{_datadir}/mutt/
|
2014-11-20 15:04:50 +01:00
|
|
|
%{_datadir}/mutt/mailcap
|
2020-08-17 08:56:20 +02:00
|
|
|
%dir %doc %{_docdir}/%{name}/
|
|
|
|
%doc %{_docdir}/%{name}/manual.txt.gz
|
2021-07-14 13:16:47 +02:00
|
|
|
%if 0%{suse_version} >= 1500
|
|
|
|
%{_docdir}/%{name}/mutt_oauth2.py
|
|
|
|
%{_docdir}/%{name}/mutt_oauth2.py.README
|
|
|
|
%if %{?pkg_vcmp:%{pkg_vcmp python3-base < 3.7.0}}%{!?pkg_vcmp:0}
|
|
|
|
%{python3_sitearch}/backports
|
|
|
|
%{python3_sitearch}/backports_datetime_fromisoformat-1.0.0-py3.6.egg-info
|
|
|
|
%endif
|
|
|
|
%endif
|
2017-04-28 18:38:30 +02:00
|
|
|
|
|
|
|
%files doc
|
2020-08-17 08:56:20 +02:00
|
|
|
%doc %{_docdir}/%{name}/COPYRIGHT
|
|
|
|
%doc %{_docdir}/%{name}/ChangeLog
|
|
|
|
%doc %{_docdir}/%{name}/GPL
|
|
|
|
%doc %{_docdir}/%{name}/NEWS
|
|
|
|
%doc %{_docdir}/%{name}/README*
|
|
|
|
%doc %{_docdir}/%{name}/TODO
|
|
|
|
%doc %{_docdir}/%{name}/*.html
|
|
|
|
%doc %{_docdir}/%{name}/*.txt
|
|
|
|
%dir %doc %{_docdir}/%{name}/samples/
|
|
|
|
%doc %{_docdir}/%{name}/samples/*.rc
|
|
|
|
%doc %{_docdir}/%{name}/samples/ca-bundle.crt
|
|
|
|
%doc %{_docdir}/%{name}/samples/colors.*
|
|
|
|
%doc %{_docdir}/%{name}/samples/markdown2html
|
2020-11-10 10:16:35 +01:00
|
|
|
%doc %{_docdir}/%{name}/samples/mutt_oauth2.py
|
|
|
|
%doc %{_docdir}/%{name}/samples/mutt_oauth2.py.README
|
2020-08-17 08:56:20 +02:00
|
|
|
%doc %{_docdir}/%{name}/samples/mutt_xtitle
|
|
|
|
%doc %{_docdir}/%{name}/samples/sample.*
|
|
|
|
%doc %{_docdir}/%{name}/samples/smime_keys_test.pl
|
|
|
|
%doc %{_docdir}/%{name}/samples/bgedit-detectgui.sh
|
|
|
|
%doc %{_docdir}/%{name}/samples/bgedit-screen-tmux.sh
|
|
|
|
%dir %doc %{_docdir}/%{name}/samples/iconv/
|
|
|
|
%doc %{_docdir}/%{name}/samples/iconv/*.rc
|
|
|
|
%{_infodir}/*.gz
|
2007-12-06 01:55:43 +01:00
|
|
|
|
2020-08-17 08:56:20 +02:00
|
|
|
%files lang -f %{name}.lang
|
2017-04-29 18:16:09 +02:00
|
|
|
|
2007-02-26 19:04:33 +01:00
|
|
|
%changelog
|