2018-05-30 15:35:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package mailutils
|
|
|
|
#
|
2022-02-18 15:21:39 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-30 15:35:32 +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-10-30 12:00:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-30 15:35:32 +02:00
|
|
|
#
|
|
|
|
|
2018-07-31 12:57:47 +02:00
|
|
|
|
2022-02-18 15:21:39 +01:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
|
|
|
|
2021-10-20 08:42:40 +02:00
|
|
|
%define somajor 8
|
2018-06-07 11:51:21 +02:00
|
|
|
# See bug boo#1095783
|
|
|
|
# Currently disabled suid/sgid program dotlock and maidag
|
|
|
|
%bcond_with set_user_identity
|
2018-11-19 11:51:34 +01:00
|
|
|
%bcond_with guile_22
|
2018-05-30 15:35:32 +02:00
|
|
|
Name: mailutils
|
2021-10-01 09:34:00 +02:00
|
|
|
Version: 3.13
|
2018-05-30 15:35:32 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GNU Mailutils
|
2021-03-04 09:40:20 +01:00
|
|
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
2018-05-30 15:35:32 +02:00
|
|
|
Group: Productivity/Networking/Email/Clients
|
2019-11-12 15:47:23 +01:00
|
|
|
URL: https://mailutils.org/
|
2018-10-30 11:48:18 +01:00
|
|
|
Source: ftp://ftp.gnu.org/gnu/mailutils/%{name}-%{version}.tar.xz
|
2019-10-30 12:00:48 +01:00
|
|
|
Source1: %{name}-3.5-guile-2.0.tar.xz
|
2018-11-21 11:35:38 +01:00
|
|
|
Source2: %{name}-rpmlintrc
|
2021-10-01 09:35:43 +02:00
|
|
|
Source3: ftp://ftp.gnu.org/gnu/mailutils/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source4: %{name}.keyring
|
2018-05-30 15:35:32 +02:00
|
|
|
Patch0: lisp-load-silent.patch
|
2018-06-07 11:51:21 +02:00
|
|
|
Patch2: silent-rpmlint-with_initgroups.patch
|
2018-11-21 11:35:38 +01:00
|
|
|
Patch3: mailutils-3.5-guile-2.0.patch
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2018-05-30 15:35:32 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: cpio
|
|
|
|
BuildRequires: cyrus-sasl-gssapi
|
2018-05-30 15:59:20 +02:00
|
|
|
BuildRequires: fdupes
|
2018-05-30 15:35:32 +02:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
2018-11-30 09:42:09 +01:00
|
|
|
BuildRequires: guile-devel
|
2018-07-31 12:57:47 +02:00
|
|
|
BuildRequires: help2man
|
2018-05-30 15:35:32 +02:00
|
|
|
BuildRequires: libmysqld-devel
|
2019-12-04 08:03:02 +01:00
|
|
|
BuildRequires: libtool
|
2018-05-30 15:35:32 +02:00
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: pam-devel
|
2019-12-04 08:03:02 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
# Does not compile due API changes
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: tcpd-devel
|
|
|
|
BuildRequires: update-alternatives
|
2018-05-30 15:35:32 +02:00
|
|
|
BuildRequires: pkgconfig(fribidi)
|
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(krb5-gssapi)
|
|
|
|
BuildRequires: pkgconfig(kyotocabinet)
|
2018-07-31 12:57:47 +02:00
|
|
|
BuildRequires: pkgconfig(libgsasl)
|
2019-10-30 12:00:48 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2022-02-18 15:21:39 +01:00
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
2018-05-30 15:35:32 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-03-04 09:40:20 +01:00
|
|
|
Requires(postun):update-alternatives
|
2022-02-18 15:21:39 +01:00
|
|
|
%endif
|
|
|
|
Requires: guile = %(rpm -q --queryformat '%%{VERSION}' guile-devel)
|
2019-12-04 08:03:02 +01:00
|
|
|
%if 0
|
|
|
|
# Seems not compatible with original radius (missing debug.h)
|
|
|
|
BuildRequires: freeradius-server-devel
|
|
|
|
%endif
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
2018-05-30 15:35:32 +02:00
|
|
|
Requires(post): permissions
|
2021-03-04 09:40:20 +01:00
|
|
|
Requires(verify):permissions
|
2018-06-07 11:51:21 +02:00
|
|
|
%endif
|
2019-12-05 14:07:27 +01:00
|
|
|
# Hard requirement as mimeview uses /usr/share/cups/mime/mime.types
|
|
|
|
Requires: cups
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%description
|
2018-06-11 11:48:44 +02:00
|
|
|
Mailutils is a set of utilities and daemons for processing e-mail.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-11 11:48:44 +02:00
|
|
|
All Mailutils programs are able to operate on mailboxes of various
|
|
|
|
formats, including UNIX maildrops, maildir, and transparently
|
|
|
|
accessed remote mailboxes (IMAP4, POP3, SMTP).
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-11 11:48:44 +02:00
|
|
|
Included is an implementation of the traditional UNIX mail reader,
|
|
|
|
"mail", command line utilities such as "frm", "messages", "readmsg",
|
|
|
|
as well as "sieve", a flexible utility for filtering the incoming
|
|
|
|
mail.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
A special feature of Mailutils is an implementation of the
|
2018-06-11 11:48:44 +02:00
|
|
|
MH Message Handling System, which combines the UNIX
|
2018-06-07 11:51:21 +02:00
|
|
|
philosophy with a flexibility of Mailutils libraries, thus
|
2018-06-11 11:48:44 +02:00
|
|
|
allowing to incorporate mail from remote mailboxes.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
For system administrators, Mailutils provides a set of daemons
|
|
|
|
for delivering and reading electronic mail, including
|
|
|
|
pop3d, imap4d and a universal mail delivery agent, called maidag.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%package mh
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: MH mailbox format support for Mailutils
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: Productivity/Networking/Email/Clients
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%description mh
|
2018-06-11 11:48:44 +02:00
|
|
|
The implementation provides an interface between Mailutils and Emacs
|
|
|
|
using the mh-e module.
|
2018-06-07 11:51:21 +02:00
|
|
|
|
2018-06-11 11:48:44 +02:00
|
|
|
To use Mailutils MH with Emacs, add the following line to
|
2018-06-07 11:51:21 +02:00
|
|
|
site-start.el or .gnu-emacs file: (load "mailutils-mh")
|
|
|
|
|
|
|
|
%package delivery
|
2021-10-01 09:34:00 +02:00
|
|
|
Summary: Mailutils's delivery agents
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: Productivity/Networking/Email/Servers
|
|
|
|
|
|
|
|
%description delivery
|
|
|
|
The name 'maidag' stands for Mail delivery agent. It is a
|
2018-06-11 11:48:44 +02:00
|
|
|
general-purpose MDA offering a number of features. It can operate
|
|
|
|
both in traditional mode, reading a message from standard input,
|
2018-06-07 11:51:21 +02:00
|
|
|
and in LMTP mode. 'Maidag' is able to deliver mail to any mailbox
|
2018-06-11 11:48:44 +02:00
|
|
|
format supported by GNU Mailutils. These formats, among others,
|
|
|
|
include 'smtp://', 'prog://' and 'sendmail://', which are equivalent to
|
2018-06-07 11:51:21 +02:00
|
|
|
forwarding a message over SMTP to a remote node.
|
|
|
|
|
|
|
|
%package notify
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: Mailutils's incoming e-mail notification daemon
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: Productivity/Networking/Email/Servers
|
|
|
|
|
|
|
|
%description notify
|
|
|
|
Comsatd is the server which receives reports of incoming mail and
|
2018-06-11 11:48:44 +02:00
|
|
|
notifies users wishing to get this service.
|
2018-06-07 11:51:21 +02:00
|
|
|
|
|
|
|
%package imap4d
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: IMAP4 daemon from GNU Mailutils
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: Productivity/Networking/Email/Servers
|
2018-08-03 11:46:25 +02:00
|
|
|
Conflicts: courier-imap
|
|
|
|
Conflicts: cyrus-imapd
|
|
|
|
Conflicts: imap
|
2018-06-07 11:51:21 +02:00
|
|
|
|
|
|
|
%description imap4d
|
|
|
|
GNU 'imap4d' is a daemon implementing IMAP4 rev1 protocol for accessing
|
|
|
|
and handling electronic mail messages on a server.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
%package pop3d
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: POP3 daemon from GNU Mailutils
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: Productivity/Networking/Email/Servers
|
2018-06-08 08:23:46 +02:00
|
|
|
Conflicts: courier-imap
|
2018-08-03 11:46:25 +02:00
|
|
|
Conflicts: cyrus-imapd
|
|
|
|
Conflicts: imap
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
%description pop3d
|
|
|
|
The 'pop3d' daemon implements the Post Office Protocol Version 3 server.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%package devel
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: Development files for GNU Mailutils
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-04 08:03:02 +01:00
|
|
|
Requires: libmailutils%{somajor} = %{version}
|
|
|
|
Requires: mailutils = %{version}
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%description devel
|
2018-06-07 11:51:21 +02:00
|
|
|
This package includes libraries and header files for building tools to
|
|
|
|
access mailutils features.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%package -n libmailutils%{somajor}
|
2018-06-11 11:48:44 +02:00
|
|
|
Summary: Generalized mailbox access library
|
2018-06-07 11:51:21 +02:00
|
|
|
Group: System/Libraries
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%description -n libmailutils%{somajor}
|
2018-06-07 11:51:21 +02:00
|
|
|
At the core of Mailutils is 'libmailutils', a library which provides
|
|
|
|
an API for accessing a generalized mailbox. A set of complementary
|
|
|
|
libraries provide methods for handling particular mailbox
|
|
|
|
implementations: UNIX mailbox, Maildir, MH, POP3, IMAP4, even SMTP.
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
2018-06-07 11:51:21 +02:00
|
|
|
%patch2
|
2018-11-30 09:42:09 +01:00
|
|
|
set -- %(rpm -q --queryformat '%%{VERSION}' guile-devel | sed -r 's@\.@ @g')
|
2018-11-30 10:24:05 +01:00
|
|
|
(cat > guile.list)<<-EOF
|
|
|
|
%dir %{_datadir}/guile/site/$1.$2/
|
|
|
|
%dir %{_datadir}/guile/site/$1.$2/mailutils/
|
|
|
|
%{_datadir}/guile/site/$1.$2/mailutils/*
|
|
|
|
EOF
|
2018-11-30 09:42:09 +01:00
|
|
|
if test $1 -gt 2 -o \( $1 -eq 2 -a $2 -ge 2 \)
|
|
|
|
then
|
|
|
|
echo Using guile $1.$2.$3
|
|
|
|
else
|
|
|
|
echo Using guile $1.$2.$3
|
|
|
|
mv libmu_scm libmu_scm-guile-2.2
|
|
|
|
mv include/mailutils/guile.h include/mailutils/guile-2.2.h
|
2019-12-04 08:03:02 +01:00
|
|
|
tar xfJ %{SOURCE1}
|
2021-10-20 09:52:17 +02:00
|
|
|
%patch3 -b .p3
|
2018-11-30 09:42:09 +01:00
|
|
|
fi
|
2019-12-04 08:03:02 +01:00
|
|
|
autoreconf -fiv
|
2021-10-20 08:42:40 +02:00
|
|
|
#
|
|
|
|
# Check our somajor value with the actual value of VI_CURRENT
|
|
|
|
#
|
|
|
|
test %{somajor} == $(sed -rn '/^VI_CURRENT=/{ s/VI_CURRENT[[:space:]]*=[[:space:]]*//p; }' < ./configure)
|
|
|
|
|
2018-05-30 15:35:32 +02:00
|
|
|
#
|
|
|
|
# Avoid build require for emacs as emacs does
|
|
|
|
# build require one the sub packages herein!
|
|
|
|
#
|
|
|
|
mkdir bin
|
|
|
|
(cat > bin/emacs)<<-'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
case "$@" in
|
|
|
|
*byte-compile*)
|
|
|
|
for arg
|
|
|
|
do
|
|
|
|
case "$arg" in
|
|
|
|
*.elc)
|
|
|
|
> "$arg"
|
2019-12-04 08:03:02 +01:00
|
|
|
;;
|
2018-05-30 15:35:32 +02:00
|
|
|
*)
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
*load-path*)
|
|
|
|
echo %{_datadir}/emacs/site-lisp
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
esac
|
|
|
|
EOF
|
|
|
|
chmod 755 bin/emacs
|
|
|
|
#
|
|
|
|
# There is no python-config for python3
|
|
|
|
#
|
|
|
|
if type -p python3-config > /dev/null 2>&1
|
|
|
|
then
|
|
|
|
sed -ri '\@python-config@{ s@python-config@python3-config@ }' configure
|
|
|
|
fi
|
|
|
|
|
|
|
|
%build
|
|
|
|
PATH="$PWD/bin:$PATH"
|
|
|
|
CC=gcc
|
|
|
|
CXX=g++
|
|
|
|
#
|
|
|
|
# In frm/frm.h wrong definition of MB_LEN_MAX if not defined
|
|
|
|
#
|
2021-03-04 09:40:20 +01:00
|
|
|
CFLAGS="-Wall %{optflags} -fexceptions -D_GNU_SOURCE -DMB_LEN_MAX=16 -fno-strict-aliasing"
|
2018-06-11 11:48:44 +02:00
|
|
|
CXXFLAGS="-Wall %{optflags} -D_GNU_SOURCE -DMB_LEN_MAX=16 -fno-strict-aliasing"
|
2018-05-30 15:35:32 +02:00
|
|
|
export PATH CC CXX CFLAGS CXXFLAGS
|
|
|
|
%configure --enable-ipv6 \
|
|
|
|
--enable-build-servers \
|
|
|
|
--enable-build-clients \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-rpath \
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{without set_user_identity}
|
|
|
|
--disable-build-dotlock \
|
2019-11-12 15:47:23 +01:00
|
|
|
--disable-build-mda \
|
2018-06-07 11:51:21 +02:00
|
|
|
%endif
|
2018-05-30 15:35:32 +02:00
|
|
|
%if 0
|
|
|
|
--disable-silent-rules \
|
|
|
|
%endif
|
|
|
|
--disable-static \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-tcp-wrappers \
|
|
|
|
--with-ldap \
|
|
|
|
--with-lispdir=%{_datadir}/emacs/site-lisp \
|
|
|
|
--with-log-facility=LOG_MAIL \
|
|
|
|
--with-kyotocabinet \
|
2019-12-05 14:07:27 +01:00
|
|
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
|
|
|
|
DEFAULT_CUPS_CONFDIR=%{_datarootdir}/cups/mime
|
2018-05-30 15:35:32 +02:00
|
|
|
|
2021-03-04 09:40:20 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
PATH="$PWD/bin:$PATH"
|
2018-06-11 11:48:44 +02:00
|
|
|
%make_install
|
2018-05-30 15:35:32 +02:00
|
|
|
#
|
|
|
|
# Remove dir, .la and .elc files
|
|
|
|
#
|
2018-06-11 11:48:44 +02:00
|
|
|
find %{buildroot} \( -name dir -o -name '*.la' -o -name '*.elc' \) -print -delete
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
2018-05-30 15:35:32 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/permissions.d
|
|
|
|
(cat > %{buildroot}%{_sysconfdir}/permissions.d/mailutils) <<-'EOF'
|
|
|
|
%{_bindir}/dotlock root:root 02755
|
|
|
|
%{_sbindir}/maidag root:root 04755
|
|
|
|
EOF
|
|
|
|
(cat > %{buildroot}%{_sysconfdir}/permissions.d/mailutils.paranoid) <<-'EOF'
|
|
|
|
%{_bindir}/dotlock root:root 00755
|
|
|
|
%{_sbindir}/maidag root:root 00755
|
|
|
|
EOF
|
|
|
|
%endif
|
|
|
|
|
2018-07-31 12:57:47 +02:00
|
|
|
# Move system manual pages
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8
|
|
|
|
for m in pop3d imap4d
|
|
|
|
do
|
|
|
|
mv %{buildroot}%{_mandir}/man1/${m}.1 %{buildroot}%{_mandir}/man8/${m}.8
|
|
|
|
done
|
|
|
|
# Create missing manual pages
|
|
|
|
for m in %{buildroot}%{_bindir}/*
|
|
|
|
do
|
|
|
|
case "${m##*/}" in
|
|
|
|
guimb|mailutils-config|mu-mh) continue ;;
|
|
|
|
esac
|
|
|
|
if test ! -e %{buildroot}%{_mandir}/man1/${m##*/}.1
|
|
|
|
then
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} help2man $m > %{buildroot}%{_mandir}/man1/${m##*/}.1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for m in %{buildroot}%{_sbindir}/*
|
|
|
|
do
|
|
|
|
if test ! -e %{buildroot}%{_mandir}/man8/${m##*/}.8
|
|
|
|
then
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} help2man $m > %{buildroot}%{_mandir}/man8/${m##*/}.8
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2018-11-19 11:51:34 +01:00
|
|
|
#
|
|
|
|
# Rename the mail program to avoid conflicts
|
|
|
|
#
|
|
|
|
mv %{buildroot}%{_bindir}/mail %{buildroot}%{_bindir}/mu-mail
|
|
|
|
mv %{buildroot}%{_mandir}/man1/mail.1 %{buildroot}%{_mandir}/man1/mu-mail.1
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/bin
|
2022-02-18 15:21:39 +01:00
|
|
|
|
|
|
|
%if ! %{with libalternatives}
|
|
|
|
# update-alternatives
|
2018-11-19 11:51:34 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
2021-01-29 08:57:05 +01:00
|
|
|
%if !0%{?usrmerged}
|
2018-11-19 11:51:34 +01:00
|
|
|
ln -sf %{_sysconfdir}/alternatives/binmail %{buildroot}/bin/mail
|
2021-01-29 08:57:05 +01:00
|
|
|
%endif
|
2018-11-19 11:51:34 +01:00
|
|
|
ln -sf %{_sysconfdir}/alternatives/Mail %{buildroot}%{_bindir}/Mail
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/mail %{buildroot}%{_bindir}/mail
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/Mail.1%{?ext_man} %{buildroot}%{_mandir}/man1/Mail.1%{?ext_man}
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/mail.1%{?ext_man} %{buildroot}%{_mandir}/man1/mail.1%{?ext_man}
|
|
|
|
#
|
2021-01-29 08:57:05 +01:00
|
|
|
%if !0%{?usrmerged}
|
2018-11-19 11:51:34 +01:00
|
|
|
ln -sf %{_bindir}/mu-mail %{buildroot}%{_sysconfdir}/alternatives/binmail
|
2021-01-29 08:57:05 +01:00
|
|
|
%endif
|
2018-11-19 11:51:34 +01:00
|
|
|
ln -sf %{_bindir}/mu-mail %{buildroot}%{_sysconfdir}/alternatives/Mail
|
|
|
|
ln -sf %{_bindir}/mu-mail %{buildroot}%{_sysconfdir}/alternatives/mail
|
|
|
|
ln -sf %{_mandir}/man1/mu-mail.1%{?ext_man} %{buildroot}%{_sysconfdir}/alternatives/Mail.1%{?ext_man}
|
|
|
|
ln -sf %{_mandir}/man1/mu-mail.1%{?ext_man} %{buildroot}%{_sysconfdir}/alternatives/mail.1%{?ext_man}
|
2022-02-18 15:21:39 +01:00
|
|
|
%else
|
|
|
|
# libalternatives
|
|
|
|
ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/Mail
|
|
|
|
%if !0%{?usrmerged}
|
|
|
|
ln -sf %{_bindir}/alts %{buildroot}/bin/Mail
|
|
|
|
%endif
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/Mail
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/Mail/10.conf <<EOF
|
|
|
|
binary=%{_bindir}/mu-mailx
|
|
|
|
man=mu-mail.1
|
|
|
|
group=mail, Mail
|
|
|
|
EOF
|
|
|
|
ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/mail
|
|
|
|
%if !0%{?usrmerged}
|
|
|
|
ln -sf %{_bindir}/alts %{buildroot}/bin/mail
|
|
|
|
%endif
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/mail
|
|
|
|
cat > %{buildroot}%{_datadir}/libalternatives/mail/10.conf <<EOF
|
|
|
|
binary=%{_bindir}/mu-mail
|
|
|
|
man=mu-mail.1
|
|
|
|
group=mail, Mail
|
|
|
|
EOF
|
|
|
|
%endif
|
2018-11-19 11:51:34 +01:00
|
|
|
|
2020-08-25 09:05:01 +02:00
|
|
|
%fdupes -s %{buildroot}%{python3_sitelib}/mailutils/
|
2018-05-30 15:59:20 +02:00
|
|
|
|
2019-12-04 08:03:02 +01:00
|
|
|
%find_lang %{name}
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%post
|
2022-02-18 15:21:39 +01:00
|
|
|
%if ! %{with libalternatives}
|
2018-06-07 11:51:21 +02:00
|
|
|
%{_sbindir}/update-alternatives --quiet --force \
|
|
|
|
--install %{_bindir}/mail mail %{_bindir}/mu-mail 10 \
|
2021-01-29 08:57:05 +01:00
|
|
|
%if !0%{?usrmerged}
|
2018-06-07 11:51:21 +02:00
|
|
|
--slave /bin/mail binmail %{_bindir}/mu-mail \
|
2021-01-29 08:57:05 +01:00
|
|
|
%endif
|
2018-06-07 11:51:21 +02:00
|
|
|
--slave %{_bindir}/Mail Mail %{_bindir}/mu-mail \
|
|
|
|
--slave %{_mandir}/man1/mail.1%{?ext_man} mail.1%{?ext_man} %{_mandir}/man1/mu-mail.1%{?ext_man} \
|
|
|
|
--slave %{_mandir}/man1/Mail.1%{?ext_man} Mail.1%{?ext_man} %{_mandir}/man1/mu-mail.1%{?ext_man}
|
2022-02-18 15:21:39 +01:00
|
|
|
%endif
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
2018-05-30 15:35:32 +02:00
|
|
|
%set_permissions %{_bindir}/dotlock
|
|
|
|
%set_permissions %{_sbindir}/maidag
|
|
|
|
%endif
|
|
|
|
|
2022-02-18 15:21:39 +01:00
|
|
|
%if ! %{with libalternatives}
|
2021-01-29 08:57:05 +01:00
|
|
|
%postun
|
2018-11-19 11:51:34 +01:00
|
|
|
if test ! -e %{_bindir}/mu-mail; then
|
|
|
|
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mu-mail
|
|
|
|
fi
|
2022-02-18 15:21:39 +01:00
|
|
|
%else
|
|
|
|
%pre
|
|
|
|
# removing old update-alternatives entries
|
|
|
|
if [ "$1" > 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --quiet --force --remove mail %{_bindir}/mu-mail
|
|
|
|
fi
|
|
|
|
%endif
|
2018-07-31 12:57:47 +02:00
|
|
|
|
2018-05-30 15:35:32 +02:00
|
|
|
%post -n libmailutils%{somajor} -p /sbin/ldconfig
|
|
|
|
%postun -n libmailutils%{somajor} -p /sbin/ldconfig
|
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
2018-05-30 15:35:32 +02:00
|
|
|
%verifyscript
|
|
|
|
%verify_permissions %{_bindir}/dotlock
|
|
|
|
%verify_permissions %{_sbindir}/maidag
|
|
|
|
%endif
|
|
|
|
|
2019-12-04 08:03:02 +01:00
|
|
|
%files -f %{name}.lang -f guile.list
|
2018-05-30 15:35:32 +02:00
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
%doc ChangeLog README NEWS AUTHORS THANKS
|
2019-12-04 08:03:02 +01:00
|
|
|
%{_infodir}/mailutils.info*.gz
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
|
|
|
%config %{_sysconfdir}/permissions.d/mailutils*
|
|
|
|
%endif
|
2022-02-18 15:21:39 +01:00
|
|
|
%if ! 0%{with libalternatives}
|
2021-01-29 08:57:05 +01:00
|
|
|
%if !0%{?usrmerged}
|
2018-06-07 11:51:21 +02:00
|
|
|
%ghost %config %{_sysconfdir}/alternatives/binmail
|
2021-01-29 08:57:05 +01:00
|
|
|
/bin/mail
|
|
|
|
%endif
|
2018-06-07 11:51:21 +02:00
|
|
|
%ghost %config %{_sysconfdir}/alternatives/Mail
|
|
|
|
%ghost %config %{_sysconfdir}/alternatives/mail
|
|
|
|
%ghost %config %{_sysconfdir}/alternatives/Mail.1%{?ext_man}
|
|
|
|
%ghost %config %{_sysconfdir}/alternatives/mail.1%{?ext_man}
|
2022-02-18 15:21:39 +01:00
|
|
|
%else
|
|
|
|
%dir %{_datadir}/libalternatives
|
|
|
|
%dir %{_datadir}/libalternatives/mail
|
|
|
|
%dir %{_datadir}/libalternatives/Mail
|
|
|
|
%{_datadir}/libalternatives/Mail/10.conf
|
|
|
|
%{_datadir}/libalternatives/mail/10.conf
|
|
|
|
%endif
|
2021-10-01 09:34:00 +02:00
|
|
|
%{_bindir}/decodemail
|
2018-06-07 11:51:21 +02:00
|
|
|
%if %{with set_user_identity}
|
|
|
|
%attr(02755,root,root) %verify(not mode) %{_bindir}/dotlock
|
|
|
|
%endif
|
2018-05-30 15:35:32 +02:00
|
|
|
%{_bindir}/frm
|
|
|
|
%{_bindir}/from
|
|
|
|
%{_bindir}/guimb
|
2018-11-19 11:51:34 +01:00
|
|
|
%{_bindir}/Mail
|
|
|
|
%{_bindir}/mail
|
2018-05-30 15:35:32 +02:00
|
|
|
%{_bindir}/mu-mail
|
|
|
|
%{_bindir}/mailutils
|
|
|
|
%{_bindir}/mailutils-config
|
|
|
|
%{_bindir}/messages
|
|
|
|
%{_bindir}/mimeview
|
|
|
|
%{_bindir}/movemail
|
|
|
|
%{_bindir}/popauth
|
|
|
|
%{_bindir}/readmsg
|
|
|
|
%{_bindir}/sieve
|
|
|
|
%dir %{_libexecdir}/mailutils/
|
|
|
|
%{_libexecdir}/mailutils/mailutils-*
|
2020-05-06 16:51:21 +02:00
|
|
|
%dir %{python3_sitelib}/mailutils/
|
|
|
|
%{python3_sitelib}/mailutils/*.p*
|
|
|
|
%dir %{python3_sitelib}/mailutils/__pycache__/
|
|
|
|
%{python3_sitelib}/mailutils/__pycache__/*
|
2018-05-30 15:35:32 +02:00
|
|
|
%dir %{_libdir}/mailutils/
|
|
|
|
%{_libdir}/mailutils/*.so
|
2020-05-06 16:51:21 +02:00
|
|
|
%dir %{python3_sitearch}/mailutils/
|
|
|
|
%{python3_sitearch}/mailutils/c_api.so
|
2019-12-04 08:03:02 +01:00
|
|
|
|
2018-05-30 15:35:32 +02:00
|
|
|
%files mh
|
|
|
|
%dir %{_bindir}/mu-mh/
|
|
|
|
%{_bindir}/mu-mh/*
|
|
|
|
%{_datadir}/emacs/site-lisp/mailutils-mh.el
|
|
|
|
%dir %{_datadir}/mailutils/
|
|
|
|
%dir %{_datadir}/mailutils/mh/
|
|
|
|
%{_datadir}/mailutils/mh/*
|
|
|
|
|
2018-06-07 11:51:21 +02:00
|
|
|
%files delivery
|
2019-11-12 15:47:23 +01:00
|
|
|
%{_sbindir}/lmtpd
|
2021-10-01 09:34:00 +02:00
|
|
|
%if %{with set_user_identity}
|
2019-11-12 15:47:23 +01:00
|
|
|
%attr(04755,root,root) %verify(not mode) %{_sbindir}/mda
|
2021-10-01 09:34:00 +02:00
|
|
|
%{_mandir}/man8/mda.8%{?ext_man}
|
2018-06-07 11:51:21 +02:00
|
|
|
%endif
|
2021-10-01 09:34:00 +02:00
|
|
|
%{_bindir}/putmail
|
|
|
|
%{_mandir}/man8/lmtpd.8%{?ext_man}
|
2018-06-07 11:51:21 +02:00
|
|
|
|
|
|
|
%files notify
|
2018-05-30 15:35:32 +02:00
|
|
|
%{_sbindir}/comsatd
|
2019-12-04 08:03:02 +01:00
|
|
|
%{_mandir}/man8/comsatd.8%{?ext_man}
|
2018-06-07 11:51:21 +02:00
|
|
|
|
|
|
|
%files imap4d
|
2018-05-30 15:35:32 +02:00
|
|
|
%{_sbindir}/imap4d
|
2019-12-04 08:03:02 +01:00
|
|
|
%{_mandir}/man8/imap4d.8%{?ext_man}
|
2018-06-07 11:51:21 +02:00
|
|
|
|
|
|
|
%files pop3d
|
2018-05-30 15:35:32 +02:00
|
|
|
%{_sbindir}/pop3d
|
2019-12-04 08:03:02 +01:00
|
|
|
%{_mandir}/man8/pop3d.8%{?ext_man}
|
2018-05-30 15:35:32 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%dir %{_includedir}/mailutils/
|
|
|
|
%{_includedir}/mailutils/*.h
|
|
|
|
%dir %{_includedir}/mailutils/sys/
|
|
|
|
%{_includedir}/mailutils/sys/*.h
|
|
|
|
%{_datadir}/aclocal/mailutils.m4
|
|
|
|
|
|
|
|
%files -n libmailutils%{somajor}
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%changelog
|