|
|
0631de |
Name: s-nail
|
|
|
0631de |
Version: 14.9.22
|
|
|
0631de |
Release: 6%{?dist}
|
|
|
0631de |
Summary: Environment for sending and receiving mail
|
|
|
0631de |
|
|
|
0631de |
# Everything is ISC except parts coming from the original Heirloom mailx which are BSD
|
|
|
0631de |
License: ISC and BSD with advertising and BSD
|
|
|
0631de |
URL: https://www.sdaoden.eu/code.html#s-nail
|
|
|
0631de |
Source0: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz
|
|
|
0631de |
Source1: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz.asc
|
|
|
0631de |
# https://ftp.sdaoden.eu/steffen.asc
|
|
|
0631de |
Source2: steffen.asc
|
|
|
0631de |
|
|
|
0631de |
BuildRequires: make
|
|
|
0631de |
BuildRequires: gnupg2
|
|
|
0631de |
BuildRequires: gcc
|
|
|
0631de |
BuildRequires: openssl
|
|
|
0631de |
BuildRequires: openssl-devel
|
|
|
0631de |
BuildRequires: krb5-devel
|
|
|
0631de |
BuildRequires: libidn2-devel
|
|
|
0631de |
BuildRequires: ncurses-devel
|
|
|
0631de |
|
|
|
0631de |
Requires(post): %{_sbindir}/update-alternatives
|
|
|
0631de |
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
0631de |
Requires(preun): %{_sbindir}/update-alternatives
|
|
|
0631de |
|
|
|
0631de |
# For backwards compatibility
|
|
|
0631de |
Provides: /bin/mail
|
|
|
0631de |
Provides: /bin/mailx
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%description
|
|
|
0631de |
S-nail provides a simple and friendly environment for sending
|
|
|
0631de |
and receiving mail. It is intended to provide the functionality
|
|
|
0631de |
of the POSIX mailx(1) command, but is MIME capable and optionally offers
|
|
|
0631de |
extensions for line editing, S/MIME, SMTP and POP3, among others.
|
|
|
0631de |
S-nail divides incoming mail into its constituent messages and allows
|
|
|
0631de |
the user to deal with them in any order. It offers many commands
|
|
|
0631de |
and internal variables for manipulating messages and sending mail.
|
|
|
0631de |
It provides the user simple editing capabilities to ease the composition
|
|
|
0631de |
of outgoing messages, and increasingly powerful and reliable
|
|
|
0631de |
non-interactive scripting capabilities.
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%prep
|
|
|
0631de |
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
0631de |
|
|
|
0631de |
%autosetup -p1
|
|
|
0631de |
|
|
|
0631de |
cat <<EOF >>nail.rc
|
|
|
0631de |
|
|
|
0631de |
# Fedora-specific defaults
|
|
|
0631de |
set bsdcompat
|
|
|
0631de |
set noemptystart
|
|
|
0631de |
set prompt='& '
|
|
|
0631de |
EOF
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%build
|
|
|
0631de |
%make_build \
|
|
|
0631de |
CFLAGS="%{build_cflags}" \
|
|
|
0631de |
LDFLAGS="%{build_ldflags}" \
|
|
|
0631de |
OPT_AUTOCC=no \
|
|
|
0631de |
OPT_DEBUG=yes \
|
|
|
0631de |
OPT_NOMEMDBG=yes \
|
|
|
0631de |
OPT_DOTLOCK=no \
|
|
|
0631de |
VAL_PREFIX=%{_prefix} \
|
|
|
0631de |
VAL_SYSCONFDIR=%{_sysconfdir} \
|
|
|
0631de |
VAL_MAIL=%{_localstatedir}/mail \
|
|
|
0631de |
config
|
|
|
0631de |
|
|
|
0631de |
%make_build build
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%install
|
|
|
0631de |
%make_install
|
|
|
0631de |
|
|
|
0631de |
# s-nail binary is installed with 0555 permissions, fix that
|
|
|
0631de |
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
0631de |
|
|
|
0631de |
# provide files for alternative usage
|
|
|
0631de |
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/mailx.%{name}
|
|
|
0631de |
touch %{buildroot}%{_bindir}/{Mail,mail,mailx,nail}
|
|
|
0631de |
ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/mailx.%{name}.1
|
|
|
0631de |
touch %{buildroot}%{_mandir}/man1/{Mail,mail,mailx,nail}.1
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%check
|
|
|
0631de |
make test
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%pre
|
|
|
0631de |
# remove alternativized files if they are not symlinks
|
|
|
0631de |
for f in Mail mail mailx nail; do
|
|
|
0631de |
[ -L %{_bindir}/$f ] || rm -f %{_bindir}/$f >/dev/null 2>&1 || :
|
|
|
0631de |
[ -L %{_mandir}/man1/$f.1.gz ] || rm -f %{_mandir}/man1/$f.1.gz >/dev/null 2>&1 || :
|
|
|
0631de |
done
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%preun
|
|
|
0631de |
if [ $1 -eq 0 ]; then
|
|
|
0631de |
%{_sbindir}/update-alternatives --remove mailx %{_bindir}/mailx.%{name} >/dev/null 2>&1 || :
|
|
|
0631de |
fi
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%post
|
|
|
0631de |
# set up the alternatives files
|
|
|
0631de |
%{_sbindir}/update-alternatives --install %{_bindir}/mailx mailx %{_bindir}/mailx.%{name} 100 \
|
|
|
0631de |
--slave %{_bindir}/Mail Mail %{_bindir}/mailx.%{name} \
|
|
|
0631de |
--slave %{_bindir}/mail mail %{_bindir}/mailx.%{name} \
|
|
|
0631de |
--slave %{_bindir}/nail nail %{_bindir}/mailx.%{name} \
|
|
|
0631de |
--slave %{_mandir}/man1/mailx.1.gz mailx.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
0631de |
--slave %{_mandir}/man1/Mail.1.gz Mail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
0631de |
--slave %{_mandir}/man1/mail.1.gz mail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
0631de |
--slave %{_mandir}/man1/nail.1.gz nail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
0631de |
>/dev/null 2>&1 || :
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%postun
|
|
|
0631de |
if [ $1 -ge 1 ]; then
|
|
|
0631de |
if [ "$(readlink %{_sysconfdir}/alternatives/mailx)" == "%{_bindir}/mailx.%{name}" ]; then
|
|
|
0631de |
%{_sbindir}/update-alternatives --set mailx %{_bindir}/mailx.%{name} >/dev/null 2>&1 || :
|
|
|
0631de |
fi
|
|
|
0631de |
fi
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%files
|
|
|
0631de |
%license COPYING
|
|
|
0631de |
%doc README
|
|
|
0631de |
%ghost %{_bindir}/{Mail,mail,mailx,nail}
|
|
|
0631de |
%{_bindir}/mailx.%{name}
|
|
|
0631de |
%{_bindir}/%{name}
|
|
|
0631de |
%config(noreplace) %{_sysconfdir}/%{name}.rc
|
|
|
0631de |
%ghost %{_mandir}/man1/{Mail,mail,mailx,nail}.1*
|
|
|
0631de |
%{_mandir}/man1/mailx.%{name}.1*
|
|
|
0631de |
%{_mandir}/man1/%{name}.1*
|
|
|
0631de |
|
|
|
0631de |
|
|
|
0631de |
%changelog
|
|
|
0631de |
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-6
|
|
|
0631de |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
0631de |
Related: rhbz#1991688
|
|
|
0631de |
|
|
|
0631de |
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-5
|
|
|
0631de |
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
0631de |
Related: rhbz#1971065
|
|
|
0631de |
|
|
|
0631de |
* Fri May 07 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-4
|
|
|
0631de |
- Provide /bin/mail{,x} for backwards compatibility
|
|
|
0631de |
resolves: #1958360
|
|
|
0631de |
|
|
|
0631de |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-3
|
|
|
0631de |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
0631de |
|
|
|
0631de |
* Tue Mar 16 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-2
|
|
|
0631de |
- Fix alternatives
|
|
|
0631de |
related: #1897928
|
|
|
0631de |
|
|
|
0631de |
* Wed Feb 24 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-1
|
|
|
0631de |
- New upstream release 14.9.22
|
|
|
0631de |
resolves: #1932122
|
|
|
0631de |
|
|
|
0631de |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.21-2
|
|
|
0631de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
0631de |
|
|
|
0631de |
* Fri Jan 22 2021 Nikola Forró <nforro@redhat.com> - 14.9.21-1
|
|
|
0631de |
- New upstream release 14.9.21
|
|
|
0631de |
resolves: #1919030
|
|
|
0631de |
|
|
|
0631de |
* Mon Dec 14 2020 Nikola Forró <nforro@redhat.com> - 14.9.20-1
|
|
|
0631de |
- New upstream release 14.9.20
|
|
|
0631de |
resolves: #1907112
|
|
|
0631de |
|
|
|
0631de |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.19-2
|
|
|
0631de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
0631de |
|
|
|
0631de |
* Mon Apr 27 2020 Nikola Forró <nforro@redhat.com> - 14.9.19-1
|
|
|
0631de |
- New upstream release 14.9.19
|
|
|
0631de |
- Adjust default configuration to be closer to Heirloom mailx
|
|
|
0631de |
- Provide alternativized binaries and man pages
|
|
|
0631de |
resolves: #1827969
|
|
|
0631de |
|
|
|
0631de |
* Thu Apr 23 2020 Nikola Forró <nforro@redhat.com> - 14.9.18-1
|
|
|
0631de |
- Update to the latest upstream release
|
|
|
0631de |
|
|
|
0631de |
* Thu Apr 09 2020 Nikola Forró <nforro@redhat.com> - 14.9.17-1
|
|
|
0631de |
- Initial package
|