Fix the icons not being found

This commit is contained in:
Matthias Clasen 2015-08-21 21:16:30 -04:00
parent f6386c12b6
commit fb79265351

View File

@ -2,7 +2,7 @@
Name: gnome-characters Name: gnome-characters
Version: 3.17.90 Version: 3.17.90
Release: 1%{?dist} Release: 2%{?dist}
Summary: Character map application for GNOME Summary: Character map application for GNOME
# Files from gtk-js-app are licensed under 3-clause BSD. # Files from gtk-js-app are licensed under 3-clause BSD.
# Other files are GPL 2.0 or later. # Other files are GPL 2.0 or later.
@ -49,6 +49,7 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{appname}.deskto
%post %post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
touch --no-create %{_datadir}/icons/gnome &>/dev/null || :
%postun %postun
if [ $1 -eq 0 ] ; then if [ $1 -eq 0 ] ; then
@ -60,6 +61,7 @@ fi
%posttrans %posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
%files -f %{appname}.lang %files -f %{appname}.lang
@ -79,6 +81,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog %changelog
* Fri Aug 21 2015 Matthias Clasen <mclasen@redhat.com> - 3.17.90-2
- Force-update the icon cache for the gnome theme. This is necessary
because icons were moved from gnome to hicolor, and if we don't update
the gnome icon cache, it hides the icons in lower hicolor theme.
This is a one-shot fix, and should be removed in the next package
update.
* Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 3.17.90-1 * Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 3.17.90-1
- Update to 3.17.90 - Update to 3.17.90