Add post and postun scripts to write ibus cache
- Resolves: rhbz#1013992 ibus-typing-booster needs to have ibus write-cache --system in %%post and %%postun
This commit is contained in:
parent
3ff9424dfa
commit
5661846e43
@ -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 <mfabian@redhat.com> - 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 <mfabian@redhat.com> - 1.2.4-2
|
||||
- remove superfluous line break in changelog
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user