From 157a2670b7daa29637c19f4625a2f9984c126dc6 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Tue, 22 Dec 2020 02:31:22 +0100 Subject: [PATCH] Remove support for Red Hat Enterprise Linux 6 --- mksh.spec | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mksh.spec b/mksh.spec index 560406d..2e49030 100644 --- a/mksh.spec +++ b/mksh.spec @@ -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