diff --git a/gnome-bluetooth.spec b/gnome-bluetooth.spec index 31f4778..6d7f9cf 100644 --- a/gnome-bluetooth.spec +++ b/gnome-bluetooth.spec @@ -1,6 +1,6 @@ Name: gnome-bluetooth Version: 2.27.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Bluetooth graphical utilities Group: Applications/Communications @@ -114,10 +114,10 @@ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/bluetooth-manager.schemas \ >& /dev/null || : -touch %{_datadir}/icons/hicolor -if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor -fi +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %pre if [ "$1" -gt 1 ]; then @@ -150,9 +150,9 @@ fi %postun scrollkeeper-update -q update-desktop-database -q -touch %{_datadir}/icons/hicolor -if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %post libs -p /sbin/ldconfig @@ -184,6 +184,9 @@ fi %{_datadir}/gtk-doc/html/gnome-bluetooth/ %changelog +* Fri May 01 2009 Bastien Nocera 2.27.4-4 +- Use the scriplets on the wiki for the icon update + * Fri May 01 2009 Bastien Nocera 2.27.4-3 - Touch the icon theme directory, should fix the icon not appearing properly on new installs