Use %ldconfig_scriptlets.

This commit is contained in:
Jerry James 2018-06-06 18:44:42 -06:00
parent 3d12a39533
commit 48d5fc81bc

View File

@ -95,20 +95,19 @@ rm -rf checkmk/test/check_checkmk*
rm -rf checkmk/test/empty_input rm -rf checkmk/test/empty_input
%post %post
/sbin/ldconfig
if [ -e %{_infodir}/%{name}.info* ]; then if [ -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info \ /sbin/install-info \
--entry='* Check: (check). A unit testing framework for C.' \ --entry='* Check: (check). A unit testing framework for C.' \
%{_infodir}/%{name}.info %{_infodir}/dir || : %{_infodir}/%{name}.info %{_infodir}/dir || :
fi fi
%postun -p /sbin/ldconfig
%preun %preun
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi fi
%ldconfig_scriptlets
%files %files
%doc AUTHORS ChangeLog %doc AUTHORS ChangeLog
%license COPYING.LESSER %license COPYING.LESSER