From d67ca0fce14dc33a10f78a0db96e3dbdf7a025b3 Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Mar 19 2018 11:57:15 +0000 Subject: Reverted scriptlets for f27 --- diff --git a/ibus-anthy.spec b/ibus-anthy.spec index ea66a67..02307c9 100644 --- a/ibus-anthy.spec +++ b/ibus-anthy.spec @@ -15,6 +15,12 @@ %global with_appdata 0 %endif +%if (0%{?fedora} > 27 || 0%{?rhel} > 7) +%global with_gtk_script 0 +%else +%global with_gtk_script 1 +%endif + %if %with_python3 # for bytecompile in %%{_datadir}/ibus-anthy %global __python %{__python3} @@ -22,7 +28,7 @@ Name: ibus-anthy Version: 1.5.10 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Anthy engine for IBus input platform License: GPLv2+ Group: System Environment/Libraries @@ -132,11 +138,25 @@ desktop-file-validate \ %post /sbin/ldconfig +%if %with_gtk_script +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : +# recreate icon cache +touch --no-create %{_datadir}/icons/hicolor || : +[ -x %{_bindir}/gtk-update-icon-cache ] && \ + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +%endif [ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || : %postun /sbin/ldconfig +%if %with_gtk_script +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : +# recreate icon cache +touch --no-create %{_datadir}/icons/hicolor || : +[ -x %{_bindir}/gtk-update-icon-cache ] && \ + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +%endif [ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || : @@ -166,6 +186,9 @@ desktop-file-validate \ %{_libdir}/libanthygobject-%{sub_version}.so %changelog +* Mon Mar 19 2018 Takao Fujiwara - 1.5.10-3 +- Reverted scriptlets for f27 + * Mon Mar 19 2018 Takao Fujiwara - 1.5.10-2 - Reverted ldconfig for f27