replace /usr/local/bin/zsh to /bin/zsh

This commit is contained in:
dillon_chen 2023-01-17 11:04:19 +08:00
parent 643319342f
commit ec900d86d2

View File

@ -2,7 +2,7 @@
Name: zsh
Version: 5.9
Release: 1
Release: 2
Summary: A shell designed for interactive use
License: MIT
URL: http://zsh.sourceforge.net
@ -77,7 +77,7 @@ done
install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.zshrc
for i in checkmail harden run-help zcalc zkbd; do
for i in checkmail harden run-help zcalc zkbd test-repo-git-rebase-apply test-repo-git-rebase-merge; do
sed -i -e 's!/usr/local/bin/zsh!%{_bindir}/zsh!' $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
chmod +x $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
done
@ -128,6 +128,9 @@ fi
%{_infodir}/*
%changelog
* Tue Jan 17 2023 dillon chen < dillon.chen@gmail.com> - 5.9-2
- /usr/local/bin/zsh => /bin/zsh
* Sun Oct 9 2022 dillon chen < dillon.chen@gmail.com> - 5.9-1
- update to 5.9