diff --git a/ibus-typing-booster.spec b/ibus-typing-booster.spec index 3bc114a..8384eca 100644 --- a/ibus-typing-booster.spec +++ b/ibus-typing-booster.spec @@ -1,12 +1,12 @@ Name: ibus-typing-booster Version: 1.2.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A typing booster engine for the IBus platform License: GPLv3+ Group: System Environment/Libraries URL: http://git.fedorahosted.org/git/?p=ibus-typing-booster.git Source0: https://fedorahosted.org/releases/i/b/ibus-typing-booster/%{name}-%{version}.tar.gz -Requires: ibus +Requires: ibus >= 1.5.3 Requires: libtranslit-m17n BuildRequires: ibus-devel,libtranslit-devel BuildArch: noarch @@ -27,6 +27,18 @@ make install DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true INSTALL="install -p" pkg %find_lang %{name} +%check +desktop-file-validate \ + $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-typing-booster.desktop + +%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}/%{name} @@ -37,6 +49,9 @@ make install DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true INSTALL="install -p" pkg %{_datadir}/applications/ibus-setup-typing-booster.desktop %changelog +* Tue Oct 01 2013 Mike FABIAN - 1.2.4-3 +- Resolves: rhbz#1013992 ibus-typing-booster needs to have ibus write-cache --system in %%post and %%postun + * Mon Sep 30 2013 Mike FABIAN - 1.2.4-2 - remove superfluous line break in changelog