Accepting request 50007 from home:vuntz:branches:GNOME:Factory

I like nicer... nicer is good... more more more

OBS-URL: https://build.opensuse.org/request/show/50007
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/hicolor-icon-theme?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2010-10-11 09:17:32 +00:00 committed by Git OBS Bridge
parent 06c2270803
commit e5ac0ac3c0
2 changed files with 34 additions and 28 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 7 14:51:55 CEST 2010 - vuntz@opensuse.org
- Reformat macros.hicolor so that the generated scriptlet looks a
bit nicer.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 25 15:06:12 CEST 2010 - vuntz@opensuse.org Wed Aug 25 15:06:12 CEST 2010 - vuntz@opensuse.org

View File

@ -40,10 +40,10 @@ touch "%{buildroot}%{_datadir}/icons/%1/icon-theme.cache"
%else \ %else \
ICON_THEME="hicolor" \ ICON_THEME="hicolor" \
%endif \ %endif \
if test -x /usr/bin/gtk-update-icon-cache; then \ if test -x %{_bindir}/gtk-update-icon-cache; then \
/usr/bin/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \ %{_bindir}/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \
elif test -x /usr/bin/gtk-update-icon-cache-3.0; then \ elif test -x %{_bindir}/gtk-update-icon-cache-3.0; then \
/usr/bin/gtk-update-icon-cache-3.0 --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \ %{_bindir}/gtk-update-icon-cache-3.0 --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \
fi fi
# On uninstall, update the icon cache. Note: we ignore upgrades (already # On uninstall, update the icon cache. Note: we ignore upgrades (already
@ -55,9 +55,9 @@ if [ $1 -eq 0 ]; then
%else \ %else \
ICON_THEME="hicolor" \ ICON_THEME="hicolor" \
%endif \ %endif \
if test -x /usr/bin/gtk-update-icon-cache; then \ if test -x %{_bindir}/gtk-update-icon-cache; then \
/usr/bin/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \ %{_bindir}/gtk-update-icon-cache --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \
elif test -x /usr/bin/gtk-update-icon-cache-3.0; then \ elif test -x %{_bindir}/gtk-update-icon-cache-3.0; then \
/usr/bin/gtk-update-icon-cache-3.0 --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \ %{_bindir}/gtk-update-icon-cache-3.0 --quiet --force "%{_datadir}/icons/${ICON_THEME}" || true \
fi \ fi \
fi fi