Use %ldconfig_scriptlets.
This commit is contained in:
parent
3d12a39533
commit
48d5fc81bc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user