Run ldconfig for the new -libs subpackage

This commit is contained in:
Kalev Lember 2016-08-17 14:01:26 +02:00
parent ed509445c5
commit 60abb5d1f9

View File

@ -2,7 +2,7 @@
Name: devhelp Name: devhelp
Version: 3.20.0 Version: 3.20.0
Release: 2%{?dist} Release: 3%{?dist}
Epoch: 1 Epoch: 1
License: GPLv2+ License: GPLv2+
Summary: API documention browser Summary: API documention browser
@ -74,24 +74,26 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/org.gno
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Devhelp.desktop desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Devhelp.desktop
%post %post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
%postun %postun
/sbin/ldconfig
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
fi fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%post libs
/sbin/ldconfig
%postun libs %postun libs
/sbin/ldconfig
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
fi fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%posttrans libs %posttrans libs
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
@ -129,6 +131,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Wed Aug 17 2016 Kalev Lember <klember@redhat.com> - 1:3.20.0-3
- Run ldconfig for the new -libs subpackage
* Sat Apr 02 2016 Mathieu Bridon <bochecha@daitauha.fr> - 1:3.20.0-2 * Sat Apr 02 2016 Mathieu Bridon <bochecha@daitauha.fr> - 1:3.20.0-2
- Split the libs into their own subpackages, so that installing a dependent - Split the libs into their own subpackages, so that installing a dependent
application (e.g Builder) does not bring in the Devhelp app. application (e.g Builder) does not bring in the Devhelp app.