From bdf93b3eac0dd7be765800a5d59ee65ef3429b08 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 8 Oct 2013 14:33:36 +0800 Subject: [PATCH] Write ibus system cache when install or uninstall --- ibus-libpinyin.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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