use %make_install instead of %makeinstall

... which is deprecated
This commit is contained in:
Kamil Dudka 2017-08-01 10:36:03 +02:00
parent c7a0df2b5e
commit 0f6b2f98a0

View File

@ -89,12 +89,12 @@ make %{?_smp_mflags} all html
make check make check
%install %install
%makeinstall install.info \ %make_install install.info \
fndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/functions \ fndir=%{_datadir}/%{name}/%{version}/functions \
sitefndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/site-functions \ sitefndir=%{_datadir}/%{name}/site-functions \
scriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/scripts \ scriptdir=%{_datadir}/%{name}/%{version}/scripts \
sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/scripts \ sitescriptdir=%{_datadir}/%{name}/scripts \
runhelpdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help runhelpdir=%{_datadir}/%{name}/%{version}/help
rm -f $RPM_BUILD_ROOT%{_bindir}/zsh-%{version} rm -f $RPM_BUILD_ROOT%{_bindir}/zsh-%{version}
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@ -116,9 +116,6 @@ for i in checkmail harden run-help zcalc zkbd; do
chmod +x $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i chmod +x $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/$i
done done
sed -i "s!$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help!%{_datadir}/%{name}/%{version}/help!" \
$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/{run-help,_run-help}
%post %post
if [ "$1" = 1 ]; then if [ "$1" = 1 ]; then
@ -170,6 +167,7 @@ fi
%changelog %changelog
* Tue Aug 01 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-12 * Tue Aug 01 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-12
- use %%make_install instead of %%makeinstall, which is deprecated
- modernize spec file (Group tag, %%clean, %%defattr) - modernize spec file (Group tag, %%clean, %%defattr)
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-11 * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-11