|
|
@ -1,5 +1,5 @@
|
|
|
|
Name: s-nail
|
|
|
|
Name: s-nail
|
|
|
|
Version: 14.9.18
|
|
|
|
Version: 14.9.19
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Environment for sending and receiving mail
|
|
|
|
Summary: Environment for sending and receiving mail
|
|
|
|
|
|
|
|
|
|
|
@ -19,6 +19,10 @@ BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libidn2-devel
|
|
|
|
BuildRequires: libidn2-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
Requires(preun): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
S-nail provides a simple and friendly environment for sending
|
|
|
|
S-nail provides a simple and friendly environment for sending
|
|
|
@ -38,6 +42,14 @@ non-interactive scripting capabilities.
|
|
|
|
|
|
|
|
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF >>nail.rc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fedora-specific defaults
|
|
|
|
|
|
|
|
set bsdcompat
|
|
|
|
|
|
|
|
set noemptystart
|
|
|
|
|
|
|
|
set prompt='& '
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%make_build \
|
|
|
|
%make_build \
|
|
|
@ -61,20 +73,71 @@ non-interactive scripting capabilities.
|
|
|
|
# s-nail binary is installed with 0555 permissions, fix that
|
|
|
|
# s-nail binary is installed with 0555 permissions, fix that
|
|
|
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# provide files for alternative usage
|
|
|
|
|
|
|
|
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/mailx.%{name}
|
|
|
|
|
|
|
|
touch %{buildroot}%{_bindir}/{Mail,mail,mailx,nail}
|
|
|
|
|
|
|
|
ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/mailx.%{name}.1
|
|
|
|
|
|
|
|
touch %{buildroot}%{_mandir}/man1/{Mail,mail,mailx,nail}.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
# remove alternativized files if they are not symlinks
|
|
|
|
|
|
|
|
for f in Mail mail mailx nail; do
|
|
|
|
|
|
|
|
[ -L %{_bindir}/$f ] || rm -f %{_bindir}/$f >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
[ -L %{_mandir}/man1/$f.1.gz ] || rm -f %{_mandir}/man1/$f.1.gz >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
|
|
|
%{_sbindir}/update-alternatives --remove mailx %{_bindir}/mailx.%{name} >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
# set up the alternatives files
|
|
|
|
|
|
|
|
%{_sbindir}/update-alternatives --install %{_bindir}/mailx mailx %{_bindir}/mailx.%{name} 100 \
|
|
|
|
|
|
|
|
--slave %{_bindir}/Mail Mail %{_bindir}/%{name} \
|
|
|
|
|
|
|
|
--slave %{_bindir}/mail mail %{_bindir}/%{name} \
|
|
|
|
|
|
|
|
--slave %{_bindir}/nail nail %{_bindir}/%{name} \
|
|
|
|
|
|
|
|
--slave %{_mandir}/man1/mailx.1.gz mailx.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
|
|
|
|
|
--slave %{_mandir}/man1/Mail.1.gz Mail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
|
|
|
|
|
--slave %{_mandir}/man1/mail.1.gz mail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
|
|
|
|
|
--slave %{_mandir}/man1/nail.1.gz nail.1.gz %{_mandir}/man1/mailx.%{name}.1.gz \
|
|
|
|
|
|
|
|
>/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
|
|
|
|
if [ "$(readlink %{_sysconfdir}/alternatives/mailx)" == "%{_bindir}/mailx.%{name}" ]; then
|
|
|
|
|
|
|
|
%{_sbindir}/update-alternatives --set mailx %{_bindir}/mailx.%{name} >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%doc README
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%ghost %{_bindir}/{Mail,mail,mailx,nail}
|
|
|
|
|
|
|
|
%{_bindir}/mailx.%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.rc
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.rc
|
|
|
|
|
|
|
|
%ghost %{_mandir}/man1/{Mail,mail,mailx,nail}.1*
|
|
|
|
|
|
|
|
%{_mandir}/man1/mailx.%{name}.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Apr 27 2020 Nikola Forró <nforro@redhat.com> - 14.9.19-1
|
|
|
|
|
|
|
|
- New upstream release 14.9.19
|
|
|
|
|
|
|
|
- Adjust default configuration to be closer to Heirloom mailx
|
|
|
|
|
|
|
|
- Provide alternativized binaries and man pages
|
|
|
|
|
|
|
|
resolves: #1827969
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 23 2020 Nikola Forró <nforro@redhat.com> - 14.9.18-1
|
|
|
|
* Thu Apr 23 2020 Nikola Forró <nforro@redhat.com> - 14.9.18-1
|
|
|
|
- Update to the latest upstream release
|
|
|
|
- Update to the latest upstream release
|
|
|
|
|
|
|
|
|
|
|
|