Move %posttrans commands to %post

- related to rpmlint
This commit is contained in:
Marek Kasik 2012-11-07 18:05:17 +01:00
parent a15bf4c1ee
commit 38d8a9c256

View File

@ -3,7 +3,7 @@
Name: dconf
Version: 0.14.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A configuration system
Group: System Environment/Base
@ -64,7 +64,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
%find_lang dconf
%post
/sbin/ldconfig
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
@ -75,12 +79,6 @@ if [ $1 -eq 0 ] ; then
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
fi
%posttrans
/sbin/ldconfig
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%files -f dconf.lang
%doc COPYING
@ -116,6 +114,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_datadir}/icons/hicolor/*/apps/dconf-editor.png
%changelog
* Wed Nov 7 2012 Marek Kasik <mkasik@redhat.com> - 0.14.0-4
- Move %%posttrans commands to %%post (rpmlint related)
* Wed Nov 7 2012 Marek Kasik <mkasik@redhat.com> - 0.14.0-3
- Update License field
- Update Source URL