Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
bcabc2d836
commit
0049d9b1ed
16
zsh.spec
16
zsh.spec
@ -135,22 +135,6 @@ if [ "$1" = 1 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f %{_infodir}/zsh.info.gz ]; then
|
||||
# This is needed so that --excludedocs works.
|
||||
/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
||||
--entry="* zsh: (zsh). An enhanced bourne shell."
|
||||
fi
|
||||
|
||||
|
||||
%preun
|
||||
if [ "$1" = 0 ] ; then
|
||||
if [ -f %{_infodir}/zsh.info.gz ]; then
|
||||
# This is needed so that --excludedocs works.
|
||||
/sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
|
||||
--entry="* zsh: (zsh). An enhanced bourne shell."
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
|
||||
sed -i '\!^%{_bindir}/%{name}$!d' %{_sysconfdir}/shells
|
||||
|
Loading…
Reference in New Issue
Block a user