Remove support for Red Hat Enterprise Linux 6

This commit is contained in:
Robert Scheck 2020-12-22 02:31:22 +01:00
parent 78ce37d017
commit 157a2670b7

View File

@ -1,7 +1,3 @@
%if 0%{?fedora} < 17 && 0%{?rhel} < 7
%global _bindir /bin
%endif
Summary: MirBSD enhanced version of the Korn Shell
Name: mksh
Version: 59c
@ -12,14 +8,12 @@ URL: https://www.mirbsd.org/mksh.htm
Source0: https://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.tgz
Source1: dot-mkshrc
Source2: rtchecks.expected
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
Conflicts: filesystem < 3
Provides: /bin/ksh
Provides: /bin/lksh
Provides: /bin/mksh
Provides: /bin/rlksh
Provides: /bin/rmksh
%endif
Requires(post): grep
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
@ -114,10 +108,8 @@ do
done
%post
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
grep -q "^/bin/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
echo "/bin/%{name}" >> %{_sysconfdir}/shells
%endif
grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
@ -131,9 +123,7 @@ fi
%postun
if [ ! -x %{_bindir}/%{name} ]; then
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
sed -e 's@^/bin/%{name}$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i %{_sysconfdir}/shells
%endif
sed -e 's@^%{_bindir}/%{name}$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i %{_sysconfdir}/shells
fi