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
%post
/sbin/ldconfig
if [ -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info \
--entry='* Check: (check). A unit testing framework for C.' \
%{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%postun -p /sbin/ldconfig
%preun
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%ldconfig_scriptlets
%files
%doc AUTHORS ChangeLog
%license COPYING.LESSER