|
|
|
@ -1,20 +1,17 @@
|
|
|
|
|
Name: s-nail
|
|
|
|
|
Version: 14.9.24
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Summary: Environment for sending and receiving mail, providing functionality of POSIX mailx
|
|
|
|
|
Version: 14.9.22
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Environment for sending and receiving mail
|
|
|
|
|
|
|
|
|
|
# Everything is ISC except parts coming from the original Heirloom mailx which are BSD
|
|
|
|
|
License: ISC AND BSD-4-Clause-UC AND BSD-3-Clause AND HPND-sell-variant
|
|
|
|
|
License: ISC and BSD with advertising and BSD
|
|
|
|
|
URL: https://www.sdaoden.eu/code.html#s-nail
|
|
|
|
|
Source0: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: https://www.sdaoden.eu/downloads/%{name}-%{version}.tar.xz.asc
|
|
|
|
|
# https://ftp.sdaoden.eu/steffen.asc
|
|
|
|
|
Source2: steffen.asc
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2171723
|
|
|
|
|
Patch0: s-nail-makeflags.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: openssl
|
|
|
|
@ -23,10 +20,9 @@ BuildRequires: krb5-devel
|
|
|
|
|
BuildRequires: libidn2-devel
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
|
|
|
|
|
Requires(pre): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
|
|
Provides: mailx = %{version}-%{release}
|
|
|
|
|
Obsoletes: mailx < 12.6
|
|
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(preun): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
|
|
# For backwards compatibility
|
|
|
|
|
Provides: /bin/mail
|
|
|
|
@ -82,97 +78,79 @@ EOF
|
|
|
|
|
# s-nail binary is installed with 0555 permissions, fix that
|
|
|
|
|
chmod 0755 %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
|
# compatibility symlinks
|
|
|
|
|
for f in Mail mail mailx nail; do
|
|
|
|
|
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/$f
|
|
|
|
|
ln -s %{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/$f.1
|
|
|
|
|
done
|
|
|
|
|
# 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
|
|
|
|
|
%if %{defined rhel}
|
|
|
|
|
# SHA-1 is disabled as insecure by RHEL default policies, but used in tests
|
|
|
|
|
export OPENSSL_ENABLE_SHA1_SIGNATURES=yes
|
|
|
|
|
%endif
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%{_sbindir}/update-alternatives --remove-all mailx >/dev/null 2>&1 || :
|
|
|
|
|
# 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}/mailx.%{name} \
|
|
|
|
|
--slave %{_bindir}/mail mail %{_bindir}/mailx.%{name} \
|
|
|
|
|
--slave %{_bindir}/nail nail %{_bindir}/mailx.%{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
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
|
|
|
|
%{_bindir}/Mail
|
|
|
|
|
%{_bindir}/mail
|
|
|
|
|
%{_bindir}/nail
|
|
|
|
|
%{_bindir}/mailx
|
|
|
|
|
%ghost %{_bindir}/{Mail,mail,mailx,nail}
|
|
|
|
|
%{_bindir}/mailx.%{name}
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.rc
|
|
|
|
|
%{_mandir}/man1/Mail.1*
|
|
|
|
|
%{_mandir}/man1/mail.1*
|
|
|
|
|
%{_mandir}/man1/nail.1*
|
|
|
|
|
%{_mandir}/man1/mailx.1*
|
|
|
|
|
%ghost %{_mandir}/man1/{Mail,mail,mailx,nail}.1*
|
|
|
|
|
%{_mandir}/man1/mailx.%{name}.1*
|
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 14.9.24-11
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 04 2024 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-10
|
|
|
|
|
- Remove RSA-MD from License tag
|
|
|
|
|
- Resolves: RHEL-35725
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 11 2023 Nikola Forró <nforro@redhat.com> - 14.9.24-8
|
|
|
|
|
- Replace and obsolete mailx
|
|
|
|
|
|
|
|
|
|
* Wed Nov 01 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-7
|
|
|
|
|
- Add licenses to fully conform to SPDX
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 21 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-5
|
|
|
|
|
- Fix s-nail installation without docs
|
|
|
|
|
- Resolves: rhbz#2188620
|
|
|
|
|
|
|
|
|
|
* Thu Apr 13 2023 Tomas Korbar <tkorbar@redhat.com> - 14.9.24-4
|
|
|
|
|
- Fix s-nail makeflags
|
|
|
|
|
- Resolves: rhbz#2171723
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.24-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Mar 27 2022 Nikola Forró <nforro@redhat.com> - 14.9.24-1
|
|
|
|
|
- New upstream release 14.9.24
|
|
|
|
|
resolves: #2068768
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.23-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 12 2021 Nikola Forró <nforro@redhat.com> - 14.9.23-1
|
|
|
|
|
- New upstream release 14.9.23
|
|
|
|
|
resolves: #2022552
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 14.9.22-6
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 14.9.22-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri May 07 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-4
|
|
|
|
|
- Provide /bin/mail{,x} for backwards compatibility
|
|
|
|
|
resolves: #1958360
|
|
|
|
|
|
|
|
|
|
* Wed Apr 14 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-3
|
|
|
|
|
- Remove globs in %%files
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 14.9.22-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Mar 16 2021 Nikola Forró <nforro@redhat.com> - 14.9.22-2
|
|
|
|
|
- Fix alternatives
|
|
|
|
|