diff --git a/ibus-libpinyin.spec b/ibus-libpinyin.spec index adccef0..9a462ea 100644 --- a/ibus-libpinyin.spec +++ b/ibus-libpinyin.spec @@ -2,7 +2,7 @@ Name: ibus-libpinyin Version: 1.6.91 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Intelligent Pinyin engine based on libpinyin for IBus License: GPLv2+ Group: System Environment/Libraries @@ -60,6 +60,14 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" %find_lang %{name} +%post +[ -x %{_bindir}/ibus ] && \ + %{_bindir}/ibus write-cache --system &>/dev/null || : + +%postun +[ -x %{_bindir}/ibus ] && \ + %{_bindir}/ibus write-cache --system &>/dev/null || : + %files -f %{name}.lang %doc AUTHORS COPYING README %{_datadir}/applications/ibus-setup-libpinyin.desktop @@ -78,6 +86,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" %{_datadir}/ibus/component/* %changelog +* Tue Oct 8 2013 Peng Wu - 1.6.91-4 +- Write ibus system cache when install or uninstall + * Wed Jul 31 2013 Peng Wu - 1.6.91-3 - Fixes lua 5.2 compile