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
|
|
|
#
|
2020-01-28 11:15:13 +01:00
|
|
|
# Copyright (c) 2020 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
|
|
|
|
2018-07-05 13:57:50 +02:00
|
|
|
%bcond_with mutt_openssl
|
|
|
|
%bcond_without mutt_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
|
|
|
|
2007-01-16 00:26:03 +01:00
|
|
|
Name: 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
|
|
|
%if %{with mutt_openssl}
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
%endif
|
|
|
|
%if %{with mutt_gnutls}
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
%endif
|
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
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(gssrpc)
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
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
|
2018-07-05 13:57:50 +02:00
|
|
|
BuildRequires: pkgconfig(libsasl2)
|
2018-07-05 14:10:45 +02:00
|
|
|
%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
|
2017-09-15 10:55:54 +02:00
|
|
|
BuildRequires: w3m
|
2019-11-14 09:54:32 +01:00
|
|
|
URL: http://www.mutt.org
|
2020-01-28 15:24:38 +01:00
|
|
|
Requires(postun): /usr/bin/rm
|
|
|
|
Requires(post): /usr/bin/mkdir
|
|
|
|
Requires(post): /usr/bin/cat
|
|
|
|
Requires(pre): /usr/bin/zcat
|
|
|
|
Requires(pre): /usr/bin/grep
|
2017-09-15 10:55:54 +02:00
|
|
|
Recommends: hunspell
|
2007-01-16 00:26:03 +01:00
|
|
|
Provides: muttssl
|
|
|
|
Obsoletes: muttssl
|
2017-04-28 18:38:30 +02:00
|
|
|
Recommends: mutt-doc
|
2017-04-29 18:16:09 +02:00
|
|
|
Recommends: mutt-lang
|
2017-03-02 12:43:10 +01:00
|
|
|
Recommends: urlscan
|
2015-01-26 17:35:10 +01:00
|
|
|
Recommends: urlview
|
2014-11-20 15:04:50 +01:00
|
|
|
Recommends: w3m
|
2011-02-03 11:37:48 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
|
|
|
%endif
|
2020-01-15 07:59:22 +01:00
|
|
|
Version: 1.13.3
|
2015-09-11 17:37:14 +02:00
|
|
|
Release: 0
|
2007-01-16 00:26:03 +01:00
|
|
|
Summary: Mail Program
|
|
|
|
# ftp://ftp.mutt.org/mutt/devel/
|
2018-07-17 11:51:04 +02:00
|
|
|
# https:///bitbucket.org/mutt/mutt/downloads/%%name-%%version.tar.gz
|
2018-07-05 13:57:50 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-06-13 10:54:24 +02:00
|
|
|
Group: Productivity/Networking/Email/Clients
|
2018-07-17 13:10:38 +02:00
|
|
|
Source0: https://bitbucket.org/mutt/mutt/downloads/mutt-%version.tar.gz
|
2007-01-16 00:26:03 +01:00
|
|
|
Source1: Signature_conversion
|
|
|
|
Source2: README.alternates
|
2007-02-26 19:04:33 +01:00
|
|
|
Source3: mutt.png
|
|
|
|
Source4: mutt.desktop
|
2007-12-06 01:55:43 +01:00
|
|
|
Source5: skel.muttrc
|
2014-11-20 15:04:50 +01:00
|
|
|
Source9: mutt.mailcap
|
2020-01-15 07:59:22 +01:00
|
|
|
Patch0: %name-1.13.3.dif
|
2007-01-16 00:26:03 +01:00
|
|
|
# http://www.spinnaker.de/mutt/compressed/
|
|
|
|
Patch2: %name-1.5.9i-pgpewrap.diff
|
2009-07-03 16:33:22 +02:00
|
|
|
Patch3: %name-1.5.20-sendgroupreplyto.diff
|
2007-06-03 21:54:37 +02:00
|
|
|
Patch4: %name-1.5.15-wrapcolumn.diff
|
2016-05-12 16:10:16 +02:00
|
|
|
Patch7: mutt-1.6.1-opennfs.dif
|
2012-07-07 15:21:53 +02:00
|
|
|
Patch9: bug-676388-largefile.patch
|
2011-11-27 16:51:57 +01:00
|
|
|
# http://www.wolfermann.org/mutt.html
|
2012-07-07 15:21:53 +02:00
|
|
|
Patch11: aw.listreply.diff
|
2015-09-11 17:37:14 +02:00
|
|
|
Patch12: patch-1.5.24.vk.pgp_verbose_mime
|
2013-04-18 14:59:24 +02:00
|
|
|
# PATCH-FIX-OPENSUSE: bnc#813498 - mutt crashes in fgetwc in text_enriched_handler
|
|
|
|
Patch15: widechar.sidebar.dif
|
2013-05-29 12:28:08 +02:00
|
|
|
# PATCH-FIX-OPENSUSE: Be able to read signed/encrypted messsages even with CRLF
|
2016-11-23 11:17:15 +01:00
|
|
|
Patch16: mutt-1.5.23-carriage-return.path
|
2014-11-20 15:04:50 +01:00
|
|
|
# PATCH-FIX-OPENSUSE bnc#899712 - fallback mailcap for e.g text/html
|
|
|
|
Patch18: mutt-1.5.21-mailcap.diff
|
2014-12-04 13:05:09 +01:00
|
|
|
# PATCH-FIX-SUSE: bsc#907453 - CVE-2014-9116: mutt: heap-based buffer overflow in mutt_substrdup()
|
|
|
|
Patch19: bsc907453-CVE-2014-9116-jessie.patch
|
2019-01-02 15:21:18 +01:00
|
|
|
# PATCH-ENHANCE-SUSE: allow to list current imap folders
|
|
|
|
Patch20: mutt-1.10.1-imap.patch
|
2019-11-14 09:54:32 +01:00
|
|
|
# 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
|
2008-04-10 22:00:58 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%global _sysconfdir %{_sysconfdir}
|
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-01-28 15:24:38 +01:00
|
|
|
Requires(post): %install_info_prereq
|
|
|
|
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)
|
2017-04-29 18:16:09 +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
|
|
|
|
Summary: Languages for Mutt
|
2017-05-03 11:30:37 +02:00
|
|
|
Group: System/Localization
|
2017-04-29 18:16:09 +02:00
|
|
|
Provides: mutt:/usr/share/locale/en_GB/LC_MESSAGES/mutt.mo
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
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
|
2019-11-14 09:54:32 +01:00
|
|
|
%setup -q -n mutt-%version
|
2020-01-15 07:59:22 +01:00
|
|
|
%patch0 -p0 -b .p0
|
2012-07-07 15:21:53 +02:00
|
|
|
%patch2 -p0 -b .pgpewrap
|
2016-05-12 16:10:16 +02:00
|
|
|
%patch3 -p0 -b .sendgroupreplyto
|
2012-07-07 15:21:53 +02:00
|
|
|
%patch4 -p0 -b .wrapcolumn
|
|
|
|
%patch7 -p0 -b .opennfs
|
2016-05-12 16:10:16 +02:00
|
|
|
%patch9 -p0 -b .largefile
|
|
|
|
%patch11 -p0 -b .listreply
|
2015-09-11 17:37:14 +02:00
|
|
|
%patch12 -p0 -b .pgp_verbose_mtime
|
2016-05-12 16:10:16 +02:00
|
|
|
%patch15 -p0 -b .widechar.sidebar
|
2013-05-29 12:28:08 +02:00
|
|
|
%patch16 -p0 -b .crlf
|
2016-05-12 16:10:16 +02:00
|
|
|
%patch18 -p0 -b .mailcap
|
|
|
|
%patch19 -p0 -b .cvw2014.9116
|
2019-01-02 15:21:18 +01:00
|
|
|
%patch20 -p0 -b .imap
|
2019-11-14 09:54:32 +01:00
|
|
|
%patch21 -p0 -b .quit
|
2010-11-26 20:14:54 +01:00
|
|
|
|
2007-01-16 00:26:03 +01:00
|
|
|
cp %{S:2} .
|
|
|
|
|
|
|
|
%build
|
2017-07-13 13:11:11 +02:00
|
|
|
%if %{with mutt_gnutls}
|
|
|
|
echo 'set ssl_ca_certificates_file="/etc/ssl/ca-bundle.pem"' >> doc/Muttrc.head
|
|
|
|
%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
|
2013-04-22 11:36:06 +02:00
|
|
|
CFLAGS="-Wall $RPM_OPT_FLAGS -I. -D_GNU_SOURCE"
|
|
|
|
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
|
|
|
|
export SENDMAIL=/usr/sbin/sendmail
|
2017-09-15 10:55:54 +02:00
|
|
|
export ISPELL=/usr/bin/hunspell
|
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 PATH="/usr/lib/mit/bin:$PATH"
|
|
|
|
export KRB5CFGPATH="$(type -p krb5-config)"
|
|
|
|
$KRB5CFGPATH --cflags gssapi
|
|
|
|
$KRB5CFGPATH --libs gssapi
|
|
|
|
$KRB5CFGPATH --version
|
|
|
|
%configure \
|
2012-05-25 16:08:44 +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
|
2007-01-16 00:26:03 +01:00
|
|
|
make -C doc clean
|
|
|
|
make
|
|
|
|
make -C doc
|
|
|
|
|
|
|
|
%install
|
2012-05-25 16:08:44 +02:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
install -m 755 %{S:1} %{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
|
2007-01-16 00:26:03 +01:00
|
|
|
%find_lang %name
|
|
|
|
# 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
|
2017-03-06 12:07:11 +01:00
|
|
|
install -D -m 644 %{SOURCE9} %{buildroot}%{_datadir}/%name/mailcap
|
|
|
|
rm -vf %{buildroot}%{_docdir}/%name/manual.txt
|
2017-04-29 18:03:46 +02:00
|
|
|
install -D -m 644 doc/manual.txt.gz %{buildroot}%{_docdir}/%name/
|
2020-01-28 15:24:38 +01:00
|
|
|
|
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
|
|
|
|
2020-01-28 15:24:38 +01:00
|
|
|
%pre
|
|
|
|
if test $1 -gt 1 -a -e %{_docdir}/%name/manual.txt.gz
|
|
|
|
then
|
|
|
|
zcat %{_docdir}/%name/manual.txt.gz | grep -F 'version %{version}' > /run/mutt-version
|
|
|
|
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
|
2007-01-16 00:26:03 +01:00
|
|
|
%defattr(-,root,root)
|
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
|
2019-01-02 15:21:18 +01: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
|
2017-04-29 18:03:46 +02:00
|
|
|
%dir %doc %{_docdir}/%name/
|
|
|
|
%doc %{_docdir}/%name/manual.txt.gz
|
2017-04-28 18:38:30 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/%name/COPYRIGHT
|
2018-07-05 13:57:50 +02:00
|
|
|
%doc %{_docdir}/%name/ChangeLog
|
|
|
|
%doc %{_docdir}/%name/GPL
|
|
|
|
%doc %{_docdir}/%name/NEWS
|
2017-04-28 18:38:30 +02:00
|
|
|
%doc %{_docdir}/%name/README*
|
2018-07-05 13:57:50 +02:00
|
|
|
%doc %{_docdir}/%name/TODO
|
2017-03-06 12:07:11 +01:00
|
|
|
%doc %{_docdir}/%name/*.html
|
2017-04-28 16:47:43 +02:00
|
|
|
%doc %{_docdir}/%name/*.txt
|
2017-03-06 12:07:11 +01:00
|
|
|
%dir %doc %{_docdir}/%name/samples/
|
|
|
|
%doc %{_docdir}/%name/samples/*.rc
|
2018-07-05 13:57:50 +02:00
|
|
|
%doc %{_docdir}/%name/samples/ca-bundle.crt
|
2017-03-06 12:07:11 +01:00
|
|
|
%doc %{_docdir}/%name/samples/colors.*
|
2020-01-15 07:59:22 +01:00
|
|
|
%doc %{_docdir}/%name/samples/markdown2html
|
2018-07-05 13:57:50 +02:00
|
|
|
%doc %{_docdir}/%name/samples/mutt_xtitle
|
2017-03-06 12:07:11 +01:00
|
|
|
%doc %{_docdir}/%name/samples/sample.*
|
|
|
|
%doc %{_docdir}/%name/samples/smime_keys_test.pl
|
2018-07-05 13:57:50 +02:00
|
|
|
%dir %doc %{_docdir}/%name/samples/iconv/
|
|
|
|
%doc %{_docdir}/%name/samples/iconv/*.rc
|
2019-01-02 15:21:18 +01:00
|
|
|
%doc %{_infodir}/*.gz
|
2007-12-06 01:55:43 +01:00
|
|
|
|
2017-04-29 18:16:09 +02:00
|
|
|
%files lang -f %name.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2007-02-26 19:04:33 +01:00
|
|
|
%changelog
|