Remove support for Red Hat Enterprise Linux 6
This commit is contained in:
parent
78ce37d017
commit
157a2670b7
10
mksh.spec
10
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
|
Summary: MirBSD enhanced version of the Korn Shell
|
||||||
Name: mksh
|
Name: mksh
|
||||||
Version: 59c
|
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
|
Source0: https://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.tgz
|
||||||
Source1: dot-mkshrc
|
Source1: dot-mkshrc
|
||||||
Source2: rtchecks.expected
|
Source2: rtchecks.expected
|
||||||
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
Provides: /bin/ksh
|
Provides: /bin/ksh
|
||||||
Provides: /bin/lksh
|
Provides: /bin/lksh
|
||||||
Provides: /bin/mksh
|
Provides: /bin/mksh
|
||||||
Provides: /bin/rlksh
|
Provides: /bin/rlksh
|
||||||
Provides: /bin/rmksh
|
Provides: /bin/rmksh
|
||||||
%endif
|
|
||||||
Requires(post): grep
|
Requires(post): grep
|
||||||
Requires(post): %{_sbindir}/alternatives
|
Requires(post): %{_sbindir}/alternatives
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
@ -114,10 +108,8 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
||||||
grep -q "^/bin/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
|
grep -q "^/bin/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
|
||||||
echo "/bin/%{name}" >> %{_sysconfdir}/shells
|
echo "/bin/%{name}" >> %{_sysconfdir}/shells
|
||||||
%endif
|
|
||||||
grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
|
grep -q "^%{_bindir}/%{name}$" %{_sysconfdir}/shells 2>/dev/null || \
|
||||||
echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
|
echo "%{_bindir}/%{name}" >> %{_sysconfdir}/shells
|
||||||
|
|
||||||
@ -131,9 +123,7 @@ fi
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ ! -x %{_bindir}/%{name} ]; then
|
if [ ! -x %{_bindir}/%{name} ]; then
|
||||||
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
|
|
||||||
sed -e 's@^/bin/%{name}$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i %{_sysconfdir}/shells
|
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
|
sed -e 's@^%{_bindir}/%{name}$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i %{_sysconfdir}/shells
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user